Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt5 directory on macOS Big Sur (M1) #517

Closed
erickisos opened this issue Sep 19, 2021 · 3 comments
Closed

Qt5 directory on macOS Big Sur (M1) #517

erickisos opened this issue Sep 19, 2021 · 3 comments

Comments

@erickisos
Copy link
Contributor

Hi!

First of all, this is not a problem with PlotJuggler.

Problem description

I recently cloned the repo and when I was trying to compile it, I get an error message saying that Cmake can't find Qt5.
I solved this using Qt5_DIR flag pointing to homebrew dir (/opt/homebrew/qt@5/), anyway, I read in the CMakeLists.txt  that in fact, exist a flow control for APPLE which check for /usr/local/opt/qt5 so I can write the change to make it work by default on my M1, but I need to confirm, does anyone else with macOS confirm that the default installation on homebrew is that dir? I need some confirmation about that before making any changes to the CMake file.

Steps to reproduce (important)

  • macOS Big Sur (Apple M1)
  • You can reproduce this using the default cmake on the same platform.
@ryanjAA
Copy link

ryanjAA commented Sep 20, 2021

I think this would be environment specific since I can build on bigsur but was getting zmq.h errors until I simply copied it manually and rebuilt. I installed qt via the qt installer gui and everything else via brew. It crashes a lot though on Mac. Tried main (master), 3.2 release, etc so it’s likely just that this is less tested on mac.

As for your specific question, I added the brew directories to my path (via the zshrc) to get it to compile but that’s needed for most thing brew related.

@PymZoR
Copy link

PymZoR commented Oct 30, 2021

I think this would be environment specific since I can build on bigsur but was getting zmq.h errors until I simply copied it manually and rebuilt. I installed qt via the qt installer gui and everything else via brew. It crashes a lot though on Mac. Tried main (master), 3.2 release, etc so it’s likely just that this is less tested on mac.

As for your specific question, I added the brew directories to my path (via the zshrc) to get it to compile but that’s needed for most thing brew related.

For the zmq.h error, I did the following to make it work :
cmake .. -DCMAKE_CXX_FLAGS="-I$(brew --prefix zmq)/include"

On macOS Monterey the following path is used /opt/homebrew/opt/zeromq

facontidavide added a commit that referenced this issue Nov 6, 2021
Homebrew path added into CMakeLists #517
@mengchaoheng
Copy link

@PymZoR @erickisos can you help me? about this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants