[Interest] Is it possible to crosscompile qmake?
S.D.T. Servicios de Alto Rendimiento
pauldromeasaurio at hotmail.com
Sat Jul 21 18:40:39 CEST 2018
Well I am in search for someone with knowledge in the area:
Is to compile qmake and everything in qt base module from my host machine for being executed in the raspberry pi and not ever in the host.
I want to develop with the IDE inside the raspberry Pi in qt 5.11.0 (which discards linux repositories) and compiling inside the pi this module may take up to 40 hours
I have changed values from linux-arm-gnueabi-g++ mkspecs to use my linux-arm-gnueabihf-g++ and other crosscompiler tools for raspberry pi and used the following configure options for platforms:
-platform linux-arm-gnueabi-g++ -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/paul/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/paul/raspi/sysroot and so on.
And the following dirs for installing and looking for libraries at runtime:
-prefix /usr/local/qt5pi/ -extprefix /home/paul/Qt/5.11.0/Arm -hostprefix /home/paul/Qt/5.11.0/Arm/
I was able to create a qmake version that didn't worked in my A host machine and that worked in my raspberry pi, but as soon as it was created I got the message:
./configure: 860: ./configure: /home/paul/Qt/5.11.0/Src/qtbase/bin/qmake: Exec format error after entering creating qmake which by all means I didn't have moc and other /bin binaries .
My first impression was that getting any further was not possibly but then I read:
"-external-hostbindir <path> ... Path to Qt tools built for this machine.
Use this when -platform does not match the current
system, i.e., to make a Canadian Cross Build.
So I wanted to know if this kind of cross compiling is possible in any way as my platform does not match my current system and if so what the necessary options in the configure files are for this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest