Build qttorch生成错误Ubuntu 14.04

Build qttorch生成错误Ubuntu 14.04,build,cmake,ubuntu-14.04,qmake,Build,Cmake,Ubuntu 14.04,Qmake,我正试图在Ubuntu 14.04上安装qttorch软件包, 但我在安装过程中遇到以下错误: 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 inst

我正试图在Ubuntu 14.04上安装qttorch软件包, 但我在安装过程中遇到以下错误:

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的正确包?或者是否应该安装其他软件包

因为它已经安装在qmake报告的“/usr/lib/x86_64-linux-gnu”中


我也试着重新安装它,但还是一样的错误

在大多数Linux发行版中,软件包分为开发部分和非开发部分。通常,普通包只包括共享库、数据和可执行文件,而开发包添加了头文件、静态库和构建工具,如qmake。我认为这样分割是为了节省空间

对于ubuntu,开发包通常有
-dev
后缀。因此,请尝试是否存在libqtcore4开发包。否则,libqt4开发人员应该包括它