From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3FBF6E00A70; Sun, 5 Jul 2015 20:44:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (vm.rod25[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.213.171 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6ADAAE00A25 for ; Sun, 5 Jul 2015 20:44:44 -0700 (PDT) Received: by igcqs7 with SMTP id qs7so1880312igc.0 for ; Sun, 05 Jul 2015 20:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Xt7bao7wDnHYiyiYxEfCdZrDLJMBkcD1MsHt7aiNz+w=; b=ZFVsxCYTU2tmd6YE5GmyTD2lebqK47RJt5VfEnVpGobAQMlVrXf7ob8iZJRo9yXbaJ gkmIpMvPXvobLrKtvlV+fL8rs9Pm9paICawaYiteLijQK785p7q/KOeMmLuH6cJ+qKg6 C3C9hRTz4+1QkGnhndqI6CASrzIX24wPnkfu1yxSPnbkhnKxJoA6g75b8IbWDmoHOo9i 49EDUv2DvCZRsMZP7G9t8vS+70o82ZNfO8/K1Yr0SLdbn1EpLKq6pJDhDYkab2qj+h4r Bu2lYygCy9MVxGCxdGoPei+LdxCmuodl6k5/vQdWzNkgrS2SISdwJ4bKDhNMYrN8RaWK oifg== MIME-Version: 1.0 X-Received: by 10.107.131.199 with SMTP id n68mr1126335ioi.63.1436154283307; Sun, 05 Jul 2015 20:44:43 -0700 (PDT) Received: by 10.50.141.228 with HTTP; Sun, 5 Jul 2015 20:44:43 -0700 (PDT) In-Reply-To: <55881861.5090100@linux.intel.com> References: <55881861.5090100@linux.intel.com> Date: Sun, 5 Jul 2015 22:44:43 -0500 Message-ID: From: Victor Rodriguez To: Leonardo Sandoval Cc: "yocto@yoctoproject.org" Subject: Re: OpenCV yocto X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2015 03:44:46 -0000 Content-Type: text/plain; charset=UTF-8 On Mon, Jun 22, 2015 at 9:14 AM, Leonardo Sandoval 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 > >> 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 >> >