Cross compile for ARM imx6 Qt 5.2.1



  • I've been desperately searching and reading everything I can for almost a week now, and have gone from total noob to slightly less noob in this regard. Before this I had never had to run a ./configure and deal with the madness of missing dependencies and mismatched libraries and low-flying sugar gliders...
    My co-worker posted "this thread ":http://qt-project.org/forums/viewthread/40988/ when he was trying to get the bloody thing working from Windows. We've tried really hard!

    Host Environment: Ubuntu 13 x64
    Target: unknown at this time, can I run some command on it to find out it's distro or hardware or something? Should I be able to tell which IMX6 is on it?

    I started posting here: "Qt article":http://qt-project.org/forums/viewthread/34739/P30/
    but realized it was a bit wrong to use a thread that wasn't quite fitting with my issue (apologies for takeover, but initially I felt it was very related)

    I really am getting really sad at my inability to get this working, and appreciate any help you can offer.

    I am trying to build this for a "STMicroelectrionics ":http://www.st.com/web/en/home.html board that was custom built by some manufacturer that doesn't seem to really want to support me in this endeavor.

    I downloaded the files that the kind Soilworker linked and managed to get sysroot populated with the correct data (I think), but still had errors. I followed the example "that I found here":http://qt-project.org/forums/viewthread/25117
    and integrated the files from github into the project.

    That brings us to current error:
    @OpenGL ES 2.x auto-detection... ()
    arm-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I/opt/gitQt/qt5/qtbase/mkspecs/linux-arm-gnueabi-g++ -I/opt/gitQt/qt5/qtbase/config.tests/unix/opengles2 -I/opt/rootfs/usr/include -I. -o opengles2.o /opt/gitQt/qt5/qtbase/config.tests/unix/opengles2/opengles2.cpp
    In file included from /opt/rootfs/usr/include/features.h:323:0,
    from /opt/rootfs/usr/include/stdint.h:26,
    from /opt/rootfs/usr/include/KHR/khrplatform.h:154,
    from /opt/rootfs/usr/include/GLES2/gl2platform.h:20,
    from /opt/rootfs/usr/include/GLES2/gl2.h:6,
    from /opt/gitQt/qt5/qtbase/config.tests/unix/opengles2/opengles2.cpp:45:
    /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/include/bits/predefs.h:23:3: error: #error "Never use <bits/predefs.h> directly; include <stdc-predef.h> instead."
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.x disabled.
    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++.
    @

    config that generated this:
    @/opt/gitQt/qt5/qtbase/configure -opensource -confirm-license -make libs -no-pch -opengl es2 -prefix /opt/Qt5.2.1 -device-option CROSS_COMPILE=/opt/Linaro/bin/arm-linux-gnueabihf- -device linux-imx6-g++ -sysroot /opt/rootfs -no-gcc-sysroot -developer-build -xplatform linux-arm-gnueabi-g++ -verbose@



  • Hi

    I am from singapore.
    I am setting up qt cross compiler from qt creator for ARM imx6(target) running on BSP linario. My host is ubuntu 11.04

    I have setup bitbake and openembedded. what is name of your cross-compiler?
    There is a qt enterprise embedded that u can download. heard it safe alot of time

    https://qt-project.org/wiki/Building_Qt_for_Embedded_Linuxhttp://qt-project.org/doc/qt-4.8/qt-embedded-crosscompiling.html


Log in to reply
 

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