Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QT 5 ARM Cross Compile - Red and Blue Switched
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.
Hi and welcome to devnet,
Do you also experience this with non-Qt applications ?
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.
What distribution are you running on the BBB ?
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.
ankurtyagi last edited by
Is splash screen fine ? Do you see any colour inversion ?
Is your display 24bit or 16bit ?
Your distro is fine, its from fido branch.