Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trying to run dnn module

I have installed Opencv 3.1.0 along with Opencv_contrib module with the aim of reading caffe models into Opencv. I followed the official Opencv installation documentation and with a change in Cmake command, I was able to build it successfully on Ubuntu 14.04lts.

When I type the following command to run the sample program -

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv`

I get the error below.

ssd_object_detection.cpp:1:27: fatal error: opencv2/dnn.hpp: No such file or directory

#include <opencv2 dnn.hpp=""> ^ compilation terminated.

I looked at the opencv_contrib github repo and they mentioned that you have to run it with a linker to the specific module which you want. So my command then became-

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv` -lopencv_dnn

But I still get the same error. Does this mean that my dnn module hasn't been built properly? The error is from the header file opencv2/dnn.hpp not being recognised but I don't know why?

The sample program is from this link- sample program to load caffe model and run

click to hide/show revision 2
No.2 Revision

updated 2016-12-08 06:49:39 -0600

berak gravatar image

Trying to run dnn module

I have installed Opencv 3.1.0 along with Opencv_contrib module with the aim of reading caffe models into Opencv. I followed the official Opencv installation documentation and with a change in Cmake command, I was able to build it successfully on Ubuntu 14.04lts.

When I type the following command to run the sample program -

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv`

I get the error below.

ssd_object_detection.cpp:1:27: fatal error: opencv2/dnn.hpp: No such file or directory
 #include <opencv2/dnn.hpp>
                           ^
compilation terminated.

#include <opencv2 dnn.hpp=""> ^ compilation terminated.

I looked at the opencv_contrib github repo and they mentioned that you have to run it with a linker to the specific module which you want. So my command then became-

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv` -lopencv_dnn

But I still get the same error. Does this mean that my dnn module hasn't been built properly? The error is from the header file opencv2/dnn.hpp not being recognised but I don't know why?

The sample program is from this link- sample program to load caffe model and run

Trying to run dnn module

I have installed Opencv 3.1.0 along with Opencv_contrib module with the aim of reading caffe models into Opencv. I followed the official Opencv installation documentation and with a change in Cmake command, I was able to build it successfully on Ubuntu 14.04lts.

When I type the following command to run the sample program -

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv`

I get the error below.

ssd_object_detection.cpp:1:27: fatal error: opencv2/dnn.hpp: No such file or directory
 #include <opencv2/dnn.hpp>
                           ^
compilation terminated.

I looked at the opencv_contrib github repo and they mentioned that you have to run it with a linker to the specific module which you want. So my command then became-

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv` -lopencv_dnn

But I still get the same error. Does this mean that my dnn module hasn't been built properly? The error is from the header file opencv2/dnn.hpp not being recognised but I don't know why?

The sample program is from this link- sample program to load caffe model and run

Output of cmake-

cmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES=~/opt/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=/usr/local ..

