On Wed, Jul 8, 2015 at 10:21 AM, Victor Rodriguez <vm.ro...@gmail.com> wrote: > On Sun, Jul 5, 2015 at 10:44 PM, Victor Rodriguez <vm.ro...@gmail.com> wrote: >> On Mon, Jun 22, 2015 at 9:14 AM, Leonardo Sandoval >> <leonardo.sandoval.gonza...@linux.intel.com> wrote: >>> >>> >>> On 06/20/2015 09:22 PM, Victor Rodriguez wrote: >>>> >>>> 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` >>>> >>> Victor, you may take at look at this recipe (opencv_samples) >>> >>> http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree/meta-oe/recipes-support/opencv/opencv-samples_2.4.bb?h=master >>> >>> What I can see, seems that the `pkg-config --libs openvc` is missing on your >>> bb. >> >> >> Thanks for the help Leo , aparently the missing part was : >> >> opencv-staticdev >> >> My local.conf ended like : >> >> # CONF_VERSION is increased each time build/conf/ changes incompatibly >> and is used to >> # track the version of this file when it was generated. This can >> safely be ignored if >> # this doesn't mean anything to you. >> CONF_VERSION = "1" >> IMAGE_INSTALL_append = " gcc gcc-dev openssh php mariadb opencv >> opencv-samples" >> #IMAGE_INSTALL_append = " mpich mpich-dev" >> IMAGE_INSTALL_append = " libopencv-core-dev libopencv-highgui-dev >> libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev >> opencv-staticdev" >> LICENSE_FLAGS_WHITELIST = "commercial" >> >> >> IMAGE_FEATURES += "package-management" >> MACHINE = "intel-corei7-64" >> >> I learned in the hard way that CORE_IMAGE_EXTRA_INSTALL and >> IMAGE_INSTALL_append are nto the same when I build for xfce the >> CORE_IMAGE_EXTRA_INSTALL is not taking into consideration >> >> After that opencv is working like a charm >> >> Now I am having problems to come up the web cam , do you know any part >> that might be missing ? >> >> If I do lsusb the webcam is detected( I check and the driver is >> enable as module in make menuconfig ) , but when I try to run this >> code , It return as if the camera were not found >> >> https://github.com/VictorRodriguez/opencv_tutorial >> >> I might be missing gstream or something :( >> >> Thanks a lot for the help > > > Leo , this is the last config I have for the system , so you can > reproduce the bug :) > > https://github.com/VictorRodriguez/opencv_tutorial/tree/master/yocto-conf >
Forgot to add the dmesg and lsusb http://pastebin.com/ppNkyNU8 >>> >>>> 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 >>>> >>> -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto