【发布时间】:2017-06-12 16:00:53
【问题描述】:
这是我使用的命令
sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_QT=ON /Users/diegocoronel10/Desktop/geant4.10.03
这是错误
-- Configuring incomplete, errors occurred!
See also "/Users/diegocoronel10/Desktop/QtInstall/Qt Creator.app/CMakeFiles/CMakeOutput.log".
dhcp106:Qt Creator.app diegocoronel10$ sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT5.7=ON -DGEANT4_USE_QT=ON /Users/diegocoronel10/Desktop/geant4.10.03
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.7/Modules/FindQt4.cmake:1318 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
cmake/Modules/Geant4InterfaceOptions.cmake:117 (find_package)
CMakeLists.txt:80 (include)
我一直在尝试使用 CMAKE_PREFIX_PATH,但我不知道如何使用它。我有 Qt 的安装文件夹,但我不知道 Qt 的根目录在哪里。我下载了5.7版的Qt。
【问题讨论】:
-
你安装了Qt4还是5?还有开发包?如何使用前缀路径:stackoverflow.com/questions/39126648/…和stackoverflow.com/questions/8019505/…
-
I have the install folder of Qt but I don't know where the root directory of Qt is.- 根目录实际上是一个安装文件夹。