QT cross compile issue on ubuntu 14.04



  • Hi,
    I am trying to cross compile QT5.6 on Ubuntu14.04(for cubieboard4).I have copied related files & library from cubieboard 4 to my usr directory & tried to compile the QT using below command,

    ./configure -xplatform linux-arm-gnueabi-g++ -opengl -verbose

    But it gives me error,

    OpenGL ES 2.0 disabled.
    All the OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
    /home/pramodj/QT-Opensource/qt-everywhere-opensource-src-5.6.0-rc/qtbase/mkspecs/linux-arm-gnueabi-g++.

    I have also changed the path in qmake.conf file.Below is the content of qmake.conf file

    qmake configuration for building with arm-linux-gnueabi-g++

    MAKEFILE_GENERATOR = UNIX
    CONFIG += incremental
    QMAKE_INCREMENTAL_STYLE = sublib

    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)

    #include openGL libraries

    QMAKE_INCDIR_OPENGL = /usr/arm-linux-gnueabihf/include/GL
    QMAKE_LIBDIR_OPENGL = /usr/arm-linux-gnueabihf/
    QMAKE_LIBS_OPENGL = -lglut -lGLU -lGL
    QMAKE_LIBDIR_X11 = /usr/arm-linux-gnueabihf/

    modifications to g++.conf

    QMAKE_CC = arm-linux-gnueabi-gcc
    QMAKE_CXX = arm-linux-gnueabi-g++
    QMAKE_LINK = arm-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = arm-linux-gnueabi-g++

    modifications to linux.conf

    QMAKE_AR = arm-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = arm-linux-gnueabi-objcopy
    QMAKE_NM = arm-linux-gnueabi-nm -P
    QMAKE_STRIP = arm-linux-gnueabi-strip

    load(qt_config)

    I am new to QT. Any help will be appreciated


  • Lifetime Qt Champion

    Hi,

    Where did you put the files you copied from the CubieBoard root filesystem ? Why not use the rootfs option of configure ?



  • Thanks for your reply. I have put the files in usr directory. My path is /usr/arm-linux-gnueabihf .


  • Lifetime Qt Champion

    You copied all the sysroot in /usr/arm-linux-gnueabihf



  • Please provide a link or document to cross compile QT.I have tried to copy sysroot in /usr/arm-linux-gnueabihf but no effect.


  • Lifetime Qt Champion

    A quick search with cubieboard and Qt 5 turns this

    Note that you should also contact the cubieboard community.


Log in to reply
 

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