Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT cross compile issue on ubuntu 14.04
Qt 6.11 is out! See what's new in the release blog

QT cross compile issue on ubuntu 14.04

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pramod jadhavP Offline
    pramod jadhavP Offline
    pramod jadhav
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • pramod jadhavP Offline
        pramod jadhavP Offline
        pramod jadhav
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • pramod jadhavP Offline
            pramod jadhavP Offline
            pramod jadhav
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              A quick search with cubieboard and Qt 5 turns this

              Note that you should also contact the cubieboard community.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved