我一直在尝试安装火炬,但是当我运行时出现以下错误./install.sh
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:664 (message):
Could NOT find QtCore. Check
/home/name/torch/exe/qtlua/build/CMakeFiles/CMakeError.log for more
details.
Call Stack (most recent call first):
CMakeLists.txt:38 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/home/name/torch/exe/qtlua/build/CMakeFiles/CMakeOutput.log".
Error: Build error: Failed building.
Missing dependencies for qttorch:
qtlua >= 1.0
我已经尝试使用
安装QtCoresudo apt-get install libqt4-core
但是,我仍然收到错误:
Could NOT find QtCore
如上所示。为什么会这样,我该如何解决这个问题?
我遵循的安装步骤: http://torch.ch/docs/getting-started.html#_
编辑(已解决): 我还必须使用
安装qt4-dev-toolsapt-get install qt4-dev-tools
答案 0 :(得分:0)
我通过在所有CMakeList.txt中的find_package(Qt5Widgets)替换find_package(Qt4 REQUIRED)解决了这个问题。