how to build a image on i.mx6q sabre-auto with opencv

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to build a image on i.mx6q sabre-auto with opencv

1,676 次查看
yooliang
Contributor II

Hi,

I am in the process of building a linux 3.14.52 or 3.14.28 fsl-image-qt5 image with opencv using YOCTO for i.mx6q sabre-auto,the reference and local.conf read and follow are shown below.But failed many times and need your help.

building linux 3.14.28 fsl-image-gui with opencv using yocto on imx6q

Computer Vision on i.MX Processors: Building OpenCV-2.4.X for Freescale's i.MX6 BSP (Yocto)

local.conf(L3.14.52):

MACHINE ??= 'imx6qsabreauto'

DISTRO ?= 'fsl-imx-fb'

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 = '4'

PARALLEL_MAKE = '-j 4'

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

ACCEPT_FSL_EULA = ""

CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev\

libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"

    LICENSE_FLAGS_WHITELIST = "commercial"

0 项奖励
6 回复数

995 次查看
yooliang
Contributor II

Hi Bio_TICFSL

I change the para as:

MACHINE ??= 'imx6qsabreauto'

DISTRO ?= 'fsl-imx-x11"

and run the :

$bitbake fsl-image-gui

Regards!

how to build a image on i.mx6q sabre-auto with opencv

@Bio_TICFSL

0 项奖励

995 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi yoo,

Both links you have followed should works, so please share your error log in order to find the root cause of your issue.

Regards

0 项奖励

995 次查看
yooliang
Contributor II

DISTRO ?= 'fsl-imx-x11

and

the process of commands  are:

$ MACHINE=imx6qsabreauto source setup-environment build

$bitbake fsl-image-gui

The detail of error looks like:

| /home/lxy/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find -lgtk-x11-2.0

| /home/lxy/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find -lgdk-x11-2.0

| /home/lxy/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.2/ld: cannot find -latk-1.0

| collect2: error: ld returned 1 exit status

| make[2]: *** [lib/libopencv_highgui.so.2.4.11] Error 1

| make[2]: Leaving directory `/home/lxy/fsl-arm-yocto-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/build'

| make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2

| make[1]: Leaving directory `/home/lxy/fsl-arm-yocto-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/build'

| make: *** [all] Error 2

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_compile (log file is located at /home/lxy/fsl-arm-yocto-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/temp/log.do_compile.29611)

ERROR: Task 298 (/home/lxy/fsl-arm-yocto-bsp/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 3269 tasks of which 3266 didn't need to be rerun and 1 failed.

0 项奖励

995 次查看
yooliang
Contributor II

Hi Bio_TICFSL

I change the para as:

MACHINE ??= 'imx6qsabreauto'

DISTRO ?= 'fsl-imx-x11"

and run the :

$bitbake fsl-image-gui

today I bitbake an image again and it returns :

Regards!

0 项奖励

995 次查看
yooliang
Contributor II

today I bitbake an image again and it returns :

ERROR: Task 298 (/home/lxy/fsl-arm-yocto-bsp/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb, do_compile) failed with exit code '1'

pastedImage_0.png

0 项奖励

995 次查看
yooliang
Contributor II

Hi Bio_TICFSL

It is sorry that loss the record of what error I suffered,but I could find some words like this:do_

and I have build a image fellow this article:Computer Vision on i.MX Processors

When the time goes on,I 'll try it again and paste the error .

Regards

0 项奖励