Difficulties with building OpenCV libraries in yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Difficulties with building OpenCV libraries in yocto

1,018 Views
janšrámek
Contributor I

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.

Labels (2)
0 Kudos
2 Replies

564 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Jan Šrámek,

Are you still having this issue? Have you tried the BSP Release? You should be able to bake these libraries on the latest release (3.14.28) but I’m not sure they will work on the Community BSP.

I would also make sure that the ACCEPT_FSL_EULA variable is set to 1, since these libraries may require it.

0 Kudos

564 Views
janšrámek
Contributor I

Hi gusarambula,

Thank you for reply and forgive me that i didn't respond for long time.

So, I tried to change EULA parameter and nothing changed. it is still missing. Regarding question if I'm using BSP release. Well, I am not sure. I just follow instruction and I do not know structure of these releases.

Do you have some idea?

Thank you in advance

Jan.

0 Kudos