我一直在尝试安装torch,但在运行./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我已经尝试使用以下命令安装QtCore
sudo apt-get install libqt4-core但是,我还是得到了一个错误:
Could NOT find QtCore如上所示。为什么会出现这种情况?我该如何解决?
我遵循的安装步骤是:http://torch.ch/docs/getting-started.html#_
编辑(已解决):我必须安装qt4-dev-tools也使用
apt-get install qt4-dev-tools发布于 2016-12-01 10:44:37
我通过在我所有的CMakeList.txt中将find_package(需要Qt4)替换为find_package(Qt5Widgets)解决了这个问题。
https://stackoverflow.com/questions/37158204
复制相似问题