Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv 3.1 build error

Hi, I am trying to build opencv-3.1 from source using Visual studio 2013. I have followed the procedure of installing opencv-3.1 from http://docs.opencv.org/master/d3/d52/tutorial_windows_install.html#gsc.tab=0

When building it from VS 2013 in debug/release mode, it gives following build errors:

Error 5799 error LNK1104: cannot open file '....\lib\Debug*opencv_cudaobjdetect310d.lib*' C:\opencv3\opencv\build\samples\cpp\LINK (TUTORIAL) imageSegmentation

And many more like this.

My CMake Configuration Output is:

found IPP (ICV version): 9.0.1 [9.0.1] at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win CUDA detected: 7.5 CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-D_FORCE_INLINES Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake Could NOT find PythonInterp: Found unsuitable version "2.7.12", but required is at least "3.4" (found C:/Python27/python.exe) Could NOT find PythonInterp: Found unsuitable version "2.7.12", but required is at least "3.2" (found C:/Python27/python.exe) Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 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) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) Build libprotobuf from sources: libprotobuf not found into system The protocol buffer compiler not found Tesseract: NO

General configuration for OpenCV 3.1.0-dev ===================================== Version control: 3.1.0-857-gf349464

Extra modules: Location (extra): C:/opencv3/opencv_contrib/modules Version control (extra): 3.1.0-188-g55e119c

Platform: Timestamp: 2016-07-16T13:27:04Z Host: Windows 6.3.9600 AMD64 CMake: 3.6.0 CMake generator: Visual Studio 12 2013 Win64 CMake build tool: C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe MSVC: 1800

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe (ver 18.0.21005.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /MD /O2 /Ob2 /DNDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /MD /O2 /Ob2 /DNDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL Precompiled headers: YES Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 vfw32 C:/Program Files/OpenNI2/Lib/OpenNI2.lib glu32 opengl32 cudart nppc nppi npps cufft -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5/lib/x64 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf

OpenCV modules: To be built: cudev core cudaarithm flann imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching Disabled: world contrib_world Disabled by dependency: - Unavailable: java python2 python3 viz cvv hdf matlab sfm

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: YES (glu32 opengl32) VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.6.19) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 56.41.100) format: YES (ver 56.36.101) util: YES (ver 54.27.100) swscale: YES (ver 3.1.101) resample: NO gentoo-style: YES GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: YES (ver 2.2.0, build 33) PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Parallel framework: Concurrency

Other third-party libraries: Use IPP: 9.0.1 [9.0.1] at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: YES (ver 3.2.8) Use Cuda: YES (ver 7.5) Use OpenCL: YES Use custom HAL: NO

NVIDIA CUDA Use CUFFT: YES Use CUBLAS: NO USE NVCUVID: NO NVIDIA GPU arch: 20 30 35 50 NVIDIA PTX archs: Use fast math: NO

OpenCL: <dynamic loading="" of="" opencl="" library=""> Include path: C:/opencv3/opencv/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.12)

Python 3: Interpreter: NO

Python (for build): C:/Python27/python.exe

Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

Documentation: Doxygen: NO PlantUML: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES

Install path: C:/opencv3/opencv/build/install

cvconfig.h is in: C:/opencv3/opencv/build

Configuring done

My laptop: Win8.1 64 bit, Nvidia Geforce 940M Graphics Card, Cuda tookit 7.5, Python 2.7.12, Numpy 1.11.1.

Opencv 3.1 build error

Hi, I am trying to build opencv-3.1 from source using Visual studio 2013. I have followed the procedure of installing opencv-3.1 from http://docs.opencv.org/master/d3/d52/tutorial_windows_install.html#gsc.tab=0

When building it from VS 2013 in debug/release mode, it gives following build errors:

Error 5799 error LNK1104: cannot open file '....\lib\Debug*opencv_cudaobjdetect310d.lib*' '....\lib\Debug\opencv_cudaobjdetect310d.lib' C:\opencv3\opencv\build\samples\cpp\LINK (TUTORIAL) imageSegmentation

And many more like this.

My CMake Configuration Output is:

found IPP (ICV version): 9.0.1 [9.0.1] at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win CUDA detected: 7.5 CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-D_FORCE_INLINES Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake Could NOT find PythonInterp: Found unsuitable version "2.7.12", but required is at least "3.4" (found C:/Python27/python.exe) Could NOT find PythonInterp: Found unsuitable version "2.7.12", but required is at least "3.2" (found C:/Python27/python.exe) Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 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) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) Build libprotobuf from sources: libprotobuf not found into system The protocol buffer compiler not found Tesseract: NO

General configuration for OpenCV 3.1.0-dev ===================================== Version control: 3.1.0-857-gf349464

Extra modules: Location (extra): C:/opencv3/opencv_contrib/modules Version control (extra): 3.1.0-188-g55e119c

