问题描述

新的Linux用户。操作系统:Ubuntu 14.04 Install:OpenCV 2.4.9

我正在尝试安装OpenCV以便在代码块(或其他IDE)上使用。我已经遵循(或实际上试图遵循)以下页面上的每条指令:

这是运行脚本时错误出现在终端输出中的位置:

CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package):

By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has

asked CMake to find a package configuration file provided by "Qt5Core", but

CMake did not find one.

Could not find a package configuration file provided by "Qt5Core" with any

of the following names:

Qt5CoreConfig.cmake

qt5core-config.cmake

Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set

"Qt5Core_DIR" to a directory containing one of the above files. If

"Qt5Core" provides a separate development package or SDK, be sure it has

been installed.

Call Stack (most recent call first):

CMakeLists.txt:466 (include)

CMake Warning at cmake/OpenCVFindLibsGUI.cmake:19 (find_package):

By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has

asked CMake to find a package configuration file provided by "Qt5Gui", but

CMake did not find one.

Could not find a package configuration file provided by "Qt5Gui" with any

of the following names:

Qt5GuiConfig.cmake

qt5gui-config.cmake

Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set

"Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"

provides a separate development package or SDK, be sure it has been

installed.

Call Stack (most recent call first):

CMakeLists.txt:466 (include)

CMake Warning at cmake/OpenCVFindLibsGUI.cmake:20 (find_package):

By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project

has asked CMake to find a package configuration file provided by

"Qt5Widgets", but CMake did not find one.

Could not find a package configuration file provided by "Qt5Widgets" with

any of the following names:

Qt5WidgetsConfig.cmake

qt5widgets-config.cmake

Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set

"Qt5Widgets_DIR" to a directory containing one of the above files. If

"Qt5Widgets" provides a separate development package or SDK, be sure it has

been installed.

Call Stack (most recent call first):

CMakeLists.txt:466 (include)

CMake Warning at cmake/OpenCVFindLibsGUI.cmake:21 (find_package):

By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has

asked CMake to find a package configuration file provided by "Qt5Test", but

CMake did not find one.

Could not find a package configuration file provided by "Qt5Test" with any

of the following names:

Qt5TestConfig.cmake

qt5test-config.cmake

Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set

"Qt5Test_DIR" to a directory containing one of the above files. If

"Qt5Test" provides a separate development package or SDK, be sure it has

been installed.

Call Stack (most recent call first):

CMakeLists.txt:466 (include)

CMake Warning at cmake/OpenCVFindLibsGUI.cmake:22 (find_package):

By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this

project has asked CMake to find a package configuration file provided by

"Qt5Concurrent", but CMake did not find one.

Could not find a package configuration file provided by "Qt5Concurrent"

with any of the following names:

Qt5ConcurrentConfig.cmake

qt5concurrent-config.cmake

Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set

"Qt5Concurrent_DIR" to a directory containing one of the above files. If

"Qt5Concurrent" provides a separate development package or SDK, be sure it

has been installed.

Call Stack (most recent call first):

CMakeLists.txt:466 (include)

qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1386 (message):

Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x

Call Stack (most recent call first):

cmake/OpenCVFindLibsGUI.cmake:34 (find_package)

CMakeLists.txt:466 (include)

-- Configuring incomplete, errors occurred!

See also "/home/*******/OpenCV/opencv-2.4.9/build/CMakeFiles/CMakeOutput.log".

See also "/home/*******/OpenCV/opencv-2.4.9/build/CMakeFiles/CMakeError.log".

经过先前的尝试,我在Home内有了一个OpenCV文件夹,其中有一个zip文件和名为opencv-2.4.9的文件夹。

这样就完成了”some”的事情,但是还没有完整的安装可供使用。也许是什么更简单的解释

“””””””””””””(引用先前问题的答案):http://doc-snapshot.qt-project.org/qt5-stable/cmake-manual.html使用CMake的最简单方法是将CMAKE_PREFIX_PATH环境变量设置为Qt 5的安装前缀。执行此操作导出CMAKE_PREFIX_PATH = /home /user /Programs /,其中引用了编译器等。 ,以便此完整路径有效:/home /user /Programs //bin /qmake “”””””””””””””” *

就是完全可以解决这个问题。

谢谢。 (仅供参考,我可以’t/don’t知道如何使用它,因为我没有程序文件夹,甚至没有用户文件夹,建议的终端命令也将引发错误)

最佳回答

我可以使用sudo apt-get install qt5-default解决此问题

参考资料

