Compiling on new OS X fails with homebrew


#1

There seems to be a bug in homebrew causing not to find qt5.

cmake … -GXcode gives:

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
The imported target “Qt5::Core” references the file

 "/usr/local//mkspecs/macx-clang"

but this file does not exist.

I have not got a clue why cmake cannot find the qt5 dirs installed with brew. Hence it is probably a feature …
But there is an easy was to fix this:

ln -s /usr/local/opt/qt5/mkspecs /usr/local/mkspecs && ln -s /usr/local/opt/qt5/plugins /usr/local/plugins

Can this be added to https://github.com/highfidelity/hifi/blob/master/BUILD_OSX.md ?


#2

Without symlinking - you can get around this by setting QT_CMAKE_PREFIX_PATH.

That message is in the main build guide, but I think it should be repeated in the OS X build guide - I’m doing that now.