Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

OpenCV with gcc and CMake: Cannot find source file

$
0
0
Hello I installed OpenCV in Fedora 22 using [this tutorial](http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/linux_install/linux_install.html). Now I'm following [this](http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html#linux-gcc-usage) example but CMake cannot find source file. The CMakeLists.txt and DisplayImage.cpp are in the same directory. [doliveira@localhost OpenCV_tests]$ cmake . -- The C compiler identification is GNU 5.1.1 -- The CXX compiler identification is GNU 5.1.1 -- Check for working C compiler: /usr/lib64/ccache/cc -- Check for working C compiler: /usr/lib64/ccache/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/lib64/ccache/c++ -- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done CMake Error at CMakeLists.txt:5 (add_executable): Cannot find source file: DisplayImage.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx -- Generating done -- Generating done -- Build files have been written to: /home/doliveira/Documentos/OpenCV_tests There is some problem with CMake or OpenCV instalation? Some info: cmake version 3.2.2 and OpenCV 3.0.0 Thank you

Viewing all articles
Browse latest Browse all 41027


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>