7 Replies Latest reply on May 25, 2015 11:10 PM by EthanHunt

    Execution error in c++ with opencv

    EthanHunt

      Hello,

       

      I have installed all needed opencv libraries from Alext_Intel's repository. When I am executing

      command " pkg-config --cflags --libs opencv "

      output " -I/usr/include/opencv -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_ocl -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab -lrt -lpthread -lm -ldl "

       

      and second command to execute my c++ code

      command " g++ cameratest.cpp -o newest `pkg-config --cflags --libs opencv` "

      Error Output " /usr/lib/gcc/i586-poky-linux/4.8.2/../../../../i586-poky-linux/bin/ld: cannot find -lopencv_ts

      collect2: error: ld returned 1 exit status "

       

      So can anyone tell me what's the problem with opencv libraries?