-- The CXX compiler identification is GNU 4.8.4 -- The C compiler identification is GNU 4.8.4 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Detected version of GNU GCC: 48 (408) -- Performing Test HAVE_CXX_FSIGNED_CHAR -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success -- Performing Test HAVE_C_FSIGNED_CHAR -- Performing Test HAVE_C_FSIGNED_CHAR - Success -- Performing Test HAVE_CXX_W -- Performing Test HAVE_CXX_W - Success -- Performing Test HAVE_C_W -- Performing Test HAVE_C_W - Success -- Performing Test HAVE_CXX_WALL -- Performing Test HAVE_CXX_WALL - Success -- Performing Test HAVE_C_WALL -- Performing Test HAVE_C_WALL - Success -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success -- Performing Test HAVE_C_WERROR_RETURN_TYPE -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success -- Performing Test HAVE_CXX_WERROR_ADDRESS -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success -- Performing Test HAVE_C_WERROR_ADDRESS -- Performing Test HAVE_C_WERROR_ADDRESS - Success -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success -- Performing Test HAVE_CXX_WFORMAT -- Performing Test HAVE_CXX_WFORMAT - Success -- Performing Test HAVE_C_WFORMAT -- Performing Test HAVE_C_WFORMAT - Success -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success -- Performing Test HAVE_C_WMISSING_DECLARATIONS -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed -- Performing Test HAVE_C_WMISSING_PROTOTYPES -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed -- Performing Test HAVE_C_WSTRICT_PROTOTYPES -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success -- Performing Test HAVE_CXX_WUNDEF -- Performing Test HAVE_CXX_WUNDEF - Success -- Performing Test HAVE_C_WUNDEF -- Performing Test HAVE_C_WUNDEF - Success -- Performing Test HAVE_CXX_WINIT_SELF -- Performing Test HAVE_CXX_WINIT_SELF - Success -- Performing Test HAVE_C_WINIT_SELF -- Performing Test HAVE_C_WINIT_SELF - Success -- Performing Test HAVE_CXX_WPOINTER_ARITH -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success -- Performing Test HAVE_C_WPOINTER_ARITH -- Performing Test HAVE_C_WPOINTER_ARITH - Success -- Performing Test HAVE_CXX_WSHADOW -- Performing Test HAVE_CXX_WSHADOW - Success -- Performing Test HAVE_C_WSHADOW -- Performing Test HAVE_C_WSHADOW - Success -- Performing Test HAVE_CXX_WSIGN_PROMO -- Performing Test HAVE_CXX_WSIGN_PROMO - Success -- Performing Test HAVE_C_WSIGN_PROMO -- Performing Test HAVE_C_WSIGN_PROMO - Failed -- Performing Test HAVE_CXX_WNO_NARROWING -- Performing Test HAVE_CXX_WNO_NARROWING - Success -- Performing Test HAVE_C_WNO_NARROWING -- Performing Test HAVE_C_WNO_NARROWING - Success -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Performing Test HAVE_CXX_WNO_COMMENT -- Performing Test HAVE_CXX_WNO_COMMENT - Success -- Performing Test HAVE_C_WNO_COMMENT -- Performing Test HAVE_C_WNO_COMMENT - Success -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success -- Performing Test HAVE_CXX_WNO_LONG_LONG -- Performing Test HAVE_CXX_WNO_LONG_LONG - Success -- Performing Test HAVE_C_WNO_LONG_LONG -- Performing Test HAVE_C_WNO_LONG_LONG - Success -- Performing Test HAVE_CXX_PTHREAD -- Performing Test HAVE_CXX_PTHREAD - Success -- Performing Test HAVE_C_PTHREAD -- Performing Test HAVE_C_PTHREAD - Success -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success -- Performing Test HAVE_C_FOMIT_FRAME_POINTER -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success -- Performing Test HAVE_CXX_MSSE -- Performing Test HAVE_CXX_MSSE - Success -- Performing Test HAVE_C_MSSE -- Performing Test HAVE_C_MSSE - Success -- Performing Test HAVE_CXX_MSSE2 -- Performing Test HAVE_CXX_MSSE2 - Success -- Performing Test HAVE_C_MSSE2 -- Performing Test HAVE_C_MSSE2 - Success -- Performing Test HAVE_CXX_MNO_AVX -- Performing Test HAVE_CXX_MNO_AVX - Success -- Performing Test HAVE_C_MNO_AVX -- Performing Test HAVE_C_MNO_AVX - Success -- Performing Test HAVE_CXX_MSSE3 -- Performing Test HAVE_CXX_MSSE3 - Success -- Performing Test HAVE_C_MSSE3 -- Performing Test HAVE_C_MSSE3 - Success -- Performing Test HAVE_CXX_MNO_SSSE3 -- Performing Test HAVE_CXX_MNO_SSSE3 - Success -- Performing Test HAVE_C_MNO_SSSE3 -- Performing Test HAVE_C_MNO_SSSE3 - Success -- Performing Test HAVE_CXX_MNO_SSE4_1 -- Performing Test HAVE_CXX_MNO_SSE4_1 - Success -- Performing Test HAVE_C_MNO_SSE4_1 -- Performing Test HAVE_C_MNO_SSE4_1 - Success -- Performing Test HAVE_CXX_MNO_SSE4_2 -- Performing Test HAVE_CXX_MNO_SSE4_2 - Success -- Performing Test HAVE_C_MNO_SSE4_2 -- Performing Test HAVE_C_MNO_SSE4_2 - Success -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success -- Performing Test HAVE_C_FFUNCTION_SECTIONS -- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success -- Performing Test HAVE_C_FVISIBILITY_HIDDEN -- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed -- FP16: Feature disabled -- Looking for pthread.h -- Looking for pthread.h - found -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3") -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Found WebP: /usr/lib/x86_64-linux-gnu/libwebp.so
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50") -- Looking for /usr/include/libpng/png.h -- Looking for /usr/include/libpng/png.h - found -- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so -- checking for module 'gtk+-3.0' -- found gtk+-3.0, version 3.10.8 -- checking for module 'gthread-2.0' -- found gthread-2.0, version 2.40.2 -- checking for module 'gstreamer-base-1.0' -- package 'gstreamer-base-1.0' not found -- checking for module 'gstreamer-video-1.0' -- package 'gstreamer-video-1.0' not found -- checking for module 'gstreamer-app-1.0' -- package 'gstreamer-app-1.0' not found -- checking for module 'gstreamer-riff-1.0' -- package 'gstreamer-riff-1.0' not found -- checking for module 'gstreamer-pbutils-1.0' -- package 'gstreamer-pbutils-1.0' not found -- checking for module 'gstreamer-base-0.10' -- found gstreamer-base-0.10, version 0.10.36 -- checking for module 'gstreamer-video-0.10' -- found gstreamer-video-0.10, version 0.10.36 -- checking for module 'gstreamer-app-0.10' -- found gstreamer-app-0.10, version 0.10.36 -- checking for module 'gstreamer-riff-0.10' -- found gstreamer-riff-0.10, version 0.10.36 -- checking for module 'gstreamer-pbutils-0.10' -- found gstreamer-pbutils-0.10, version 0.10.36 -- checking for module 'libdc1394-2' -- found libdc1394-2, version 2.2.1 -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- checking for modules 'libavcodec;libavformat;libavutil;libswscale' -- found libavcodec, version 56.60.100 -- found libavformat, version 56.40.101 -- found libavutil, version 54.31.100 -- found libswscale, version 3.1.101 -- checking for module 'libavresample' -- package 'libavresample' not found -- checking for module 'libgphoto2' -- package 'libgphoto2' not found -- Looking for dgemm_ -- Looking for dgemm_ - found -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE
-- A library with BLAS API found. -- Looking for cheev_ -- Looking for cheev_ - found -- A library with LAPACK API found. -- ICV: Removing previous unpacked package: /home/kevmepls/opt/opencv/3rdparty/ippicv/unpack CMake Warning at 3rdparty/ippicv/downloader.cmake:56 (message): ICV: Local copy of ICV package has invalid MD5 hash: d41d8cd98f00b204e9800998ecf8427e (expected: 808b791a6eac9ed78d32a7666804320e) Call Stack (most recent call first): 3rdparty/ippicv/downloader.cmake:110 (_icv_downloader) cmake/OpenCVFindIPP.cmake:243 (include) cmake/OpenCVFindLibsPerf.cmake:41 (include) CMakeLists.txt:558 (include)

