09-11-2017 01:41 AM
I'm trying to build QT on 64-bit ubuntu, so that I can cross-compile QT application for the ZCU102 with QT creator. I've followed the wiki and this answer record. Everything seems to work fine with only a couple of small changes for later versions. QT is built without any issues.
However, when I try to configure the kit in QT creator, I get an error that the compiler can not produce code for the QT version. The compiler I'm using is /SDK/2017.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc with the ABI set to arm-linux-generic-elf-64bit (which I think is correct, it was set by me). The QT version is the one I built (added from /ZYNQ_QT_INSTALL/bin/qmake) with the ABI auto-set to arm-linux-generic-elf-32bit.
The error seems to be correct, the compiler is 64 bit and the QT version 32 bit. It seems to me the best solution is to build QT for 64 bit, as the board is 64 as well. I don't see why it didn't build a 64 bit version though, I didn't set it anywhere and a 64-bit compiler should do this by default, right?
Does anyone know how to set the bitwidth for this build? Or is there a better procedure for cross-compiling QT applications?
12-06-2017 02:25 AM
I did more or less what was in the guides I linked (it was a while a go). The settings I'm currently using work (not necessarily perfectly), they're in attached images. Most of the paths are auto-detected or defaults. The compiler was a little awkward as I recal.
11-02-2018 12:33 AM