Skip to contentSkip to conversation

opencv_2.2.bb recipe doesn't install libopencv_core.so

DISCUSSION James Sarrett 2 participants 2 messages Apr 21, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm trying to bitbake OpenCV for a BeagleBoard-xM, and having limited success. OpenCV builds and installs fine into /usr/lib, but it doesn't create (sym?-)links for the base shared objects. In other words, after install there is a /usr/lib/libopencv_<opencvpart>.so.2.2 but no corresponding /usr/lib/libopencv_<opencvpart>.so or .a. this causes the OpenCV samples to fail to build on the target (they install as source) because the cflags and libs returned by pkg-config are inconsistent. pkg-config assumes no version numbers (-llibopencv_core etc.).

Any help is appreciated,

-James Sarrett

#1 lore raw
Quoted 8 lines · James Sarrett

I'm trying to bitbake OpenCV for a BeagleBoard-xM, and having limited success.  OpenCV builds and installs fine into /usr/lib, but it doesn't create (sym?-)links for the base shared objects.  In other words, after install there is a /usr/lib/libopencv_<opencvpart>.so.2.2 but no corresponding /usr/lib/libopencv_<opencvpart>.so or .a.  this causes the OpenCV samples to fail to build on the target (they install as source) because the cflags and libs returned by pkg-config are inconsistent. pkg-config assumes no version numbers (-llibopencv_core etc.).

Install the libopencv-dev package on the target if you want to build against it...

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics