I'm facing problem in linking openCV 3.0 with openni 2.2 using cmake 3.4. It keep showing error as No CMAKE_CXX_COMPILER could be found.

asked 2015-11-20 07:56:55 -0600

My PC has windows 7 (32-bit) and visual studio 2012. please suggest any

edit retag flag offensive close merge delete

Comments

Can you post out cmake file and the error ?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-11-20 09:55:44 -0600 )edit

can you suggest me the steps for linking opencv with openni or is should use previous version .

dev9004 gravatar imagedev9004 ( 2015-11-20 11:52:22 -0600 )edit

The CXX compiler identification is unknown The C compiler identification is unknown CMake Error at CMakeLists.txt:88 (project): No CMAKE_CXX_COMPILER could be found.

CMake Error at CMakeLists.txt:88 (project): No CMAKE_C_COMPILER could be found.

Configuring incomplete, errors occurred! See also "C:/opencv/install/CMakeFiles/CMakeError.log".

dev9004 gravatar imagedev9004 ( 2015-11-20 12:31:21 -0600 )edit

I used

find_package(OpenCV REQUIRED
core
imgproc
features2d
nonfree
highgui)
include_directories(src/cpp
    src/hpp
    ${OpenCV2_INCLUDE_DIRS})
add_executable(${EXECUTABLE_NAME} ...)
target_link_libraries(${EXECUTABLE_NAME}
     ${OpenCV_LIBS})
thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-11-23 04:07:33 -0600 )edit