AnsweredAssumed Answered

Help with yocto opencv/openNi

Question asked by Andrea Julian on Feb 14, 2014
Latest reply on Apr 3, 2016 by Rahul Reddy
Branched to a new discussion

hello Im using the wandboard quad now.

previously, we used the wandboard dual;

now i cant bake the same image:

 

~/fsl-community-bsp$ MACHINE=wandboard-quad . ./setup-environment build

Configuring for wandboard-quad

 

 

Welcome to Freescale Community BSP

 

 

The Yocto Project has extensive documentation about OE including a

reference manual which can be found at:

    http://yoctoproject.org/documentation

 

 

For more information about OpenEmbedded see their website:

    http://www.openembedded.org/

 

 

You can now run 'bitbake <target>'

 

 

Common targets are:

    core-image-minimal

    meta-toolchain

    meta-toolchain-sdk

    adt-installer

    meta-ide-support

 

 

Your configuration files at build has not been touched.

~/fsl-community-bsp/build$ bitbake fsl-image-gui-sdk

Loading cache: 100% |################################################################################################| ETA:  00:00:00

Loaded 1737 entries from dependency cache.

ERROR: Nothing PROVIDES 'fsl-image-gui-sdk'. Close matches:

  fsl-image-gui

  fsl-image-test

 

 

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

 

so i baked the fsl-image-gui, core-image-lsb-sdk, core-image-sato-sdk, and core-image-x11.

 

now regardless of the image,

 

i try to install OPENNI

 

$ cd ~/nfsRootFS/current/home/root

 

$ sudo wget "http://www.openni.org/wp-content/uploads/2013/11/OpenNI-Linux-Arm-2.2.0.33.tar.zip"

 

$ sudo apt-get install unzip

 

$ sudo unzip OpenNI-Linux-Arm-2.2.tar.zip

 

$ sudo tar xf OpenNI-Linux-Arm-2.2.tar.bz2

 

$ sudo rm OpenNI-Linux-Arm-2.2.tar.*

 

$ sudo minicom

 

# cd ~/OpenNI-Linux-Arm-2.2

 

root@wandboard-quad:~/OpenNI-Linux-Arm-2.2# ./install.sh

 

root@wandboard-quad:~/OpenNI-Linux-Arm-2.2# cd Samples/Bin/

root@wandboard-quad:~/OpenNI-Linux-Arm-2.2/Samples/Bin# chmod 777 SimpleRead

root@wandboard-quad:~/OpenNI-Linux-Arm-2.2/Samples/Bin# ./SimpleRead

-sh: ./SimpleRead: No such file or directory

 

same with opencv

 

i crossed compiled opencv built all examples as said here: Cross compilation for ARM based Linux systems — OpenCV 2.4.8.0 documentation

 

root@wandboard-quad:~/opencv-2.4.8/samples/c# ./contours

-sh: ./contours: cannot execute binary file

 

and if i try a bake:

lighthouse@hec02:~/fsl-community-bsp/build$ bitbake opencv

 

WARNING: Unable to get checksum for linux-boundary SRC_URI entry defconfig: file could not be found################  | ETA:  00:00:00

Parsing recipes: 100% |##############################################################################################| Time: 00:00:15

Parsing of 1343 .bb files complete (0 cached, 1343 parsed). 1736 targets, 77 skipped, 0 masked, 0 errors.

NOTE: Resolving any missing task queue dependencies

NOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)

NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg

ERROR: Nothing PROVIDES 'libav' (but /home/lighthouse/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb DEPENDS on or otherwise requires it)

ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST

ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST

ERROR: Required build target 'opencv' has no buildable providers.

Missing or unbuildable dependency chain was: ['opencv', 'libav']

Summary: There was 1 WARNING message shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

i have livab installed, and i added the whitelist in the .conf:

 

MACHINE ??= 'wandboard-quad'

DISTRO ?= 'poky'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks package-management"

EXTRA_IMAGE_FEATURES = "tools-sdk"

EXTRA_IMAGE_FEATURES = "tools-debug"

#IMAGE_INSTALL_append = " opencv"

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

PATCHRESOLVE = "noop"

OE_TERMINAL = "gnome"

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"

CONF_VERSION = "1"

 

 

BB_NUMBER_THREADS = '8'

PARALLEL_MAKE = '-j 8'

INHERIT += "rm_work"

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

LICENSE_FLAGS_WHITELIST = "commercial_libav"

LICENSE_FLAGS_WHITELIST = "commercial"

LICENSE_FLAGS_WHITELIST = "commercial_x264"

ACCEPT_FSL_EULA = ""

 

 

what do i do? if these programs don't work, our project won't work.

 

maybe by adding this?

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

tslib-conf tslib-tests tslib-calibrate openssh-sftp-server alsa-lib alsa-tools alsa-state alsa-utils-alsaconf \

tslib evtest dbus nano gstreamer \

cairo pango fontconfig freetype pulseaudio "

 

im baking another fslimage-gui with this and will update

thanks!

Outcomes