* OpenCV yocto
@ 2015-06-21 2:22 Victor Rodriguez
2015-06-22 14:14 ` Leonardo Sandoval
0 siblings, 1 reply; 5+ messages in thread
From: Victor Rodriguez @ 2015-06-21 2:22 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenCV yocto
2015-06-21 2:22 OpenCV yocto Victor Rodriguez
@ 2015-06-22 14:14 ` Leonardo Sandoval
2015-07-06 3:44 ` Victor Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Leonardo Sandoval @ 2015-06-22 14:14 UTC (permalink / raw)
To: Victor Rodriguez, yocto
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.
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenCV yocto
2015-06-22 14:14 ` Leonardo Sandoval
@ 2015-07-06 3:44 ` Victor Rodriguez
2015-07-08 15:21 ` Victor Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Victor Rodriguez @ 2015-07-06 3:44 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: yocto
On Mon, Jun 22, 2015 at 9:14 AM, Leonardo Sandoval
<leonardo.sandoval.gonzalez@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
>
>> 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
>>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenCV yocto
2015-07-06 3:44 ` Victor Rodriguez
@ 2015-07-08 15:21 ` Victor Rodriguez
2015-07-08 15:45 ` Victor Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Victor Rodriguez @ 2015-07-08 15:21 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: yocto
On Sun, Jul 5, 2015 at 10:44 PM, Victor Rodriguez <vm.rod25@gmail.com> wrote:
> On Mon, Jun 22, 2015 at 9:14 AM, Leonardo Sandoval
> <leonardo.sandoval.gonzalez@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
>>
>>> 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
>>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OpenCV yocto
2015-07-08 15:21 ` Victor Rodriguez
@ 2015-07-08 15:45 ` Victor Rodriguez
0 siblings, 0 replies; 5+ messages in thread
From: Victor Rodriguez @ 2015-07-08 15:45 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: yocto
On Wed, Jul 8, 2015 at 10:21 AM, Victor Rodriguez <vm.rod25@gmail.com> wrote:
> On Sun, Jul 5, 2015 at 10:44 PM, Victor Rodriguez <vm.rod25@gmail.com> wrote:
>> On Mon, Jun 22, 2015 at 9:14 AM, Leonardo Sandoval
>> <leonardo.sandoval.gonzalez@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
>>>>
>>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-08 15:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-21 2:22 OpenCV yocto Victor Rodriguez
2015-06-22 14:14 ` Leonardo Sandoval
2015-07-06 3:44 ` Victor Rodriguez
2015-07-08 15:21 ` Victor Rodriguez
2015-07-08 15:45 ` Victor Rodriguez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.