Need help on Cross compiling Qt 5.1.1 on Imx6
- 
wrote on 5 Apr 2014, 00:59 last edited by
I changed my configure to
@/opt/gitQt/qt5/qtbase/configure/ -opensource -confirm-license -qt-xcb -make libs -no-pch -opengl es2 -prefix /opt/Qt5.2.1 -device-option CROSS_COMPILE=/opt/Linaro/bin/arm-linux-gnueabihf- -device imx6 -sysroot /opt/rootfs -no-gcc-sysroot -developer-build -no-gtkstyle -xplatform linux-arm-gnueabi-g++@
and that got rid of the target architecture error...
Now this remains:
@Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Note: PKG_CONFIG_SYSROOT_DIR automatically set to /opt/rootfs
The OpenGL ES 2.0 functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
/opt/gitQt/qt5/qtbase/mkspecs/linux-arm-gnueabi-g++.
@ - 
wrote on 5 Apr 2014, 04:39 last edited by
edit: stupid question...
 - 
wrote on 5 Apr 2014, 15:48 last edited by
Hi tunahammer,
before I started to compile Qt with the help of Yocto, I was trying it in the same you are currently doing and I ran into the same issue.
To make this error disappear, I had to specify inside the make-spec the path to the includes and the library of opengl inside my target sysroot.
After that I was able to get one step further.
Kind Regards
Soilman - 
wrote on 7 Apr 2014, 00:07 last edited by
It appears the manufacturer does not include the correct files for opengl in their sysroot for this device. Am I correct in thinking I need to download the source and compile a version of opengl es2 or is this generic enough that I could try to find someone else with a project with these for an imx6 and use theirs?
 - 
wrote on 7 Apr 2014, 08:05 last edited by
Hi tunahammer,
you can either use the sysroot which is provided by freescale (on the website under downloads for imx6 - ubuntu), or you could also use the yocto build system to automatically create a sysroot for you.
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&fpsp=1&tab=Design_Tools_Tab#
I tried it both ways and it was working fine.
And yes I think you could also use a sysroot from another project like the wandboard.org which uses the imx6 as well.
See here the important parameters for my build with yocto:
linux-imx6-g++:...
QMAKE_INCDIR_OPENGL_ES2 += /home/linuxdev/DevStuff/poky-dora-10.0.0/fsl-community-bsp-platform/build/tmp/sysroots/wandboard-dual/usr/include
QMAKE_LIBDIR_OPENGL_ES2 += /home/linuxdev/DevStuff/poky-dora-10.0.0/fsl-community-bsp-platform/build/tmp/sysroots/wandboard-dual/usr/lib...
IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard -DQT_NO_GLIB
 - 
wrote on 7 Apr 2014, 08:59 last edited by
I would have never ever found those files Oo
Here they are:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&fpsp=1&tab=Design_Tools_Tab#
Software Development Tools (15)
Set of applications for the Linux L3.0.35_4.1.0 BSP/Vivante_VDK-v1.4.6/Linux L3.0.35_4.1.0 GPU Driver with vprofiler/drivers
 - 
wrote on 8 Apr 2014, 01:25 last edited by
Soilworker,
I'm moving to a new thread since it's probably more fitting, please follow if you can sir!
 - 
wrote on 13 Aug 2014, 13:28 last edited by
how setup qt to cross-compile onto linaro imx6 freescale.
I setup bitbake and openembedded.
which cross compiler is recommend?
where to get recipe angstrom-qt-x11-imageI am newie. Please kindly assist.
 - 
wrote on 13 Aug 2014, 13:36 last edited by
Hi
I am running on sabrelite.
is it possible to setup qt creator to send in binary on the video files.
I believe it is tougher to cross compile qt onto the target, because i heard need Qt runtime environment installed - 
wrote on 28 Aug 2014, 08:48 last edited by
I downloaded ARM cross compiler, QtCreator and qmake for development and buildroot for deployment. I have problem in qmake configuration,
ARM compiler is tested working. Can guide me step by step.bq.