Qt5 Alpha - Cross Compiling for i.MX Board



  • Hi,

    I am running into problems during the compiliation.
    Following errors occured:
    /home/lucid/ltib/rootfs/usr/lib/libGLESv2.so: undefined reference to gco3D_Semaphore' /home/lucid/ltib/rootfs/usr/lib/libEGL.so: undefined reference togcoOS_Delay'
    /home/lucid/ltib/rootfs/usr/lib/libGLESv2.so: undefined reference to gcoHAL_QueryTextureCaps' /home/lucid/ltib/rootfs/usr/lib/libEGL.so: undefined reference togcoHAL_Commit'
    .. (other undefined references to gco*)

    That's my configure:
    ./configure -opensource -confirm-license -nomake tests -prefix /home/lucid/qtInstalled -opengl -xplatform linux-arm-gnueabi-g++ -xcb -v

    This is the includes/libs part of my qmake.conf:

    QMAKE_INCDIR = /home/lucid/ltib/rootfs/usr/include
    QMAKE_LIBDIR = /home/lucid/ltib/rootfs/usr/lib

    QMAKE_INCDIR = /home/lucid/ltib/rootfs/usr/include
    /home/lucid/ltib/rootfs/usr/include/glib-2.0
    /home/lucid/ltib/rootfs/usr/lib/glib-2.0/include/
    /home/lucid/ltib/rootfs/usr/include/gstreamer-0.10/ \
    /home/lucid/ltib/rootfs/usr/include/libxml2/
    /home/lucid/ltib/rootfs/usr/include/freetype2

    QMAKE_LIBS = -lglib-2.0 -lgthread-2.0 -lxml2 -lz -lgmodule-2.0 -lgobject-2.0 -lts -lasound -lfreetype -lexpat -ljpeg -lfontconfig -lSM -lICE -lpng -lEGL -lGLESv2 -lgstreamer-0.10
    QMAKE_INCDIR_OPENGL_ES2 = /home/lucid/ltib/rootfs/usr/include/GLES2
    QMAKE_LIBDIR_OPENGL_ES2 = /home/lucid/ltib/rootfs/usr/lib
    QMAKE_INCDIR_EGL = /home/lucid/ltib/rootfs/usr/include/EGL
    QMAKE_LIBDIR_EGL = /home/lucid/ltib/rootfs/usr/lib

    QMAKE_LIBS_OPENGL_ES2 = -lGLESv2
    QMAKE_LIBS_EGL = -lEGL
    QMAKE_LIBS_THREAD = -lpthread

    Best regards



  • I think you need to link another lib in QMAKE_LIBS variable which has gco* functions included.
    Sorry I don't know about that lib, Maybe it come with libEGL.so ....



  • I had the same thought, too, but the question is which exact library is missing.
    Any ideas?



  • qtd1d1,

    I am having the same error compiling Qt4.8.2 for the imx6. Did you ever find a solution to this problem?



  • It is libGAL-x11.so. But after this I got problem with libX11 now...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.