[Interest] Qt5 Cross Compiling for ARM

Thiago Macieira thiago at kde.org
Thu Feb 16 16:54:20 CET 2012


On quinta-feira, 16 de fevereiro de 2012 16.02.46, 
Dietrich.Gossen at continental-corporation.com wrote:
> /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
> nueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -o opengles2 opengles2.o   
> -L/home/lucid/ltib/rootfs/usr/lib -lglib-2.0 -lgthread-2.0 -lgstreamer-0.10
> -lxml2 -lz -lgmodule-2.0 -lgobject-2.0 -lts -lasound -lfreetype -lexpat
> -ljpeg -lfontconfig -lSM -lICE -lpng -L/home/lucid/ltib/rootfs/usr/lib
> -lGLESv2
> /home/lucid/ltib/rootfs/usr/lib/libGLESv2.so: undefined reference to
> `gco3D_Semaphore'
> /home/lucid/ltib/rootfs/usr/lib/libGLESv2.so: undefined reference to
> `gcoHAL_QueryTextureCaps'
> /home/lucid/ltib/rootfs/usr/lib/libGLESv2.so: undefined reference to
> `gcoHAL_Commit'
> ...
> ...(more undefined references to gco*)..

This is just a bad OpenGL ES library from your chip vendor. The library isn't 
self-sufficient. If you try to run the following command, for example:

	ldd -d -r $GLLIBPATH/libGLESv2.so

It should not report any undefined references. You'll see that your library has 
a lot of them. Please report them to your board vendor so they can fix them in 
a future release. You can tell them "please link your libraries with 
-Wl,--noundefined".

In the meantime, add the necessary libraries that need to be linked against to 
the QMAKE_LIBS_OPENGL_ES2 variable.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120216/db6852e4/attachment.sig>


More information about the Interest mailing list