Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error using CMake for 3.0alpha VS2012

I recently downloaded the 3.0alpha and am attempting to compile it on a Win 8.1 machine using VS2012 64 bit.

When I try and configure the code using CMake, I get: ... Found VTK ver. 6.1.0 (usefile: C:/VTK/VTK-6.1.0/CMake/UseVTK.cmake) CMake Error at modules/gpu/CMakeLists.txt:88 (ocv_add_precompiled_headers): Unknown CMake command "ocv_add_precompiled_headers".

Configuring incomplete, errors occurred!

I do have CMake set to the proper platform so I am wondering what the issue is. I am a CMake newbie so it may be something stupid.

The last version I downloaded was 2.4.8 so do not know if this would have been an issue in 2.4.9.

Any help appreciated.

Thanks, James

Error using CMake for 3.0alpha VS2012

I recently downloaded the 3.0alpha and am attempting to compile it on a Win 8.1 machine using VS2012 64 bit.

When I try and configure the code using CMake, I get: get:

...
Found VTK ver. 6.1.0 (usefile: C:/VTK/VTK-6.1.0/CMake/UseVTK.cmake)
CMake Error at modules/gpu/CMakeLists.txt:88 (ocv_add_precompiled_headers):
  Unknown CMake command "ocv_add_precompiled_headers".

"ocv_add_precompiled_headers".

Configuring incomplete, errors occurred!

I do have CMake set to the proper platform so I am wondering what the issue is. I am a CMake newbie so it may be something stupid.

The last version I downloaded was 2.4.8 so do not know if this would have been an issue in 2.4.9.

Any help appreciated.

Thanks, James

Error using CMake for 3.0alpha VS2012

I recently downloaded the 3.0alpha and am attempting to compile it on a Win 8.1 machine using VS2012 64 bit.bit and CMake .8.11.2

When I try and configure the code using CMake, I get:

...
Checking for Windows Platform SDK
Checking for Visual Studio 2012
CUDA detected: 5.5
CUDA NVCC target flags: -gencode;arch=compute_11,code=sm_11;-gencode; arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-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
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.6" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "1.4", 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) 
Found VTK ver. 6.1.0 (usefile: C:/VTK/VTK-6.1.0/CMake/UseVTK.cmake)
CMake Error at modules/gpu/CMakeLists.txt:88 (ocv_add_precompiled_headers):
  Unknown CMake command "ocv_add_precompiled_headers".

Configuring incomplete, errors occurred!

occurred!

I do have CMake set to the proper platform (Visual Studio 11 Win64) so I am wondering what the issue is. is. I also have Python3.4 installed in a c:\Python34 directory and do not have Python27 installed any longer. I also have VTK installed in a VTK directory.

I am a CMake newbie so it may be something stupid.

The last version I downloaded was 2.4.8 so do not know if this would have been an issue in 2.4.9.

Any help appreciated.

Thanks, James

Error using CMake for 3.0alpha VS2012

I recently downloaded the 3.0alpha and am attempting to compile it on a Win 8.1 machine using VS2012 64 bit and CMake .8.11.22.8.11.2. I also have CUDA 5.5 with an NVidia card.

When I try and configure the code using CMake, I get:

Checking for Windows Platform SDK
Checking for Visual Studio 2012
CUDA detected: 5.5
CUDA NVCC target flags: -gencode;arch=compute_11,code=sm_11;-gencode; arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-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
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.6" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "1.4", 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) 
Found VTK ver. 6.1.0 (usefile: C:/VTK/VTK-6.1.0/CMake/UseVTK.cmake)
CMake Error at modules/gpu/CMakeLists.txt:88 (ocv_add_precompiled_headers):
  Unknown CMake command "ocv_add_precompiled_headers".

Configuring incomplete, errors occurred!

I do have CMake set to the proper platform (Visual Studio 11 Win64) so I am wondering what the issue is. I also have Python3.4 installed in a c:\Python34 directory and do not have Python27 installed any longer. I also have VTK installed in a VTK directory.

I am a CMake newbie so it may be something stupid.

The last version I downloaded was 2.4.8 so do not know if this would have been an issue in 2.4.9.

Any help appreciated.

Thanks, James