rcsoccersim / rcssmonitor

The RoboCup Soccer Simulator Monitor
GNU General Public License v3.0
47 stars 25 forks source link

Issue with QT5 MacOS #17

Closed philipholler closed 4 years ago

philipholler commented 4 years ago

Hi

I have recently tried upgrading the rcssmonitor from 15 to 16.

The build worked fine for 15, but for 16 i get an error regarding qt5.

I have attached the error messages her: `checking for pkg-config... /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes configure: set QT_REQUIRED_VERSION... 5.0.0 configure: set QT_MAJOR_VERSION... 5 configure: set QT_REQUIRED_MODULES... Qt5Core Qt5Gui Qt5Widgets Qt5Network checking for pkg-config... /usr/local/bin/pkg-config configure: check Qt5Core >= 5.0.0 checking for QT... no configure: error: The Qt5Core library >= 5.0.0 could not be found.

As you can see here, it is installed:

philipholler@MacBook-Pro rcssmonitor-16.0.0 % brew info qt5 qt: stable 5.14.1 (bottled), HEAD [keg-only] Cross-platform application and UI framework https://www.qt.io/ /usr/local/Cellar/qt/5.14.1 (10,389 files, 363.0MB) Poured from bottle on 2020-04-22 at 11:03:05 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt.rb ==> Dependencies Build: pkg-config ✔ ==> Requirements Build: xcode ✔ Required: macOS >= 10.12 ✔ ==> Options --HEAD Install HEAD version ==> Caveats We agreed to the Qt open source license for you. If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local, because Qt 5 has CMake issues when linked.

If you need to have qt first in your PATH run: echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.zshrc

For compilers to find qt you may need to set: export LDFLAGS="-L/usr/local/opt/qt/lib" export CPPFLAGS="-I/usr/local/opt/qt/include"

For pkg-config to find qt you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig"

==> Analytics install: 46,038 (30 days), 158,579 (90 days), 656,146 (365 days) install-on-request: 13,007 (30 days), 45,275 (90 days), 181,863 (365 days) build-error: 0 (30 days) `

As you can see, i do have qt5 installed, but it is not recognised when using ./configure in the directory.

Why might this be?

I am using MacOS 10.15.4 Catalina.

philipholler commented 4 years ago

Turns out, that the old QT4 had to be unlinked. I got it working with the following commands in the terminal:

brew unlink qt@4 brew link qt5 --force qmake

And then finally ./configure in the dir of the monitor