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

Document how to find homebrew-installed Qt5 in macOS #4

Closed
traversaro opened this issue Dec 5, 2017 · 10 comments
Closed

Document how to find homebrew-installed Qt5 in macOS #4

traversaro opened this issue Dec 5, 2017 · 10 comments
Assignees

Comments

@traversaro
Copy link
Member

Qt5 is not symlinked in /usr/local by default in the homebrew formula, so Qt5_DIR needs to be properly set to make sure that CMake-based projects are able to find Qt5.
See https://github.com/robotology/yarp/blob/b30f2a8ec899d2b1ed9475191cbc3db224ffd9c9/doc/installation/install_mac.dox#L137 .
cc @claudiofantacci

@claudiofantacci
Copy link
Collaborator

claudiofantacci commented Dec 5, 2017

This has always been a majour issue.
I usually symlink QT5 to solve this kind of problem because adding export Qt5_DIR=/usr/local/opt/qt5/lib/cmake do not solve CMake issue 100% of the time.

Actually, by my experience, if you don't symlink QT5 you should add the following:

Qt5Widgets_DIR=/usr/local/opt/qt/lib/cmake/Qt5Widgets
Qt5Test_DIR=/usr/local/opt/qt/lib/cmake/Qt5Test
Qt5Core_DIR=/usr/local/opt/qt/lib/cmake/Qt5Core
Qt5_DIR=/usr/local/opt/qt/lib/cmake
Qt5Concurrent_DIR=/usr/local/opt/qt/lib/cmake/Qt5Concurrent
Qt5Gui_DIR=/usr/local/opt/qt/lib/cmake/Qt5Gui

@traversaro
Copy link
Member Author

I was always able to compile everything by just setting Qt5_DIR, anyone have a different experience @vtikha @DanielePucci @nunoguedelha @claudia-lat ?

@DanielePucci
Copy link
Contributor

I usually disable by setting ICUB_USE_Qt5 = OFF 🛩

@nunoguedelha
Copy link
Collaborator

Same for me, I usually only set Qt5_DIR.

@traversaro
Copy link
Member Author

I usually disable by setting ICUB_USE_Qt5 = OFF 🛩

Are you sure? Qt5 is used also in YARP to build yarpmotorgui.

@DanielePucci
Copy link
Contributor

I think so: I usually used the yarpmotorgui using the robot computers

@claudiofantacci
Copy link
Collaborator

I was always able to compile everything by just setting Qt5_DIR, anyone have a different experience?

I had some issues with some other packages which I don't recall at this very moment.
It is something related to some Homebrew formulae, not directly to our software, and how they look for QT5.
I guess that setting Qt5_DIR without symlinking it is sufficient.

@lucaTagliapietra
Copy link
Contributor

lucaTagliapietra commented May 10, 2018

Readme updated. As soon as the PR will be merged, we can close.

@traversaro
Copy link
Member Author

Fixed by #71 .

cipherboy added a commit to cipherboy/scap-workbench that referenced this issue Mar 26, 2021
See also: robotology/robotology-superbuild#4

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
cipherboy added a commit to cipherboy/scap-workbench that referenced this issue Mar 26, 2021
See also: robotology/robotology-superbuild#4

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
@traversaro
Copy link
Member Author

Hi @spotanjo3, what do you mean with "How do I change mine" ? Furthermore, I suggest you to open a new issue, commenting on an old issue is problematic as it tends to be lost.

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

No branches or pull requests

5 participants