wolfgar / meta-stef

yocto layer for imx6 xbmc image
MIT License
4 stars 9 forks source link

Wrong version of egl libraries on daisy? #5

Open msahlen opened 10 years ago

msahlen commented 10 years ago

Hi, I have been enjoying your xbmc image for a couple of weeks now. Very impressive, good work!

I just tried to bitbake xbmc-image with the latest meta-fsl-arm and your layer(daisy branch). I get the following error:

| xbmc/windowing/egl/windowing_egl.a(EGLNativeTypeIMX.o): In function CEGLNativeTypeIMX::CreateNativeWindow()': | /mnt/data/wandboard/yocto-xbmc-latest/build/tmp/work/wandboard_quad-poky-linux-gnueabi/xbmc/13-r1.1/git/xbmc/windowing/egl/EGLNativeTypeIMX.cpp:134: undefined reference tofbCreateWindow' | xbmc/windowing/egl/windowing_egl.a(EGLNativeTypeIMX.o): In function CEGLNativeTypeIMX::DestroyNativeDisplay()': | /mnt/data/wandboard/yocto-xbmc-latest/build/tmp/work/wandboard_quad-poky-linux-gnueabi/xbmc/13-r1.1/git/xbmc/windowing/egl/EGLNativeTypeIMX.cpp:162: undefined reference tofbDestroyDisplay' | xbmc/windowing/egl/windowing_egl.a(EGLNativeTypeIMX.o): In function CEGLNativeTypeIMX::DestroyNativeWindow()': | /mnt/data/wandboard/yocto-xbmc-latest/build/tmp/work/wandboard_quad-poky-linux-gnueabi/xbmc/13-r1.1/git/xbmc/windowing/egl/EGLNativeTypeIMX.cpp:170: undefined reference tofbDestroyWindow' | xbmc/windowing/egl/windowing_egl.a(EGLNativeTypeIMX.o): In function CEGLNativeTypeIMX::CreateNativeDisplay()': | /mnt/data/wandboard/yocto-xbmc-latest/build/tmp/work/wandboard_quad-poky-linux-gnueabi/xbmc/13-r1.1/git/xbmc/windowing/egl/EGLNativeTypeIMX.cpp:127: undefined reference tofbGetDisplayByIndex' | collect2: error: ld returned 1 exit status | Makefile:540: recipe for target 'xbmc.bin' failed | make: *\ [xbmc.bin] Error 1 | ERROR: oe_runmake failed | WARNING: /mnt/data/wandboard/yocto-xbmc-latest/build/tmp/work/wandboard_quad-poky-linux-gnueabi/xbmc/13-r1.1/temp/run.do_compile.5446:1 exit 1 from | exit 1 | ERROR: Function failed: do_compile (log file is located at /mnt/data/wandboard/yocto-xbmc-latest/build/tmp/work/wandboard_quad-poky-linux-gnueabi/xbmc/13-r1.1/temp/log.do_compile.5446) ERROR: Task 307 (/mnt/data/wandboard/yocto-xbmc-latest/sources/meta-stef/recipes-stef/xbmc/xbmc_13.bb, do_compile) failed with exit code '1'

This leads me to believe that I am using the wrong version of the EGL libraries. Have you encountered this issue? As I am a bit of a newb on yocto I am not quite sure how to fix this.

wolfgar commented 10 years ago

Hi it looks like it is not about the library version but about using vivante library (the missing symbols are only found in EGL vivante libraries and not in other EGL) what is your configuration file ?

msahlen commented 10 years ago

Ok, I see. I just did the following(building for wandboard-quad since I failed to mention that ):

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b daisy cloned your repo and added it to bblayers.conf

bblayers.conf:

LCONF_VERSION = "6" BBPATH = "${TOPDIR}" BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" BBFILES ?= "" BBLAYERS = " \ ${BSPDIR}/sources/poky/meta \ ${BSPDIR}/sources/poky/meta-yocto \ \ ${BSPDIR}/sources/meta-openembedded/meta-oe \ ${BSPDIR}/sources/meta-openembedded/meta-networking \ ${BSPDIR}/sources/meta-openembedded/meta-filesystems \ \ ${BSPDIR}/sources/meta-fsl-arm \ ${BSPDIR}/sources/meta-fsl-arm-extra \ ${BSPDIR}/sources/meta-fsl-demos \ \ ${BSPDIR}/sources/meta-stef \ "

I got a build error for mpeg2dec when bitbaking xbmc-image so I added LICENSE_FLAGS_WHITELIST = "commercial" to local.conf:

"BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" MACHINE ??= 'wandboard-quad' 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_pn-qemu-native = "sdl" PACKAGECONFIG_pn-nativesdk-qemu = "sdl" ASSUME_PROVIDED += "libsdl-native" CONF_VERSION = "1" BB_NUMBER_THREADS = '8' PARALLEL_MAKE = '-j 8' DL_DIR ?= "${BSPDIR}/downloads/" ACCEPT_FSL_EULA = "" LICENSE_FLAGS_WHITELIST = "commercial" "