can we change the compiler in qmake
-
@asha said in can we change the compiler in qmake:
the compiler arm-linux-generic-elf64bit cannot produce code for the qt version "Qt 5.13.0 GCC 64bit"(x86-linux-generic-elf-64bit).
Then you need a Qt version that fits your compiler (architecture and bitness) and you need to assign this to your compiler in the Kit.
-
any idea which version qt i have to install about this gcc cross compiler as i attached below please go through that one
If have any idea then please let me know...
OR
please give the information ,which supports any qt version and cross compiler both..
thankyou
-
@asha said in can we change the compiler in qmake:
the compiler arm-linux-generic-elf64bit cannot produce code for the qt version "Qt 5.13.0 GCC 64bit"(x86-linux-generic-elf-64bit)..
Of course it can't. I already told you that you need a cross compiled Qt version. ARM != x86-64. That means you need download Qt source code and build it using your cross compiler and sysroot for your device.
"Second:yes giving the proper path for cross compiler,you can see here" - no, I can't because you did not show your Kit. Did you select this compiler in your Kit?
"any idea which version qt i have to install" - cross compile Qt by yourself.
Here https://wiki.qt.io/index.php?title=Raspberrypi_beginners_guide&redirect=no is an explanation how to do it for RaspberryPi, but it is similar for other devices. -
Hi,
From the looks of it, you're not telling configure that you want to cross-compile.
-
@asha Did you read what @SGaist wrote?
You are NOT cross compiling!
You need to tell configure that you want to cross compile.
An example how to do this is here: https://www.raspberrypi.org/forums/viewtopic.php?t=204778 -
@asha said in can we change the compiler in qmake:
the above screenshot is for cross compiler only that is "arm-linux-gnueabihf"
Assuming that "beagle@beagle1" read from command prompt in that screenshot, it looks like you're working on your EMBEDDED DEVICE.
If so, then you are NOT cross-compiling, which whole purpose is by no means compiling in the target device.
You are supposed to only use the BBB device just to copy the cross-compiled Qt libraries and application (which are built in the host machine) and only run it there
-
Did you check that you have libz in your sysroot ?
-
@pablo-j-rogina Sir,
"beagle@beagle1" is my user name, where my target device name is debian@beaglebone.I am not successed with make run only,so I am not understood this lines
"You are supposed to only use the BBB device just to copy the cross-compiled Qt libraries and application (which are built in the host machine) and only run it there"
while make running getting error some library files are missing ,Like
"error while loading shared libraries: libz.so.1: /home/beagle1/installQt/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../libexec/gcc/arm-linux-gnueabihf4.8.2/cc1plus: error while loading shared libraries: libz.so.1: cannot open shared object file:
No such file or directory".... -
No, the issue is that you don't seem to have zlib available for cross-compilation.