Platform: Timestamp: 2016-07-16T13:27:04Z Host: Windows 6.3.9600 AMD64 CMake: 3.6.0 CMake generator: Visual Studio 12 2013 Win64 CMake build tool: C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe MSVC: 1800

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe (ver 18.0.21005.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /MD /O2 /Ob2 /DNDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /MD /O2 /Ob2 /DNDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL Precompiled headers: YES Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 vfw32 C:/Program Files/OpenNI2/Lib/OpenNI2.lib glu32 opengl32 cudart nppc nppi npps cufft -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5/lib/x64 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf

OpenCV modules: To be built: cudev core cudaarithm flann imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching Disabled: world contrib_world Disabled by dependency: - Unavailable: java python2 python3 viz cvv hdf matlab sfm

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: YES (glu32 opengl32) VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.6.19) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 56.41.100) format: YES (ver 56.36.101) util: YES (ver 54.27.100) swscale: YES (ver 3.1.101) resample: NO gentoo-style: YES GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: YES (ver 2.2.0, build 33) PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Parallel framework: Concurrency

Other third-party libraries: Use IPP: 9.0.1 [9.0.1] at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: YES (ver 3.2.8) Use Cuda: YES (ver 7.5) Use OpenCL: YES Use custom HAL: NO

NVIDIA CUDA Use CUFFT: YES Use CUBLAS: NO USE NVCUVID: NO NVIDIA GPU arch: 20 30 35 50 NVIDIA PTX archs: Use fast math: NO

OpenCL: <dynamic loading="" of="" opencl="" library=""> Include path: C:/opencv3/opencv/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.12)

Python 3: Interpreter: NO

Python (for build): C:/Python27/python.exe

Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

Documentation: Doxygen: NO PlantUML: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES

Install path: C:/opencv3/opencv/build/install

cvconfig.h is in: C:/opencv3/opencv/build

Configuring done

My laptop: Win8.1 64 bit, Nvidia Geforce 940M Graphics Card, Cuda tookit 7.5, Python 2.7.12, Numpy 1.11.1.

I want to build opencv with CUDA only, so please somebody help in solving my issue.

My CMake Configuration Output is:

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: YES (glu32 opengl32) VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.6.19) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 56.41.100) format: YES (ver 56.36.101) util: YES (ver 54.27.100) swscale: YES (ver 3.1.101) resample: NO gentoo-style: YES GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: YES (ver 2.2.0, build 33) PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Parallel framework: Concurrency

Other third-party libraries: Use IPP: 9.0.1 [9.0.1] at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: YES (ver 3.2.8) Use Cuda: YES (ver 7.5) Use OpenCL: YES Use custom HAL: NO

NVIDIA CUDA Use CUFFT: YES Use CUBLAS: NO USE NVCUVID: NO NVIDIA GPU arch: 20 30 35 50 NVIDIA PTX archs: Use fast math: NO

OpenCL: <dynamic loading="" of="" opencl="" library=""> Include path: C:/opencv3/opencv/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.12)

Python 3: Interpreter: NO

Python (for build): C:/Python27/python.exe

Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

Documentation: Doxygen: NO PlantUML: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES

Install path: C:/opencv3/opencv/build/install

cvconfig.h is in: C:/opencv3/opencv/build

Configuring done

Opencv 3.1 build error

Hi, I am trying to build opencv-3.1 from source using Visual studio 2013. I have followed the procedure of installing opencv-3.1 from http://docs.opencv.org/master/d3/d52/tutorial_windows_install.html#gsc.tab=0

When building it from VS 2013 in debug/release mode, it gives following build errors:

Error 5799 error LNK1104: cannot open file '....\lib\Debug\opencv_cudaobjdetect310d.lib' C:\opencv3\opencv\build\samples\cpp\LINK (TUTORIAL) imageSegmentation

opencv_cudaobjdetect310d.lib is creating problem.

And many more like this.

My laptop: Win8.1 64 bit, Nvidia Geforce 940M Graphics Card, Cuda tookit 7.5, Python 2.7.12, Numpy 1.11.1.

I want to build opencv with CUDA only, so please somebody help in solving my issue.

My CMake Configuration Output is:

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: YES (glu32 opengl32) VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.6.19) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 56.41.100) format: YES (ver 56.36.101) util: YES (ver 54.27.100) swscale: YES (ver 3.1.101) resample: NO gentoo-style: YES GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: YES (ver 2.2.0, build 33) PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Parallel framework: Concurrency

Other third-party libraries: Use IPP: 9.0.1 [9.0.1] at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: YES (ver 3.2.8) Use Cuda: YES (ver 7.5) Use OpenCL: YES Use custom HAL: NO

NVIDIA CUDA Use CUFFT: YES Use CUBLAS: NO USE NVCUVID: NO NVIDIA GPU arch: 20 30 35 50 NVIDIA PTX archs: Use fast math: NO

OpenCL: <dynamic loading="" of="" opencl="" library=""> Include path: C:/opencv3/opencv/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.12)

Python 3: Interpreter: NO

Python (for build): C:/Python27/python.exe

Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

Documentation: Doxygen: NO PlantUML: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES

Install path: C:/opencv3/opencv/build/install

cvconfig.h is in: C:/opencv3/opencv/build

Configuring done