Hello I installed OpenCV in Fedora 22 using this tutorial.
Now I'm following this 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