gpt4 book ai didi

ubuntu 的 QtCore 安装

转载 作者:太空宇宙 更新时间:2023-11-03 17:10:52 29 4
gpt4 key购买 nike

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

最佳答案

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

Detecting Qt5 with CMake

关于ubuntu 的 QtCore 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37158204/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com