I am doing object detection in images using OpenCV library in Eclipse java. For this I need to create a .vec
file using opencv_createsamples
utility in command prompt but opencv_createsamples
is not getting recognized in Dos prompt.
So I need to configure opencv enabled with TBB with CMake but getting compilation error in CMakeCCompilerId.c
and CMakeCXXCompilerId.cpp
files in CMakeLists.txt file.
Am I missing something?
CMake
was unable to compile a simple test program (one of the first thingsCMake
tries while detecting your build environment). Could you please add the complete error message to your question (because the reason for the error is most likely also in the message) and please add the command lineCMake
call you are trying also? General speaking you probably don't have the compiler environment set (see e.g. Why does Cmake Always Choose GCC?). – AnnadianeCMakeCCompilerId.c
andCMakeCXXCompilerId.cpp
, those are generated by CMake to test/find the compiler. So no need to download them. Your error message says,CMake
can't find your C/CXX compiler. What OS and compiler toolchain are you targeting? Does your compiler work outside CMake if called directly? If e.g.Linux
andGNU
what does happen if you callgcc
in abash
shell? I getgcc.exe: fatal error: no input files
compilation terminated.
, which is good because it did findgcc
and it's complaining that I didn't gave it any parameters to work with. – AnnadianeCMakeError.log
. There you will find what CMake tried to call. – AnnadianeCMAKE_CXX_COMPILER
could not be found` means that itgcc/g++
compiler could not be found. You need to set it as-DCMAKE_CXX_COMPILER=C:/Rtools/mingw_64/bin/g++.exe
– Caretaker