【问题标题】:QtCore installation for ubuntuubuntu 的 QtCore 安装
【发布时间】:2016-09-06 14:14:08
【问题描述】:

我一直在尝试安装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

【问题讨论】:

    标签: qt ubuntu torch


    【解决方案1】:

    我通过在我的所有 CMakeList.txt 中将 find_package(Qt4 REQUIRED) 替换为 find_package(Qt5Widgets) 解决了这个问题。

    Detecting Qt5 with CMake

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-10
      • 1970-01-01
      • 2013-08-31
      相关资源
      最近更新 更多