Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Building Qt5 Declarative on nitrogen6x with buildroot 2013.08
@ 2013-09-15 19:51 Espen Frimann Koren
  2013-09-16 12:39 ` Espen Frimann Koren
  0 siblings, 1 reply; 3+ messages in thread
From: Espen Frimann Koren @ 2013-09-15 19:51 UTC (permalink / raw)
  To: buildroot

Hi.

I have been trying to get the mentioned configuration to compile. It is not
straight forward :-)

First of all I compiled the nitrogen6x_defconfig without any problems. But
I need Qt5 Declarative so I tried to figure out how to configure it. From
the default config I had to do this:

1. Add C++ and WCHAR support in the tool chain. This made Qt5 available.
2. Qt5 Declarative was not available though needing an Open GL capable
backend, according to the menuconfig tool.
3. The Open GL-backend I found was in Target packages/Hardware
handling/Freescale i.MX libraries/gpu-viv-bin-mx6q. It needs eglibc, so I
had to change to that from uclibc.

But this configuration does not compile. I connot figure out what I am
missing. The first problem is that when Qt5 are running a lot of tests to
figure out what the target supports, it fails when trying to link the
libGLESv2.so in output/build/qt5base-5.0.2/config.tests/unix/openglesv2.
The libraries it needs is in the toolchain (in
output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib): libGAL.so and
libEGL.so exists, so I got the compilation a little bit further by adding
the following lines into
output/build/qt5base-5.0.2/mkspecs/devices/linux-buildroot-g++/qmake.conf:

QMAKE_LIBS_OPENGL_ES2 += -lGAL
QMAKE_LIBS_OPENGL_ES2 += -lEGL

The problem now is compiling EGL (still in Qt5 config.tests/qpa/egl):

EGL auto-detection... ()
gmake[1]: Entering directory
`/home/espenfk/imx6/buildroot-2013.08/output/build/qt5base-5.0.2/config.tests/qpa/egl'
/home/espenfk/imx6/buildroot-2013.08/output/host/usr/bin/arm-buildroot-linux-gnueabi-g++
-c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-pipe -Os
--sysroot=/home/espenfk/imx6/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot
-O2 -O3 -Wall -W -fPIE  -I../../../mkspecs/devices/linux-buildroot-g++ -I.
-I/home/espenfk/imx6/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include
-o egl.o egl.cpp
In file included from
/home/espenfk/imx6/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/EGL/eglplatform.h:38:0,
                 from
/home/espenfk/imx6/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/EGL/egl.h:34,
                 from egl.cpp:42:
/home/espenfk/imx6/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/EGL/eglvivante.h:224:22:
fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
gmake[1]: *** [egl.o] Error 1
gmake[1]: Leaving directory
`/home/espenfk/imx6/buildroot-2013.08/output/build/qt5base-5.0.2/config.tests/qpa/egl'
EGL disabled.
 The EGL functionality test failed; EGL is required by some QPA plugins to
manage contexts & surfaces.
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in
/home/espenfk/imx6/buildroot-2013.08/output/build/qt5base-5.0.2/mkspecs/devices/linux-buildroot-g++.
make: ***
[/home/espenfk/imx6/buildroot-2013.08/output/build/qt5base-5.0.2/.stamp_configured]
Error 1

The reason that it fails in eglvivante.h is that a symbol should have been
defined: EGL_API_FB (or EGL_API_DFB, but I think I cannot use DirectFB). At
this point I think it is a bit too much to hack the stuff in. I haven't
studied the inner makings of buildroot so much that I can figure out how to
define that symbol. So therefore I think that someone who knows this better
than me may either fix it in the next buildroot version or direct me to a
solution.

Sp1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130915/c652c53f/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-16 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 19:51 [Buildroot] Building Qt5 Declarative on nitrogen6x with buildroot 2013.08 Espen Frimann Koren
2013-09-16 12:39 ` Espen Frimann Koren
2013-09-16 13:08   ` Fatih Aşıcı

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox