Como resolver o erro que surge ao instalar o opencv 3.1 no ubuntu 16.04?

0

Eu tentei instalar o opencv 3.1 no ubuntu 16.04, porque eu preciso fazer um algoritmo em c ++ com opencv, eu segui os passos de diferentes tutoriais mas nenhum funcionou para mim, o único com o qual eu tenho mais avançado é isso:

link

Mas quando chego ao passo cmake, recebo esses erros,

 -- 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".

que eu não resolvo, alguém que tenha alguma ideia de como resolvê-lo para instalá-lo ou alguém que tenha um bom tutorial que eu possa seguir para que eu possa instalar o opencv no ubuntu por favor.

    
por Colours123 30.08.2017 / 16:12

1 resposta

0

No seu terminal cd para sua pasta de compilação. Execute ccmake .. , use as teclas de seta para navegar entre as páginas, na última página, a seta para baixo até WITH_QT , digite para desativá-lo. Pressione c para configurar e g para gerar.

No futuro, use este link para melhor resultado.

    
por zindarod 30.08.2017 / 16:23