Description of problem: Running cmake to build CppMt downloaded from github causes the following error: CMake Error in CMakeLists.txt: Imported target "opencv_xphoto" includes non-existent path "//include/opencv" Version-Release number of selected component (if applicable): opencv-devel-3.1.0-8.fc25.x86_64 How reproducible: Always Steps to Reproduce: 1. git clone GITHUBCOM_URL_TO_CppMt.git 2. cd CppMt*; mkdir build; cd build 3. cmake .. Actual results: CMake Error in CMakeLists.txt: Imported target "opencv_xphoto" includes non-existent path "//include/opencv" Expected results: Cmake should use /usr/include/opencv This works in Fedora 23 x86_64 using opencv-devel-2.4. Additional info: Adding the following line in CppMT*/CMakeLists.txt: message(STATUS "OpenCV_CONFIG_PATH=" ${OpenCV_CONFIG_PATH} " OpenCV_INSTALL_PATH=" ${OpenCV_INSTALL_PATH}) In Fedora 25, I get -- OpenCV_CONFIG_PATH=/lib64/OpenCV OpenCV_INSTALL_PATH=/ In Fedora 23, I get -- OpenCV_CONFIG_PATH=/usr/lib64/OpenCV OpenCV_INSTALL_PATH=/usr It looks like /usr/lib64/OpenCV/OpenCVConfig.cmake finds itself to be in /lib64 rather than /usr/lib64/
CppMt supports opencv-3 ?
(In reply to Sergio Monteiro Basto from comment #1) > CppMt supports opencv-3 ? Yes. That's according to CppMT/README.md: Dependencies OpenCV (>= 2.4.8), OpenCV 3 is supported
I'm unable to reproduce this in fedora 25, assuming you're getting CppMT from: https://github.com/gnebehay/CppMT Are you still seeing this issue? Do you have a conflicting installation of opencv somewhere?
Thank you so much for verifying this. It turns out it was a user error: my login profile setting had PATH=/bin:/usr/bin.. instead of PATH=/usr/bin.. for Fedora 25 (my Fedora 23 was setup correctly.) I got rid of /bin in PATH and that worked fine. Sorry for the bandwidth.