OpenCV_LIBS=opencv_calib3d opencv_core opencv_dnn opencv_features2d opencv_flann opencv_highgui opencv_imgcodecs opencv_imgproc opencv_ml opencv_objdetect opencv_photo opencv_shape opencv_stitching opencv_superres opencv_video opencv_videoio opencv_videostabįrom my point of view I have checked everything but still it does not work. I have also printed values of CMake properties: OpenCV_INCLUDE_DIRS=/usr/local/include /usr/local/include/opencv Makefile:118: recipe for target 'qt_segmentation' failed Make: *** Error 2ĬMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/qt_segmentation.dir/rule' failed usr/local/include/opencv2/core/cvstd.hpp:656: undefined reference to `cv::String::deallocate()'Ĭollect2: error: ld returned 1 exit statusĬMakeFiles/qt_segmentation.dir/build.make:83: recipe for target 'qt_segmentation' failedĬMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/qt_segmentation.dir/all' failed usr/local/include/opencv2/core/cvstd.hpp:648: undefined reference to `cv::String::deallocate()'ĬMakeFiles/qt_segmentation.dir/: In function `cv::String::operator=(cv::String const&)': The installation package was faulty and contained'/usr/lib/cmake/vtk-6.2/VTKTargets.cmake' but not all the files it references. An install or uninstall procedure did not complete successfully. home/bienqq/CLionProjects/qt-segmentation/main.cpp:6: undefined reference to `cv::getVersionRevision()'ĬMakeFiles/qt_segmentation.dir/: In function `cv::String::~String()': Possible reasons include: The file was deleted, renamed, or moved to another location. ![]() Linking CXX executable qt_segmentationĬMakeFiles/qt_segmentation.dir/: In function `main': Build files have been written to: /home/bienqq/CLionProjects/qt-segmentation/cmake-build-debug home/bienqq/clion-2019.3.4/bin/cmake/linux/bin/cmake -build /home/bienqq/CLionProjects/qt-segmentation/cmake-build-debug -target qt_segmentation -j 2 G++ -std=c++11 main.cpp `pkg-config -libs -cflags opencv` -o mainĮrror: = ![]() Std::cout<<cv::getVersionRevision()<<std::endl Ĭompiler itself seems to work properly I can compile my file with following command with success: Target_include_directories(qt_segmentation PUBLIC $) My CMakeList.txt cmake_minimum_required(VERSION 3.15) I have spent many hours to get to know what is wrong but still I have totally no idea. I have problem with simple OpenCV app build with CMake.
0 Comments
Leave a Reply. |