-- ICV: Unpacking ippicv_linux_20151201.tgz to /home/kevmepls/opt/opencv/3rdparty/ippicv/unpack... CMake Warning (dev) at cmake/OpenCVUtils.cmake:67 (message): Assertion failed: EXISTS /home/kevmepls/opt/opencv/3rdparty/ippicv/unpack/ippicv_lnx Call Stack (most recent call first): 3rdparty/ippicv/downloader.cmake:102 (ocv_assert) 3rdparty/ippicv/downloader.cmake:110 (_icv_downloader) cmake/OpenCVFindIPP.cmake:243 (include) cmake/OpenCVFindLibsPerf.cmake:41 (include) CMakeLists.txt:558 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- ICV: Package successfully downloaded -- Found Doxygen: /usr/bin/doxygen (found version "1.8.6") -- Found PythonInterp: /home/kevmepls/anaconda2/bin/python2.7 (found suitable version "2.7.11", minimum required is "2.7") -- Could NOT find PythonLibs: Found unsuitable version "2.7.9", but required is exact version "2.7.11" (found /usr/local/lib/libpython2.7.a) -- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4") -- Could NOT find PythonLibs: Found unsuitable version "2.7.9", but required is exact version "3.4.3" (found /usr/local/lib/libpython2.7.a) -- Found apache ant 1.9.3: /usr/bin/ant -- Found JNI: /usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) -- Found VTK ver. 6.0.0 (usefile: /usr/lib/cmake/vtk-6.0/UseVTK.cmake) -- Performing Test HAVE_CXX_WNO_UNDEF -- Performing Test HAVE_CXX_WNO_UNDEF - Success -- Performing Test HAVE_CXX_WNO_SHADOW -- Performing Test HAVE_CXX_WNO_SHADOW - Success -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL

