AnsweredAssumed Answered

Difficulties with building OpenCV libraries in yocto

Question asked by Jan Šrámek on Oct 4, 2015
Latest reply on Dec 13, 2015 by Jan Šrámek

Hi all,

 

I have difficulties with building toolchain including opencv libraries and includes. I'm using branch Fido, however a tried also Daisy and Dora. I get same results. When I build via "bitbake meta-toolchain-qt" I get no errors. After installation opencv and opencv2 folder is missing in <sysroot>/usr/include/ folder. I Looked around for few hour and built toolchain more that 20 times and still getting these output.

Does anybody know why is this happening?

 

This is output from installation of toolchain:

jan@jan-MS-7592:/opt/test$ ls

1.6.3-qte  poky

jan@jan-MS-7592:/opt/test$ find -name cv.h

./1.6.3-qte/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/perl/5.14.3/CORE/cv.h

./1.6.3-qte/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/src/debug/perl/5.14.3-r1/perl-5.14.3/cv.h

./poky/1.6.3-qt/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/perl/5.14.3/CORE/cv.h

./poky/1.6.3-qt/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/src/debug/perl/5.14.3-r1/perl-5.14.3/cv.h

./poky/1.8-qt/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/perl/5.20.0/CORE/cv.h

./poky/1.8-qt/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/src/debug/perl/5.20.0-r1/perl-5.20.0/cv.h

jan@jan-MS-7592:/opt/test$

 

 

Here is my local.conf:

 

MACHINE ??= 'imx6sxsabresd'

DISTRO ?= 'poky'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

    STOPTASKS,${TMPDIR},1G,100K \

    STOPTASKS,${DL_DIR},1G,100K \

    STOPTASKS,${SSTATE_DIR},1G,100K \

    ABORT,${TMPDIR},100M,1K \

    ABORT,${DL_DIR},100M,1K \

    ABORT,${SSTATE_DIR},100M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

 

 

BB_NUMBER_THREADS = '3'

PARALLEL_MAKE = '-j 3'

 

 

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh package-management tools-sdk tools-debug"

#CORE_IMAGE_EXTRA_INSTALL += "gpu-viv-bin-mx6q gpu-viv-bin-mx6q-dev"

CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"

LICENSE_FLAGS_WHITELIST = "commercial"

IMAGE_OVERHEAD_FACTOR = "2"

IMAGE_INSTALL_append = " strace htop gcc g++ binutils libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev \

autoconf automake ccache chkconfig glib-networking glibmm \

packagegroup-core-buildessential pkgconfig  \

boost cmake zlib glib-2.0 packagegroup-fsl-tools-testapps  \

    cpufrequtils \

    nano \

    gdb \

    gstreamer \

    openssh-sftp-server \

    packagegroup-fsl-gstreamer \

    packagegroup-fsl-tools-testapps \

    packagegroup-fsl-tools-benchmark \

    imx-vpu \

    imx-test \

    fontconfig freetype pulseaudio dbus \

    alsa-lib alsa-tools alsa-state alsa-utils-alsaconf fsl-alsa-plugins \

    i2c-tools"

 

 

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = ""

 

 

Thank you in advance

Jan.

Outcomes