【问题标题】:qttorch Build Error Ubuntu 14.04qttorch 构建错误 Ubuntu 14.04
【发布时间】:2015-04-20 21:29:44
【问题描述】:

我正在尝试在 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”中!

我也试过重装,还是一样的错误!!

【问题讨论】:

    标签: build cmake ubuntu-14.04 qmake


    【解决方案1】:

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

    对于 ubuntu,开发包通常具有 -dev 后缀。所以试试是否存在 libqtcore4-dev 包。否则,libqt4-dev 应该包含它。

    【讨论】:

      猜你喜欢
      • 2016-02-07
      • 1970-01-01
      • 2015-03-26
      • 2016-06-07
      • 2015-12-21
      • 2016-10-18
      • 1970-01-01
      • 1970-01-01
      • 2014-08-08
      相关资源
      最近更新 更多