diff --git a/README.md b/README.md index e0d85e3f6b..6b02856cb5 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,16 @@ and generate Xcode project files. If you are building on a *nix system, you'll run something like "cmake ..", which uses the default Cmake generator for Unix Makefiles. +If Cmake throws you an error related to Qt5 it likely cannot find your Qt5 cmake modules. +You can solve this by setting an environment variable, QT_CMAKE_PREFIX_PATH, to the location of the folder distributed +with Qt5 that contains them. + +For example, a Qt5 5.1.1 installation to /usr/local/qt5 would require that QT_CMAKE_PREFIX_PATH be set with the following command (or in your profile) + + export QT_CMAKE_PREFIX_PATH=/usr/local/qt/5.1.1/clang_64/lib/cmake/ + +The path it needs to be set to will depend on where and how Qt5 was installed. + Building in XCode -----