Hi,
I am trying to build OpenCV (with contribe modules and cuda enabled) from scratch. I do this job more than ten times and I used it successfully but this time there is an error I do not recognize it.
In the building section with visual studio I see about 100 errors like this one:
LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_imgproc330d.lib'
the steps of my building are:
1- Download OpenCV source files.
2- Download OpenCV_Contrib
3- Copy contrib modules to the source one.
4- Config and generate with CMake GUI.
5- Build with Visual studio 2015
I try it with different OpenCV versions, but there is no difference...
Thanks a lot
System information (version)
OpenCV => 3.0 , 3.3 , 3.41
Operating System / Platform => Windows 10 64 Bit
Compiler => Visual Studio
2015 2015
And this is the output of
CMake: CMake:
Selecting Windows SDK version to target Windows 10.0.16299.
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.4")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
found Intel IPP (ICV version): 2017.0.2 [2017.0.2]
at: C:/A_Sharifian/opencv/build/3rdparty/ippicv/ippicv_win
found Intel IPP IW binaries: 2017.0.2
at: C:/A_Sharifian/opencv/build/3rdparty/ippicv/ippicv_win/../ippiw_win/
CUDA detected: 9.0
CUDA NVCC target flags: -gencode;arch=compute_52,code=sm_52;-D_FORCE_INLINES
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES)
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
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
freetype2: NO
harfbuzz: NO
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Excluding from source files list: C:/A_Sharifian/opencv/build/modules/imgproc/accum.neon.cpp
Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script.
Tesseract:
NO NO
General configuration for OpenCV 3.3.0 =====================================
Version control:
unknown unknown
Platform:
Timestamp: 2018-07-02T14:52:51Z
Host: Windows 10.0.16299 AMD64
CMake: 3.11.1
CMake generator: Visual Studio 14 2015 Win64
CMake build tool: C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
MSVC:
1900 1900
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
requested: SSE4_1 SSE4_2 AVX FP16 AVX2
SSE4_1 (2 files): + SSSE3 SSE4_1
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (7 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX
AVX2 AVX2
C/C++:
Built as dynamic libs?: YES
C++11: YES
C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe (ver 19.0.23506.0)
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 /MP8 /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 /MP8 /MDd /Zi /Ob0 /Od /RTC1
C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.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 /MP8 /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 /MP8 /MDd /Zi /Ob0 /Od /RTC1
Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug
Linker flags (Debug): /machine:x64 /debug /INCREMENTAL
ccache: NO
Precompiled headers: YES
Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 vfw32 cudart nppc bin npps cufft -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/lib/x64 -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0
3rdparty
dependencies: dependencies:
OpenCV modules:
To be built: cudev core cudaarithm flann imgproc ml objdetect phase_unwrapping plot reg surface_matching video xphoto bgsegm cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy img_hash imgcodecs photo shape videoio xobjdetect cudacodec highgui ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc optflow stitching
Disabled: contrib_world world
Disabled by dependency: -
Unavailable: cnn_3dobj cvv freetype hdf java python2 python3 sfm
viz viz
Windows RT support:
NO NO
GUI:
QT: NO
Win32 UI: YES
OpenGL support: NO
VTK support:
NO NO
Media I/O:
ZLib: build (ver 1.2.8)
JPEG: build (ver 90)
WEBP: build (ver encoder: 0x020e)
PNG: build (ver 1.6.24)
TIFF: build (ver 42 - 4.0.2)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
GDCM:
NO NO
Video I/O:
Video for Windows: YES
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (ver 57.89.100)
avformat: YES (ver 57.71.100)
avutil: YES (ver 55.58.100)
swscale: YES (ver 4.6.100)
avresample: YES (ver 3.5.0)
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: NO
PvAPI: NO
GigEVisionSDK: NO
DirectShow: YES
Media Foundation: NO
XIMEA: NO
Intel PerC:
NO NO
Parallel framework:
Concurrency Concurrency
Trace: YES (with Intel
ITT) ITT)
Other third-party libraries:
Use Intel IPP: 2017.0.2 [2017.0.2]
at: C:/A_Sharifian/opencv/build/3rdparty/ippicv/ippicv_win
Use Intel IPP IW: prebuilt binaries (2017.0.2)
Use Intel IPP Async: NO
Use Lapack: NO
Use Eigen: NO
Use Cuda: YES (ver 9.0)
Use OpenCL: YES
Use OpenVX: NO
Use custom HAL:
NO NO
NVIDIA CUDA
Use CUFFT: YES
Use CUBLAS: NO
USE NVCUVID: NO
NVIDIA GPU arch: 52
NVIDIA PTX archs:
Use fast math:
NO NO
OpenCL:
<dynamic loading="" of="" opencl="" library="">
<Dynamic loading of OpenCL library>
Include path: C:/A_Sharifian/opencv/3rdparty/include/opencl/1.2
Use AMDFFT: NO
Use AMDBLAS:
NO NO
Python 2:
Interpreter:
NO NO
Python 3:
Interpreter:
NO NO
Python (for build):
NO NO
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests:
NO NO
Matlab:
mex: C:/Program Files/MATLAB/R2016b/bin/mex.bat
Compiler/generator: Not working (bindings will not be
generated) generated)
Documentation:
Doxygen:
NO NO
Tests and samples:
Tests: YES
Performance tests: YES
C/C++ Examples:
NO NO
Install path:
C:/A_Sharifian/opencv/build/install C:/A_Sharifian/opencv/build/install
cvconfig.h is in:
C:/A_Sharifian/opencv/build C:/A_Sharifian/opencv/build
-----------------------------------------------------------------
Configuring
donedone