Как решить ошибку, которая выходит при установке opencv 3.1 на человечности 16.04?

Я попытался установить opencv 3.1 в человечности 16.04, потому что я должен сделать алгоритм в C++ с opencv, я выполнил шаги различных учебных руководств, но ни один не работал на меня, единственный, с которым я совершенствовался больше, является этим:

https://github.com/cesco345/StemApks/blob/master/TutorialsNotebook%20 (1) .ipynb

Но когда я добираюсь до шага cmake, я получаю эти ошибки,

 -- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
 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:535 (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:535 (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:535 (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:535 (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:535 (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-3.5/Modules/FindQt4.cmake:1326 (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:535 (include)


 -- Configuring incomplete, errors occurred!
 See also "/home/jenny/opencv-3.1.0/build/CMakeFiles/CMakeOutput.log".
 See also "/home/jenny/opencv-3.1.0/build/CMakeFiles/CMakeError.log".

который я не решаю, кто-то, у кого есть некоторая идея, как решить ее для установки ее или кто-то, у кого есть хорошее учебное руководство, за которым я могу следовать так, я могу установить opencv в человечности.

0
задан 30 August 2017 в 07:12

1 ответ

В Вашем терминале cd к Вашей папке сборки. Выполненный ccmake .., используйте клавиши со стрелками для навигации между страницами, на последней странице, стрелка вниз к WITH_QT, войдите для выключения его.Пресса c настраивать и g генерировать.

В будущем использовании эта ссылка для лучшего результата.

0
ответ дан 2 November 2019 в 08:26

Другие вопросы по тегам:

Похожие вопросы: