我正在尝试在Ubuntu 14.04上安装 qttorch package , 但是我在安装过程中遇到了这个错误:
CMake Warning at /usr/share/cmake-3.2/Modules/FindQt4.cmake:626 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
CMakeLists.txt:38 (FIND_PACKAGE)
CMake Error at /usr/share/cmake-3.2/Modules/FindQt4.cmake:634 (message):
Could NOT find QtCore. Check
/tmp/luarocks_qtlua-scm-1-2765/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 "/tmp/luarocks_qtlua-scm-1-2765/qtlua/build/CMakeFiles/CMakeOutput.log".
Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/qtlua-scm-1.rockspec - Build error: Failed building.
libqtcore4 是QTCore的合适软件包吗?或者是否有另一个应该安装的软件包?
因为它已经安装在“/ usr / lib / x86_64-linux-gnu”中,正如qmake报道的那样!
我也尝试重新安装它,但仍然是同样的错误!!
答案 0 :(得分:3)
在大多数Linux发行版中,包在开发和非开发部分之间分开。通常,普通包只包含共享库,数据和可执行文件,而dev包添加头,静态库和构建工具,如qmake。我假设这样做是为了节省空间。
对于ubuntu,dev软件包通常具有-dev
后缀。因此,如果存在libqtcore4-dev包,请尝试。否则,libqt4-dev应该包含它。