Ask Your Question

apanimesh_061's profile - activity

2014-12-27 09:17:22 -0600 received badge  Organizer (source)
2014-12-27 09:17:10 -0600 asked a question OpenCV build errors in Debug mode for version 2.4.10

I was trying to build OpenCV 2.4.10 on Windows 8.1 machine using VS 2013. When I built it in Release all projects were built successfully but in debug mode there were 3 failed builds. I searched through the build log and found these:

47>CUSTOMBUILD : CMake error : Cannot open file for write: E:/opencv/build/CMakeFiles/CMakeTmp/ALL_BUILD.vcxproj.tmp
47>CUSTOMBUILD : CMake error : : System Error: Permission denied
47>CUSTOMBUILD : CMake error : Internal CMake error, TryCompile generation of cmake failed

CMake Error at cmake/OpenCVUtils.cmake:271 (file):
46>    file failed to open for writing (Permission denied):
46>  
46>      E:/opencv/build/version_string.tmp
46>  Call Stack (most recent call first):
46>    cmake/OpenCVUtils.cmake:322 (ocv_output_status)
46>    CMakeLists.txt:1051 (status)
46>  
46>  
46>  --     C/C++ Examples:              YES
46>  CMake Error at cmake/OpenCVUtils.cmake:271 (file):
46>    file failed to open for writing (Permission denied):
46>  
46>      E:/opencv/build/version_string.tmp
46>  Call Stack (most recent call first):
46>    cmake/OpenCVUtils.cmake:322 (ocv_output_status)
46>    CMakeLists.txt:1052 (status)

I don't know why I got "permission denied" when I was running VS as an administrator.

I also found a warning about OpenCL which was:

47>  CMake Warning at cmake/OpenCVDetectOpenCL.cmake:22 (message):
47>    Can't use OpenCL
47>  Call Stack (most recent call first):
47>    CMakeLists.txt:508 (include)

OpenCL:
46>  --     Version:                     dynamic
46>  --     Include path:                E:/opencv/sources/3rdparty/include/opencl/1.2 E:/AMD/clAmdFft/include E:/AMD/clAmdBlas/include
46>  --     Use AMD FFT:                 YES
46>  --     Use AMD BLAS:                YES

How should I correct all there issues?

Please help!