Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Can't get QT5 to build for Android on my Windows 7 machine

$
0
0
My computer is i5 64 bit processor, running a 32 bit Windows 7. I use cygwin as terminal, however I have also used windows terminal with same result. I use strawberry perl 5.8 as mentioned in the link i share. My android is latest, so android api is “android-23”. I followed the instructions given in this page: http://qt-project.org/wiki/building_qt-android_on_windows , and the page linked from it. So I got the qt5 source by the following way: git clone git://gitorious.org/qt/qt5.git qt5 cd qt5 perl init-repository Then I run configure as mentioned there, by giving it the path to Android ndk etc. configure runs ok. It creates the makefile, which gives the first error as: > Can’t open perl script “‘C:\android\cleanqt5\qtbase\bin\syncqt.pl’”: Invalid argument So apparently, some internal script was calling perl by surrounding the filename with quotes. I had to edit the file mkspecs/features/qt_module_headers.prf and replace ‘ with nothing in the path that is passed to the perl. After this change, it goes fine. After that, I get into a lot of errors of form where there are #include directives of the following form #include <QMutex> there is no .h mentioned there. So I now have to edit the source files, and add a .h to every file that is complaining about it. 42 files later, I got to build qtbase/src/corelib after that, I am now stuck in qtbase/src/network There are a log of files here which mention directories “private” and “QtNetwork”, but these directories are not present in the source tree at all. For example, this file : https://qt.gitorious.org/qt/qt/source/dde0c2f4f6d72bcc9db732eb51399395ffc37778:src/network/socket/qabstractsocketengine_p.h#L86 mentions #include “QtNetwork/qhostaddress.h” but I can’t find QtNetwork folder anywhere. qhostaddress.h would be found somewhere else, so now I have to edit this file, and dozens others. What am I doing wrong, or is this the way to build QT5 so that I can make android apps on my win32 computer?

Viewing all articles
Browse latest Browse all 2113

Trending Articles