You are not logged in.
I want to develope a QT based application for android using a 64bit archlinux. I also want to test it on 64bit archlinux. The problem is, that i have to use a library which i have for android and for 32bit linux only. So i need a 32bit QT for 64bit archlinux to build and test the application on my pc.
I have installed QT for android from aur, but i can't find it for 32bit on 64bit archlinux.
(Because i want to develope an android application i need a QT version >=5.1)
I tried to compile Qt from source with this configuration
./configure -platform linux-g++-64 -xplatform linux-g++-32But it doesn't work. I also tried to export this before compiling:
CFLAGS = -m32
CXXFLAGS = -m32
LFLAGS = -m32
But it doesn't helped. Qtcreator says, that i have a 32bit compiler(gcc) so that should not be the problem.
I tried a chroot as well like this https://wiki.archlinux.org/index.php/In … _in_Arch64 , but when i try to install qt i get the error that it is for the wrong Architekture. I can't install some packages. Some other are working.
I just started learning c++ and QT(but i have experience with c and i'm a java developer). So is there a way to get this working? Or do i have to install a 32bit archlinux for this?
Thanks for reply
Last edited by Algor88 (2013-04-20 13:22:27)
Offline
Why don't you install lib32-qt4 from [multilib] and modify your code to "see" that qt?
Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, x86_64. AURs.
“No one without the knowledge of geometry may enter.“ Plato.
Offline
Because it's qt4. I need at least qt5, so it is compatible with the qt5 for android.Or aren't there big differences?
Offline
I had a problem compiling my qt programs until I found this http://www.spinics.net/lists/gcchelp/msg36767.html which basically tells you to install gcc-multilib. If you don't have gcc-multilib installed it probably just ignores the -m32 flag.
Offline