-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success

-- General configuration for OpenCV 3.1.0-dev =====================================

-- Version control: 3.1.0-1848-g300f923

-- Platform: -- Timestamp: 2016-12-08T16:25:22Z -- Host: Linux 3.13.0-103-generic x86_64 -- CMake: 3.2.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: /usr/lib/x86_64-linux-gnu/libwebp.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gtk-3 gdk-3 atk-1.0 gio-2.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo-gobject pango-1.0 cairo gobject-2.0 glib-2.0 gthread-2.0 gstbase-0.10 gstreamer-0.10 gmodule-2.0 xml2 gstvideo-0.10 gstapp-0.10 gstriff-0.10 gstpbutils-0.10 dc1394 avcodec avformat avutil swscale vtkRenderingOpenGL vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport dl m pthread rt

-- 3rdparty dependencies:

-- OpenCV modules: -- To be built: core flann imgproc ml photo video viz imgcodecs shape videoio highgui objdetect superres ts features2d calib3d java stitching videostab -- Disabled: world -- Disabled by dependency: -

-- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 python3

-- GUI: -- QT: NO -- GTK+ 3.x: YES (ver 3.10.8) -- GThread : YES (ver 2.40.2) -- GtkGlExt: NO -- OpenGL support: NO

-- VTK support: YES (ver 6.0.0)

-- Media I/O: -- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) -- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver ) -- WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202) -- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.50) -- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3) -- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.1.0) -- GDAL: NO

-- GDCM: NO

-- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: YES (ver 2.2.1) -- FFMPEG: YES -- avcodec: YES (ver 56.60.100) -- avformat: YES (ver 56.40.101) -- avutil: YES (ver 54.31.100) -- swscale: YES (ver 3.1.101) -- avresample: NO -- GStreamer:
-- base: YES (ver 0.10.36) -- video: YES (ver 0.10.36) -- app: YES (ver 0.10.36) -- riff: YES (ver 0.10.36) -- pbutils: YES (ver 0.10.36) -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- Aravis SDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: NO/YES -- XIMEA: NO -- Xine: NO

-- gPhoto2: NO

-- Parallel framework: pthreads

-- Other third-party libraries: -- Use IPP: IPP not found or implicitly disabled -- Use IPP Async: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Lapack: NO -- Use Eigen: YES (ver 3.2.0) -- Use Cuda: NO -- Use OpenCL: YES -- Use OpenVX: NO

-- Use custom HAL: NO

-- OpenCL: <dynamic loading="" of="" opencl="" library=""> -- Include path: /home/kevmepls/opt/opencv/3rdparty/include/opencl/1.2 -- Use AMDFFT: NO

-- Use AMDBLAS: NO

-- Python 2:

-- Interpreter: /home/kevmepls/anaconda2/bin/python2.7 (ver 2.7.11)

-- Python 3:

-- Interpreter: /usr/bin/python3.4 (ver 3.4.3)

-- Python (for build): /home/kevmepls/anaconda2/bin/python2.7

-- Java: -- ant: /usr/bin/ant (ver 1.9.3) -- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include -- Java wrappers: YES

-- Java tests: YES

