Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Manually added qmake weird version
So i'm working on a embedded project for Raspberry Pi with eglfs.
When i'm adding everything needed in Qt Creator for cross-compilation the Qt-version i added somehow says it's Qt-version is 5.8.1 so i get an error that says "No compiler can produce code for this Qt version."
I have been following the guide at https://wiki.qt.io/RaspberryPi2EGLFS .
Only difference, just to try, is that i changed the version from 5.6 to 5.8 when getting QtBase.
I can't see how i've even got the 5.8.1 since, to my knowledge, that version isn't even released, but i might be wrong.
How can i get either the 5.8.0 through "git clone git://code.qt.io/qt/qtbase.git -b 5.8" command or 5.8.1 for linux desktop so i can compile for it.
Hope i gave enough info.
Thanks in advance!
Hi and welcome to devnet,
Since 5.8.0 is officially out, when you build the 5.8 branch you'll be building what might become 5.8.1.
Did you also add the cross-compiler to Qt Creator known compilers ?
Yes, as per the tutorial. Though i'm new to Qt and the tutorial is a bit outdated so i'm not sure if i missed anything.
Your RPi gcc looks misconfigured on the ABI part.
I have fiddled around with the ABI with no success. I'm not sure what it should be set to.
Just to try, i have now installed the exact version that the tutorial wants you to.
the thing is that version says 5.6.3, even though to my knowledge it should be 5.6.2.
So i got the same error there.
It should rather be something like
arm linux gnu eabihfor similar.
That does not seem possible.
For the 4th option the options available is: elf, mach_o, pe, qml_rt and unknown.
I have another problem as well, it doesn't find the qt quick module. I have read that i need to install qtxmlpatterns and qtdeclarative and i have, i think, but it wont work, does not seem to link the libraries. I just tried it because i want to develop with qt quick control 2. And i an able to compile via the terminal when it comes to widgets but not qt quick.
@Fifkie elf should be fine.
Are you sure 64bit is going to work?
The Raspberry Pi 3, that im building for, is 64bit, but i have tried to change it to 32bit with no change to the error in the qt version tab.
@Fifkie As far as I know its CPU supports 64bit, but the system is still 32bit, right?
@jsulm You are right that it should be 32bit, but I still get the "no compiler can produce code for this Qt version"-error.
@Fifkie Is it the exact same compiler which you used to build Qt?
Did you select the correct Qt version in the Kit?
@jsulm i found that the compiler the tutorial said to use and the one qmake points at wasn't the same. when i changed it to the same as qmake the qt version error goes away, but i still can't compile.
I get " /home/christian/raspi/sysroot/usr/lib/arm-linux-gnueabihf/libicui18n.so.52:-1: error: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8' "
@jsulm Thanks! i'll continue there!