[Interest] Build for Android with Qt 5.4 on Windows

Igor Mironchik igor.mironchik at gmail.com
Sat Jan 24 12:19:56 CET 2015


On Sat, 24 Jan 2015 09:11:10 +0300, Igor Mironchik  
<igor.mironchik at gmail.com> wrote:

> Hi.
>
> I'm building a project on Windows for Android with Qt 5.4. Compilation  
> is successful. But next build step fails with next error:
>
> "c:/Program Files (x86)/Git/bin/sh.exe": line 1:  
> C:ThirdpartyAndroidNDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib:  
> No such file or directory
> Makefile:24494: recipe for target 'install_target' failed
> mingw32-make[1]: *** [install_target] Error 127

I fixed this. Just removed git from PATH.

But now I receive the following deployment error:

Starting: "C:\Thirdparty\Qt\5.4\android_armv7\bin\androiddeployqt.exe"  
--input  
D:/work/Test/trunk/build-Mobile-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Release/Test/android-libTest.so-deployment-settings.json  
--output  
D:/work/Test/trunk/build-Mobile-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Release/android-build  
--deployment bundled --android-platform android--1 --jdk "C:/Program  
Files/Java/jdk1.8.0_05" --ant C:/Thirdparty/Ant/bin/ant.bat
Error: Target id 'android--1' is not valid. Use 'android.bat list targets'  
to get the target ids.

Where "--android-platform android--1" comes from?

>
> As seen from command line, directory separators are lost:  
> C:ThirdpartyAndroidNDK/ It should be C:/Thirdparty/Android/NDK/
>
> And I don't know how to fix it. I have some questions. First of all, why  
> QtCreator uses "c:/Program Files (x86)/Git/bin/sh.exe" for building? Is  
> sh.exe necessary? If so, how can I switch Windows directory separators  
> into Linux one in Makefiles?
>
> In Makefile I have:
>
> RANLIB        =  
> C:\Thirdparty\Android\NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib
>
> Thank you.
>


-- 
Best Regards,
Igor Mironchik.



More information about the Interest mailing list