Help building OpenCV 3.0 with CUDA 7.0 and VS2012

asked 2015-11-08 12:19:37 -0500

jpistorino gravatar image

I am using OpenCV 3.0 with CUDA 7.0 and VS2012 c++/cli on a Win 8.1 64 bit machine. I also have CMake 3.0.1.

Previously, I was able to build OpenCV 3.0 and everything worked fine. Now, I cannot successfully rebuild OpenCV.

I have completely deleted earlier versions of OpenCV and started from scratch (though I have not deleted opencv-contrib-modules).

I have seen that other have encountered similar problems but with no solution. link: http://answers.opencv.org/question/71...

The first fail response I get is as follows (sorry for the long listing but many times people do not put enough information):

42>  Building Custom Rule C:/opencv/sources/modules/core/CMakeLists.txt
42>  CMake is re-running because C:\opencv\build\modules\core\CMakeFiles\generate.stamp is out-of-date.  
42>    the file 'C:/opencv/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.obj.depend'
42>    is newer than 'C:\opencv\build\modules\core\CMakeFiles\generate.stamp.depend'
42>    result='-1'
42>  -- found IPP (ICV version): 8.2.1 [8.2.1]
42>  -- at: C:/opencv/sources/3rdparty/ippicv/unpack/ippicv_win
42>  -- CUDA detected: 7.0
42>  -- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode; arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30
42>  -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
42>  -- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.7")
42>  -- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.6")
42>  Traceback (most recent call last):
42>    File "<string>", line 1, in <module>
42>  ImportError: No module named 'numpy'
42>  -- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
42>CUSTOMBUILD : error : The system was unable to find the specified registry key or value.
42>CUSTOMBUILD : error : The system was unable to find the specified registry key or value.
42>  -- 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) 
42>  -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
42>  --   videoio: Removing WinRT API headers by default
42>  -- 
42>  -- General configuration for OpenCV 3.0.0 =====================================
42>  --   Version control:               unknown
42>  -- 
42>  --   Platform:
42>  --     Host:                        Windows 6.2 AMD64
42>  --     CMake:                       3.0.1
42>  --     CMake generator:             Visual Studio 11 2012 Win64
42>  --     CMake build tool:            C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
42>  --     MSVC:                        1700
42>  -- 
42>  --   C/C++:
42>  --     Built as dynamic libs?:      YES
42>  --     C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe  (ver 17.0.61030.0)
42>  --     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 /MP8  /MD /O2 /Ob2 /D NDEBUG  /Zi
42>  --     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 ...
(more)
edit retag flag offensive close merge delete

Comments

Hmm your problem is not identical to the linked question, for your part, CMAKE is not able to start the process, whereas the linked topic has an error during the built ...

StevenPuttemans gravatar imageStevenPuttemans ( 2016-01-15 03:47:53 -0500 )edit