[meta-freescale] Qt5 With Yocto Missing Libraries

Morgan McKenzie rmtm at uvic.ca
Fri Dec 27 18:13:30 PST 2013





Hi David,
I was one of the people asking questions in the other thread - I don't know what the problem is but I can tell you what I did. 
$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dora$: repo sync$: cd <fsl-community-bsp>/source/$: git clone https://github.com/meta-qt5/meta-qt5.git$: cd meta-qt5$: git checkout dora

I've added the following line to build/conf/local.conf - I was told it has to be there and not in my image     DISTRO_FEATURES_remove = "x11 wayland"  
And below between the two ----- lines is my .bb image definition - I opted not to do everything in the conf file just in case I wanted to make a lightweight image without qt later (and just to be cleaner about it)

The one difference is that my project was using the i.mx6q Sabre Auto board, but really should make little to no difference. Oh and on that note you probably won't want to have canutils included in your project so remove that bit.
#---------------------------------------------------------
SYSTEMD_INSTALL = " \    systemd \    systemd-compat-units \    systemd-speed-hacks \    udev-systemd \    rsyslog-systemd \"
SYSV_INSTALL = " \    udev \    sysvinit \    initscripts \"
MACHINE_FEATURES += "wifi"
IMAGE_FEATURES += "\	ssh-server-openssh \	splash \"
DEPENDS += "\	gpu-viv-bin-mx6q \	libpng \"
#core-image-minimalIMAGE_INSTALL += "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} \	${CORE_IMAGE_EXTRA_INSTALL} \"
#QT-in-use-common:IMAGE_INSTALL += " \    base-files \    base-passwd \    busybox \    ${@base_contains("MACHINE_FEATURES", "systemd", "${SYSTEMD_INSTALL}", "${SYSV_INSTALL}", d)} \    packagegroup-fsl-gstreamer \    packagegroup-base \"
#CANIMAGE_INSTALL += " \    canutils \"
#QT5:IMAGE_INSTALL += " \	gpu-viv-bin-mx6q \	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 \	git \	qtbase \	qtbase-fonts \	qtbase-plugins \	qtbase-examples \	qt3d \	qtmultimedia \	qtlocation \	cinematicexperience \	gstreamer \	cairo \	pango \	fontconfig \	freetype \	pulseaudio \	strace \	gdb \	rsync \	libpng \	libpng12 \	openssh \"
export IMAGE_BASENAME = "your-image-name-here"
inherit core-image
#---------------------------------------------------------

One last thing - if you do end up getting it to work, you'll probably have some trouble with a touchscreen (if that's what you're trying for)... make sure it's enabled in the kernel and then you might have to do some of these to get it to actually work (you can check to see if the exports are already set before exporting them...)... there might be a better way of doing this but it has worked for me:
export TSLIB_TSDEVICE=/dev/input/touchscreen0ts_calibrateexport TSLIB_CALIBFILE=/etc/pointercalexport TSLIB_CONFFILE=/etc/ts.confexport QT_QPA_EGLFS_HIDECURSOR=1export QT_QPA_EGLFS_WIDTH=1024 && export QT_QPA_EGLFS_HEIGHT=768



Good luck - hope that helped a bit!

Morgan McKenzie


> From: dweston at inter-coastal.net
> To: meta-freescale at yoctoproject.org
> Date: Fri, 27 Dec 2013 12:28:33 -0700
> Subject: [meta-freescale] Qt5 With Yocto Missing Libraries
> 
> Hello All,
> 
> Thanks for all of your efforts - this is a great community.  I have been
> reading of successes building iMX6 Qt5 systems using Yocto, but have been
> unsuccessful myself.  I could use some pointers based on the details below.
> Thanks in advance.
> 
> I am attempting to build an image for a imx6qsabrelite platform using Yocto
> with the following features/attributes:
> 
> 1.  Dora
> 2.  No X11/Wayland - use only eglfs
> 3.  Qt5 - 5.1.1
> 4.  OpenGL ES 2
> 5.  GPU Acceleration
> 
> I'm using instructions from the Wandboard guides with the modifications
> listed below:
> 
> http://wiki.wandboard.org/index.php/Getting_started_with_Yocto_on_Wandboard
> http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard
> 
> 1.  -b dora switch is used on repo & get commands for both fsl-community-bsp
> & meta-qt5 git clone
> 2.  MACHINE=imx6qsabrelite (also tried with MACHINE=wandboard-quad -- same
> result)
> 3.  No patches applied
> 
> Bitbake completes successfully and produces a bootable system, however,
> Qt5_CinematicExperience does not run due to missing libraries.  When the
> libraries are manually installed (copied from the sysroots folder and
> missing links created) to /usr/lib, the program indicates that the platform
> type is not available/supported (don't remember the exact message).  The
> command is : Qt5_CinematicExperience -platform eglfs .
> 
> 
> I have some questions:
> 1.  Is the configuration above supported (i.e. QSabreLite/Qt5/GPU/OpenGL
> ES/EGLFS)?
> 2.  Are any patches needed?
> 3.  Why aren't the libraries setup properly (i.e. missing links, missing
> files)? 
> 4.  Is Qt5 being configured properly (i.e. libraries, platforms, etc?).
> 5.  What am I doing wrong/what's missing?
> 
> Additional details are listed below.
> 
> Thanks again,
> David
> 
> 
> 
> ============================================================================
> ====
> Broken Symbolic Links (actual .so file is missing) in /usr/lib
> ============================================================================
> ====
> libicuuc.so.51
> libEGL.so
> libgthread-2.0.so.0
> libasound.so.2
> libsndfile.so.1
> libcurl.so.5
> libgobject-2.0.so.0
> libexpat.so.1
> libdbus-1.so.3
> libmpc.so.3
> libEGL.so.1
> libgio-2.0.so.0
> libpanelw.so.5
> libgmp.so.10
> libgcrypt.so.11
> libQt5QuickParticles.so.5.1
> libstdc++.so.6
> libstdc++.so
> libQt5QuickParticles.so.5
> libQt5OpenGL.so.5
> libpng16.so.16
> libQt5Test.so.5
> libsamplerate.so.0
> ============================================================================
> ====
> 
> ============================================================================
> ====
> build/conf/local.conf file
> ============================================================================
> ====
> MACHINE ??= 'imx6qsabrelite'
> DISTRO ?= 'poky'
> PACKAGE_CLASSES ?= "package_rpm"
> # QT5 ADDITION
> #EXTRA_IMAGE_FEATURES = "debug-tweaks"
> EXTRA_IMAGE_FEATURES = " debug-tweaks ssh-server-openssh "
> 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 git qtbase qtbase-fonts qtbase-plugins qtbase-examples
> cinematicexperience gstreamer cairo pango fontconfig freetype pulseaudio
> dbus "
> DISTRO_FEATURES_remove = "x11 wayland"
> # END QT5 ADDITION
> 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"
> CONF_VERSION = "1"
> 
> BB_NUMBER_THREADS = '2'
> PARALLEL_MAKE = '-j 2'
> 
> DL_DIR ?= "${BSPDIR}/../downloads/"
> ACCEPT_FSL_EULA = "1"
> ============================================================================
> ====
> 
> ============================================================================
> ====
> build/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-fsl-arm \
>   ${BSPDIR}/sources/meta-fsl-arm-extra \
>   ${BSPDIR}/sources/meta-fsl-demos \
>   ${BSPDIR}/sources/meta-qt5 \
> "
> ============================================================================
> ====
> 
> 
> 
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20131227/01af81af/attachment-0001.html>


More information about the meta-freescale mailing list