Installing OpenCV 3.2.0 with contrib modules in Ubuntu 14.04 LTS ends with "Configuring incomplete" instead of "completed configuring"

asked 2017-11-17 00:18:34 -0500

venkatesh-u gravatar image

The following command runs but ends with "Configuring incomplete" instead of "completed configuring".

cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_VTK=ON .. -DCMAKE_BUILD_TYPE=RELEASE -DOPENCV_EXTRA_MODULES_PATH=/home/venkatesh/opencv/opencv_contrib-3.2.0/modules ..

A few experts have given answers (not working in this case)i.e,
1. set the path for DOPENCV_EXTRA_MODULES_PATH.
2. Set "INSTALL_C_EXAMPLES" value to "OFF" instead of "ON" in cmake command.
3. Clean the build directory and create it again and run cmake command.

These three are also not working in this case.

I am getting the following stuff when I run cmake command.

-- Found VTK ver. 5.8.0 (usefile: /usr/lib/vtk-5.8/UseVTK.cmake) CMake Error at CMakeLists.txt:706 (add_subdirectory): add_subdirectory given source "include" which is not an existing directory.

CMake Error at CMakeLists.txt:709 (add_subdirectory): add_subdirectory given source "modules" which is not an existing directory.

CMake Error at CMakeLists.txt:712 (add_subdirectory): add_subdirectory given source "doc" which is not an existing directory.

CMake Error at CMakeLists.txt:724 (add_subdirectory): add_subdirectory given source "samples" which is not an existing directory.

-- -- General configuration for OpenCV .. =====================================

-- Version control: unknown

-- Extra modules: -- Location (extra): /home/venkatesh/opencv/opencv_contrib-3.2.0/modules

-- Version control (extra): unknown

-- Platform: -- Timestamp: 2017-11-17T05:51:01Z -- Host: Linux 4.4.0-100-generic x86_64 -- CMake: 2.8.12.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make

-- Configuration: RELEASE

-- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/c++ (ver 4.8.4) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/cc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -- Linker flags (Debug): -- ccache: NO -- Precompiled headers: YES -- Extra dependencies:

-- 3rdparty dependencies:

-- OpenCV modules: -- To be built: - -- Disabled: - -- Disabled by dependency: -

-- Unavailable: -

-- GUI: -- QT 4.x: YES (ver 4.8.6 EDITION = OpenSource) -- QT OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libQtOpenGL.so) -- OpenGL support: YES (/usr ... (more)

edit retag flag offensive close merge delete

Comments

-DOPENCV_EXTRA_MODULES_PATH=/home/venkatesh/opencv/opencv_contrib-3.2.0/modules

is this inside your opencv src folder ? that would be wrong. put it next to it

INSTALL_C_EXAMPLES -- irrelevant, 3.3 does no more have any c examples

berak gravatar imageberak ( 2017-11-17 03:35:46 -0500 )edit

You should make a video tutorial to make the sea easier to learn.

JavaMaster gravatar imageJavaMaster ( 2018-04-09 00:49:39 -0500 )edit