[Interest] Qt 5.2.0 for Android on Windows

Igor Mironchik igor.mironchik at gmail.com
Mon Dec 16 09:04:55 CET 2013


I've found and solved the problem. It's because of missing "findstr"...

for /f "tokens=3 usebackq" %%V in (`findstr QT_VERSION_STR 
%QTSRC%\src\corelib\global\qglobal.h`) do @echo QTVERSION = %%~V>> Makefile

Does anybody know what "findstr" is?
> Hi.
>
>> Does anybody have experience with building Qt 5.2.0 for Android on 
>> Windows?
>
> I've found this article: 
> http://qt.apidoc.info/5.2.0-beta1/qtdoc/android-support.html
>
> But when I try to build Qt with:
>
> configure.bat -developer-build -platform win32-g++ -xplatform 
> android-g++ -android-ndk c:\Thirdparty\Android\NDK -android-sdk 
> c:\Thirdparty\Android\SDK -opensource -confirm-license -nomake tests 
> -nomake examples -skip qttranslations -skip qtwebkit -skip 
> qtserialport -skip qtwebkit-examples
>
> I receive the next error:
>
> g++ -include configure_pch.h -fno-rtti -fno-exceptions -mthreads -Wall 
> -Wextra -
> DUNICODE -DQT_NO_DATASTREAM -DQT_NO_CODECS -DQT_NO_TEXTCODEC 
> -DQT_NO_UNICODETABL
> ES -DQT_LITE_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT 
> -DQT_NO_G
> EOM_VARIANT -D_CRT_SECURE_NO_DEPRECATE -DQT_BOOTSTRAPPED 
> -DQT_BUILD_CONFIGURE -D
> COMMERCIAL_VERSION -I"../../include" -I"../../include/QtCore" 
> -I"../../include/Q
> tCore/" -I"../../include/QtCore//QtCore" 
> -I"c:/Thirdparty/Android/Qt/5.2.0/qtbas
> e/tools/shared" 
> -I"c:/Thirdparty/Android/Qt/5.2.0/qtbase/mkspecs/win32-g++"   -c
>  -o qarraydata.o 
> c:/Thirdparty/Android/Qt/5.2.0/qtbase/src/corelib/tools/qarrayd
> ata.cpp
> cc1plus.exe: warning: ../../include/QtCore/QtCore: not a directory 
> [enabled by d
> efault]
> c:/Thirdparty/Android/Qt/5.2.0/qtbase/src/corelib/tools/qarraydata.cpp:43:37: 
> fa
> tal error: QtCore/private/qtools_p.h: No such file or directory
>  #include <QtCore/private/qtools_p.h>
>                                      ^
> compilation terminated.
> <builtin>: recipe for target 'qarraydata.o' failed
> mingw32-make: *** [qarraydata.o] Error 1
>

-- 
Best Regards,
Igor Mironchik.




More information about the Interest mailing list