[yocto] OpenCV yocto

Victor Rodriguez vm.rod25 at gmail.com
Sat Jun 20 19:22:43 PDT 2015


HI team

I am having this same problem:

http://stackoverflow.com/questions/25332969/opencv-pkg-config-cannot-find-lopencv-ts-when-compiling-using-g

I try to build opencv simple source code :

g++ hello.cpp -o video `pkg-config --cflags --libs opencv`

But got this error :

/usr/lib/gcc/i586-poky-linux/4.9.2/../../../../i586-poky-linux/bin/ld:
cannot find -lopencv_ts
collect2: error: ld returned 1 exit status

My local.conf is like this :

EXTRA_IMAGE_FEATURES = "debug-tweaks tools-sdk"
IMAGE_INSTALL_append = " mpich mpich-dev gcc gcc-dev openssh php mariadb opencv"
LICENSE_FLAGS_WHITELIST = "commercial"
CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev
libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"


All the help is more than welcome

Best regards

Victor Rodriguez



More information about the yocto mailing list