opencv qt5安装linux,Ubuntu OpenCV安装和设置(Qt5吗?)相关推荐

  1. 联想硬盘保护安装linux,Ubuntu 下安装Thinkpad T400硬盘保护APS

    官方闭源驱动下载地址:http://support.amd.com/us/gpudownload/Pages/index.aspx 我的是:ThinkPad T400 2767R84 对应的显卡驱动是 ...

  2. 在windows10中安装 linux ubuntu 子系统

    在windows10中安装 linux ubuntu 子系统 文章目录 在windows10中安装 linux ubuntu 子系统 打开开发者模式 windows子系统功能 重启计算机 Micros ...

  3. windows10 安装linux,windows 10安装linux(ubuntu)子系统

    windows10安装ubuntu子系统系统 之前一直在虚拟机中使用linux系统,但是不是很方便,后来发现windows下也有了linux系统.感觉还不错 1. 打开windows应用市场micro ...

  4. surface pro linux服务器,Surface Pro平板电脑上安装Linux / Ubuntu的技巧

    嗯,Windows 10和Windows 8.1在Surface Pro上运行顺畅,但我认为有些用户想知道如何以及他们是否可以在上安装任何其他操作系统.您会很高兴听到答案是'是'.您始终可以将操作系统 ...

  5. 安装Linux出现致命错误,安装liunx出现致命错误,为什么,如何解决?

    rz:运行该命令会弹出一个文件选择窗口,从本地选择文件上传到Linux服务器rz,sz是Linux/Unix同Windows进行ZModem文件传输的命令行工具,windows端需要支持ZModem的 ...

  6. opencv 3.1编译 linux,Ubuntu 编译安装 OpenCV 3.1

    目标系统:Ubuntu 16.04-64bit OpenCV 版本:opencv-3.1.0 安装步骤 安装 cmake.sudo apt-get isntall cmake cmake-qt-gui ...

  7. linux(ubuntu版本)安装tengine

    解压tengine压缩包 解压成功后,即多出一个文件夹 prefix表示将nginx安装到哪个目录下 想要Linux下安装Nginx作为WEB服务器,要先准备些必要的库和工具,通常必须安装的是:PER ...

  8. 宿主机windows Xp部署virtualBox虚拟机并在其上安装linux ubuntu操作系统

    在Windows操作系统上安装虚拟机VirtualBox,在虚拟机上部署Linux ubuntu操作系统: 一 虚拟机VirtualBox安装 1.下载Virtualbox:http://www.vi ...

  9. ubuntu装双系统win7和linux,Ubuntu下安装WIn7(双系统)

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 win7下安装ubuntu组成双系统很容易,虽然也应该有知道怎么在ubuntu下安装win7组成双系统的人,我就把我的经验分享出来: 1.准备工具:一个U ...

最新文章

  1. 谷歌下一代AI架构、Jeff Dean宣传大半年的Pathways终于有论文了
  2. linux下uvc协议访问usb摄像头,Ubuntu调用USB摄像头
  3. POJ2762(判断无向图的弱连通)
  4. C++ —— C++高手之路
  5. 百度Q2扭亏为盈 李彦宏发信勉励:变革带来阵痛 但能走得更稳更远
  6. github Repository not found 解决办法
  7. linux 5.4 安装php
  8. shell基础之case应用
  9. Xcode 添加 background modes、Associated Domains 等设置项
  10. MM32F3277替换STM32
  11. 【数据结构(郝斌)】01-数据结构概述
  12. SVS为某大学打造无纸化会议室
  13. idea打字光标不跟随解决
  14. 知道路径,如何下载服务器端的.frx文件
  15. 爬取中国知识产权案件网
  16. win10下Linux双系统
  17. 谢烟客-----LNP之PHP C 扩展 (Phalcon)
  18. 开源知识管理系统_逛了4年Github,一口气把我收藏的 Java 开源项目分享给你
  19. 华硕服务器进入重装系统界面怎么办,进不了桌面怎么重装系统,华硕电脑卡在欢迎界面...
  20. 力扣45跳跃游戏II(难)JAVA

热门文章

  1. gephi导入边数据时,和节点数据不在一个工作区
  2. 整理好的200多java面试题,可用于机器学习
  3. html读取oss_阿里云使用js 实现OSS图片上传、获取OSS图片列表(示例代码)
  4. python规则引擎开发经验_关于物联网规则引擎技术,你想要知道的都在这儿!
  5. 卢伟冰曝Redmi K50系列最新进展:天玑9000调校比较顺利
  6. 王者荣耀、QQ音乐发声明:异常登录问题已解决
  7. 郭明錤:因设计复杂 苹果可能推迟至明年底生产AR/VR头盔
  8. 闲鱼:3月24日至3月30日冻结涉欺诈用户1.8万个
  9. 2020年天猫双11:11日0点30分 实时成交额突破3723亿
  10. 2020年“双11”各家晒出成绩单,你还没付完尾款,有的人已经收货了!