我正在尝试安装OpenCV以用于代码块(或其他IDE).
我遵循(或尝试跟踪)实际上每一个在以下页面上的说明:
我第一次使用
https://help.ubuntu.com/community/OpenCV
包括提供的脚本.
然后
http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html
最后
http://www.samontab.com/web/2012/06/installing-opencv-2-4-1-ubuntu-12-04-lts/
我甚至看到Add the installation prefix of “Qt5Widgets” to CMAKE_PREFIX_PATH
但我甚至不确定答案是什么意思,更不用说如果它会工作,因为它显然不是问题OP.
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".
之前的尝试,我有一个文件夹OpenCV在家里,一个zip文件和文件夹都命名为opencv-2.4.9
所以“一些”的事情已经完成了,但没有一个完整的安装准备使用.也许是一个更简单的解释
“”“”“”“”“”“”(引自前面提到的答案)
这是记录在案:
http://doc-snapshot.qt-project.org/qt5-stable/cmake-manual.html
使用CMake的最简单的方法是设置CMAKE_PREFIX_PATH
环境变量为Qt 5的安装前缀
做这个
export CMAKE_PREFIX_PATH = / home / user / Programs /
其中引用了编译器等,以便这个完整的路径是有效的:
/ home / user中/程序//斌/ QMAKE
“” “” “” “” “” “” “”“*
意味着会解决这个问题.