-- Matlab: Matlab not found or implicitly disabled

-- Documentation:

-- Doxygen: /usr/bin/doxygen (ver 1.8.6)

-- Tests and samples: -- Tests: YES -- Performance tests: YES

-- C/C++ Examples: NO

-- Install path: /usr/local

-- cvconfig.h is in: /home/kevmepls/opt/opencv/build2

-- -----------------------------------------------------------------

-- Configuring done -- Generating done -- Build files have been written to: /home/kevmepls/opt/opencv/build2

click to hide/show revision 4
No.4 Revision

updated 2016-12-08 10:35:39 -0600

berak gravatar image

Trying to run dnn module

I have installed Opencv 3.1.0 along with Opencv_contrib module with the aim of reading caffe models into Opencv. I followed the official Opencv installation documentation and with a change in Cmake command, I was able to build it successfully on Ubuntu 14.04lts.

When I type the following command to run the sample program -

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv`

I get the error below.

ssd_object_detection.cpp:1:27: fatal error: opencv2/dnn.hpp: No such file or directory
 #include <opencv2/dnn.hpp>
                           ^
compilation terminated.

I looked at the opencv_contrib github repo and they mentioned that you have to run it with a linker to the specific module which you want. So my command then became-

g++ -o 1 ssd_object_detection.cpp  `pkg-config --cflags --libs opencv` -lopencv_dnn

But I still get the same error. Does this mean that my dnn module hasn't been built properly? The error is from the header file opencv2/dnn.hpp not being recognised but I don't know why?

The sample program is from this link- sample program to load caffe model and run

Output of cmake-

cmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES=~/opt/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=/usr/local ..

-- The CXX compiler identification is GNU 4.8.4 -- The C compiler identification is GNU 4.8.4 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Detected version of GNU GCC: 48 (408) -- Performing Test HAVE_CXX_FSIGNED_CHAR -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success -- Performing Test HAVE_C_FSIGNED_CHAR -- Performing Test HAVE_C_FSIGNED_CHAR - Success -- Performing Test HAVE_CXX_W -- Performing Test HAVE_CXX_W - Success -- Performing Test HAVE_C_W -- Performing Test HAVE_C_W - Success -- Performing Test HAVE_CXX_WALL -- Performing Test HAVE_CXX_WALL - Success -- Performing Test HAVE_C_WALL -- Performing Test HAVE_C_WALL - Success -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success -- Performing Test HAVE_C_WERROR_RETURN_TYPE -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success -- Performing Test HAVE_CXX_WERROR_ADDRESS -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success -- Performing Test HAVE_C_WERROR_ADDRESS -- Performing Test HAVE_C_WERROR_ADDRESS - Success -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success -- Performing Test HAVE_CXX_WFORMAT -- Performing Test HAVE_CXX_WFORMAT - Success -- Performing Test HAVE_C_WFORMAT -- Performing Test HAVE_C_WFORMAT - Success -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success -- Performing Test HAVE_C_WMISSING_DECLARATIONS -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed -- Performing Test HAVE_C_WMISSING_PROTOTYPES -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed -- Performing Test HAVE_C_WSTRICT_PROTOTYPES -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success -- Performing Test HAVE_CXX_WUNDEF -- Performing Test HAVE_CXX_WUNDEF - Success -- Performing Test HAVE_C_WUNDEF -- Performing Test HAVE_C_WUNDEF - Success -- Performing Test HAVE_CXX_WINIT_SELF -- Performing Test HAVE_CXX_WINIT_SELF - Success -- Performing Test HAVE_C_WINIT_SELF -- Performing Test HAVE_C_WINIT_SELF - Success -- Performing Test HAVE_CXX_WPOINTER_ARITH -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success -- Performing Test HAVE_C_WPOINTER_ARITH -- Performing Test HAVE_C_WPOINTER_ARITH - Success -- Performing Test HAVE_CXX_WSHADOW -- Performing Test HAVE_CXX_WSHADOW - Success -- Performing Test HAVE_C_WSHADOW -- Performing Test HAVE_C_WSHADOW - Success -- Performing Test HAVE_CXX_WSIGN_PROMO -- Performing Test HAVE_CXX_WSIGN_PROMO - Success -- Performing Test HAVE_C_WSIGN_PROMO -- Performing Test HAVE_C_WSIGN_PROMO - Failed -- Performing Test HAVE_CXX_WNO_NARROWING -- Performing Test HAVE_CXX_WNO_NARROWING - Success -- Performing Test HAVE_C_WNO_NARROWING -- Performing Test HAVE_C_WNO_NARROWING - Success -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Performing Test HAVE_CXX_WNO_COMMENT -- Performing Test HAVE_CXX_WNO_COMMENT - Success -- Performing Test HAVE_C_WNO_COMMENT -- Performing Test HAVE_C_WNO_COMMENT - Success -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success -- Performing Test HAVE_CXX_WNO_LONG_LONG -- Performing Test HAVE_CXX_WNO_LONG_LONG - Success -- Performing Test HAVE_C_WNO_LONG_LONG -- Performing Test HAVE_C_WNO_LONG_LONG - Success -- Performing Test HAVE_CXX_PTHREAD -- Performing Test HAVE_CXX_PTHREAD - Success -- Performing Test HAVE_C_PTHREAD -- Performing Test HAVE_C_PTHREAD - Success -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success -- Performing Test HAVE_C_FOMIT_FRAME_POINTER -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success -- Performing Test HAVE_CXX_MSSE -- Performing Test HAVE_CXX_MSSE - Success -- Performing Test HAVE_C_MSSE -- Performing Test HAVE_C_MSSE - Success -- Performing Test HAVE_CXX_MSSE2 -- Performing Test HAVE_CXX_MSSE2 - Success -- Performing Test HAVE_C_MSSE2 -- Performing Test HAVE_C_MSSE2 - Success -- Performing Test HAVE_CXX_MNO_AVX -- Performing Test HAVE_CXX_MNO_AVX - Success -- Performing Test HAVE_C_MNO_AVX -- Performing Test HAVE_C_MNO_AVX - Success -- Performing Test HAVE_CXX_MSSE3 -- Performing Test HAVE_CXX_MSSE3 - Success -- Performing Test HAVE_C_MSSE3 -- Performing Test HAVE_C_MSSE3 - Success -- Performing Test HAVE_CXX_MNO_SSSE3 -- Performing Test HAVE_CXX_MNO_SSSE3 - Success -- Performing Test HAVE_C_MNO_SSSE3 -- Performing Test HAVE_C_MNO_SSSE3 - Success -- Performing Test HAVE_CXX_MNO_SSE4_1 -- Performing Test HAVE_CXX_MNO_SSE4_1 - Success -- Performing Test HAVE_C_MNO_SSE4_1 -- Performing Test HAVE_C_MNO_SSE4_1 - Success -- Performing Test HAVE_CXX_MNO_SSE4_2 -- Performing Test HAVE_CXX_MNO_SSE4_2 - Success -- Performing Test HAVE_C_MNO_SSE4_2 -- Performing Test HAVE_C_MNO_SSE4_2 - Success -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success -- Performing Test HAVE_C_FFUNCTION_SECTIONS -- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success -- Performing Test HAVE_C_FVISIBILITY_HIDDEN -- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed -- FP16: Feature disabled -- Looking for pthread.h -- Looking for pthread.h - found -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3") -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Found WebP: /usr/lib/x86_64-linux-gnu/libwebp.so
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50") -- Looking for /usr/include/libpng/png.h -- Looking for /usr/include/libpng/png.h - found -- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so -- checking for module 'gtk+-3.0' -- found gtk+-3.0, version 3.10.8 -- checking for module 'gthread-2.0' -- found gthread-2.0, version 2.40.2 -- checking for module 'gstreamer-base-1.0' -- package 'gstreamer-base-1.0' not found -- checking for module 'gstreamer-video-1.0' -- package 'gstreamer-video-1.0' not found -- checking for module 'gstreamer-app-1.0' -- package 'gstreamer-app-1.0' not found -- checking for module 'gstreamer-riff-1.0' -- package 'gstreamer-riff-1.0' not found -- checking for module 'gstreamer-pbutils-1.0' -- package 'gstreamer-pbutils-1.0' not found -- checking for module 'gstreamer-base-0.10' -- found gstreamer-base-0.10, version 0.10.36 -- checking for module 'gstreamer-video-0.10' -- found gstreamer-video-0.10, version 0.10.36 -- checking for module 'gstreamer-app-0.10' -- found gstreamer-app-0.10, version 0.10.36 -- checking for module 'gstreamer-riff-0.10' -- found gstreamer-riff-0.10, version 0.10.36 -- checking for module 'gstreamer-pbutils-0.10' -- found gstreamer-pbutils-0.10, version 0.10.36 -- checking for module 'libdc1394-2' -- found libdc1394-2, version 2.2.1 -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- checking for modules 'libavcodec;libavformat;libavutil;libswscale' -- found libavcodec, version 56.60.100 -- found libavformat, version 56.40.101 -- found libavutil, version 54.31.100 -- found libswscale, version 3.1.101 -- checking for module 'libavresample' -- package 'libavresample' not found -- checking for module 'libgphoto2' -- package 'libgphoto2' not found -- Looking for dgemm_ -- Looking for dgemm_ - found -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE
-- A library with BLAS API found. -- Looking for cheev_ -- Looking for cheev_ - found -- A library with LAPACK API found. -- ICV: Removing previous unpacked package: /home/kevmepls/opt/opencv/3rdparty/ippicv/unpack CMake Warning at 3rdparty/ippicv/downloader.cmake:56 (message): ICV: Local copy of ICV package has invalid MD5 hash: d41d8cd98f00b204e9800998ecf8427e (expected: 808b791a6eac9ed78d32a7666804320e) Call Stack (most recent call first): 3rdparty/ippicv/downloader.cmake:110 (_icv_downloader) cmake/OpenCVFindIPP.cmake:243 (include) cmake/OpenCVFindLibsPerf.cmake:41 (include) CMakeLists.txt:558 (include)

(include) -- ICV: Unpacking ippicv_linux_20151201.tgz to /home/kevmepls/opt/opencv/3rdparty/ippicv/unpack... CMake Warning (dev) at cmake/OpenCVUtils.cmake:67 (message): Assertion failed: EXISTS /home/kevmepls/opt/opencv/3rdparty/ippicv/unpack/ippicv_lnx Call Stack (most recent call first): 3rdparty/ippicv/downloader.cmake:102 (ocv_assert) 3rdparty/ippicv/downloader.cmake:110 (_icv_downloader) cmake/OpenCVFindIPP.cmake:243 (include) cmake/OpenCVFindLibsPerf.cmake:41 (include) CMakeLists.txt:558 (include) This warning is for project developers. Use -Wno-dev to suppress it.

it. -- ICV: Package successfully downloaded -- Found Doxygen: /usr/bin/doxygen (found version "1.8.6") -- Found PythonInterp: /home/kevmepls/anaconda2/bin/python2.7 (found suitable version "2.7.11", minimum required is "2.7") -- Could NOT find PythonLibs: Found unsuitable version "2.7.9", but required is exact version "2.7.11" (found /usr/local/lib/libpython2.7.a) -- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4") -- Could NOT find PythonLibs: Found unsuitable version "2.7.9", but required is exact version "3.4.3" (found /usr/local/lib/libpython2.7.a) -- Found apache ant 1.9.3: /usr/bin/ant -- Found JNI: /usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) -- Found VTK ver. 6.0.0 (usefile: /usr/lib/cmake/vtk-6.0/UseVTK.cmake) -- Performing Test HAVE_CXX_WNO_UNDEF -- Performing Test HAVE_CXX_WNO_UNDEF - Success -- Performing Test HAVE_CXX_WNO_SHADOW -- Performing Test HAVE_CXX_WNO_SHADOW - Success -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL

HAVE_CXX_WNO_OVERLOADED_VIRTUAL -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success

Success -- -- General configuration for OpenCV 3.1.0-dev =====================================

===================================== -- Version control: 3.1.0-1848-g300f923

3.1.0-1848-g300f923 -- -- Platform: -- Timestamp: 2016-12-08T16:25:22Z -- Host: Linux 3.13.0-103-generic x86_64 -- CMake: 3.2.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make

/usr/bin/make -- Configuration: Release

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: /usr/lib/x86_64-linux-gnu/libwebp.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gtk-3 gdk-3 atk-1.0 gio-2.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo-gobject pango-1.0 cairo gobject-2.0 glib-2.0 gthread-2.0 gstbase-0.10 gstreamer-0.10 gmodule-2.0 xml2 gstvideo-0.10 gstapp-0.10 gstriff-0.10 gstpbutils-0.10 dc1394 avcodec avformat avutil swscale vtkRenderingOpenGL vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport dl m pthread rt

rt -- 3rdparty dependencies:

dependencies: -- -- OpenCV modules: -- To be built: core flann imgproc ml photo video viz imgcodecs shape videoio highgui objdetect superres ts features2d calib3d java stitching videostab -- Disabled: world -- Disabled by dependency: -

- -- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 python3

python3 -- -- GUI: -- QT: NO -- GTK+ 3.x: YES (ver 3.10.8) -- GThread : YES (ver 2.40.2) -- GtkGlExt: NO -- OpenGL support: NO

NO -- VTK support: YES (ver 6.0.0)

6.0.0) -- -- Media I/O: -- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) -- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver ) -- WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202) -- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.50) -- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3) -- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.1.0) -- GDAL: NO

NO -- GDCM: NO

NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: YES (ver 2.2.1) -- FFMPEG: YES -- avcodec: YES (ver 56.60.100) -- avformat: YES (ver 56.40.101) -- avutil: YES (ver 54.31.100) -- swscale: YES (ver 3.1.101) -- avresample: NO -- GStreamer:
-- base: YES (ver 0.10.36) -- video: YES (ver 0.10.36) -- app: YES (ver 0.10.36) -- riff: YES (ver 0.10.36) -- pbutils: YES (ver 0.10.36) -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- Aravis SDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: NO/YES -- XIMEA: NO -- Xine: NO

NO -- gPhoto2: NO

NO -- -- Parallel framework: pthreads

pthreads -- -- Other third-party libraries: -- Use IPP: IPP not found or implicitly disabled -- Use IPP Async: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Lapack: NO -- Use Eigen: YES (ver 3.2.0) -- Use Cuda: NO -- Use OpenCL: YES -- Use OpenVX: NO

NO -- Use custom HAL: NO

NO -- -- OpenCL: <dynamic loading="" of="" opencl="" library=""> <Dynamic loading of OpenCL library> -- Include path: /home/kevmepls/opt/opencv/3rdparty/include/opencl/1.2 -- Use AMDFFT: NO

NO -- Use AMDBLAS: NO

NO -- -- Python 2:

2: -- Interpreter: /home/kevmepls/anaconda2/bin/python2.7 (ver 2.7.11)

2.7.11) -- -- Python 3:

3: -- Interpreter: /usr/bin/python3.4 (ver 3.4.3)

3.4.3) -- -- Python (for build): /home/kevmepls/anaconda2/bin/python2.7

/home/kevmepls/anaconda2/bin/python2.7 -- -- Java: -- ant: /usr/bin/ant (ver 1.9.3) -- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include -- Java wrappers: YES

YES -- Java tests: YES

YES -- -- Matlab: Matlab not found or implicitly disabled

-- Documentation:

disabled -- -- Documentation: -- Doxygen: /usr/bin/doxygen (ver 1.8.6)

1.8.6) -- -- Tests and samples: -- Tests: YES -- Performance tests: YES

YES -- C/C++ Examples: NO

NO -- -- Install path: /usr/local

/usr/local -- -- cvconfig.h is in: /home/kevmepls/opt/opencv/build2

-- -----------------------------------------------------------------

/home/kevmepls/opt/opencv/build2 -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: /home/kevmepls/opt/opencv/build2

/home/kevmepls/opt/opencv/build2