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 5 ARM Cross Compile - Red and Blue Switched
QtWS25 Last Chance

QT 5 ARM Cross Compile - Red and Blue Switched

Scheduled Pinned Locked Moved Mobile and Embedded
armcross compilelinux
6 Posts 3 Posters 2.9k Views
  • 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.
  • elmdbE Offline
    elmdbE Offline
    elmdb
    wrote on last edited by
    #1

    I am trying to cross compile QT 5 for an arm processor. More specifically, my desktop I am compiling on is Ubuntu 14.04.4, and I am trying to cross compile Qt 5 for a BeagleBone Black. I am trying to compile it with hardware accelerated graphics.

    Everything seems to be working fine, the cross compile of QT works and shows that OpenGL ES2 is enabled, and I have been able to setup QT Creator in Ubuntu to cross compile applications for the BeagleBone Black. The applications run great on the BeagleBone Black, but the red and blue colors are switched.

    I have not been able to figure out what the problem is. Any suggestions on what might be causing this?

    Here is a quick overview of how I did the cross compile:

    Downloaded the SDK for the BeagleBone Black processor from TI, it comes with a rootfs and a cross compiler.

    Downloaded QT source.

    Created device and platform configs for hf configuration.

    Configured QT with the following command (pointing it to use the TI SDK cross compiler and rootfs)

    ./configure -release -opengl es2 -device linux-beaglebone-g++ -device-option CROSS_COMPILE=/home/tom/tibb/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- -sysroot /home/tom/tibb/linux-devkit/sysroots/cortexa8hf-vfp-neon-linux-gnueabi -prefix /usr/local/qt5 -v -opensource -confirm-license -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -xplatform linux-arm-gnueabihf-g++ -nomake examples -nomake tests

    Again, everything works great, except the red and blue colors are switched.

    Thank You

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

      Hi and welcome to devnet,

      Do you also experience this with non-Qt applications ?

      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
      • elmdbE Offline
        elmdbE Offline
        elmdb
        wrote on last edited by
        #3

        No, I do not. I am using a image that came with the SDK from TI. It has some demo programs and they all look good. It is just the QT applications that I build that have this issue.

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

          What distribution are you running on the BBB ?

          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
          • elmdbE Offline
            elmdbE Offline
            elmdb
            wrote on last edited by
            #5

            I think the official name of the distribution is Arago. It is a BeagleBone Black image that comes for the SDK from TI for the chipset http://software-dl.ti.com/processor-sw/esd/PROCESSOR-SDK-LINUX-AM335X/latest/index_FDS.html

            I used it because it had OpenGL ES2 enabled on it. My goal is to be able to setup an environment where I can cross compile QT Quick applications to the BeagleBone Black, this is proving to be a more difficult task than I thought.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ankurtyagi
              wrote on last edited by
              #6

              Is splash screen fine ? Do you see any colour inversion ?
              Is your display 24bit or 16bit ?

              Your distro is fine, its from fido branch.

              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