Commit 85f4787208305c1d97d80ab8613723396305de4f
Committed by
David Gräff
1 parent
b1c05e4f
Update readme.rd info for OSX in cmake
cmake gave the following error when using the instructions given in the readme:
CMake Error at openhantek/CMakeLists.txt:3 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:
Qt5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
This happens because cmake does not have information about where is Qt5 located. I added the instructions needed to achieve this with no problems.
Showing
1 changed file
with
5 additions
and
0 deletions
readme.md
| ... | ... | @@ -36,6 +36,11 @@ After you've installed the requirements either run **cmake-gui** or run the foll |
| 36 | 36 | > make -j4 (for 4 concurrent compile jobs) <br> |
| 37 | 37 | > make install (optional, for installing only) |
| 38 | 38 | |
| 39 | +For MacOSX, the cmake command in the previous command list must include the directory where Qt5 is installed. Qt5 is installed in a directory with the same name of its version: | |
| 40 | +> brew info qt5 | |
| 41 | +For example, if brew showed 5.7.0, the cmake command should be: | |
| 42 | +> cmake ../ -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.7.0 | |
| 43 | + | |
| 39 | 44 | You can specify an install prefix when running cmake: |
| 40 | 45 | > cmake -DCMAKE_INSTALL_PREFIX=/usr |
| 41 | 46 | ... | ... |