[Interest] Build for Android with Qt 5.4 on Windows

Igor Mironchik igor.mironchik at gmail.com
Sat Jan 24 07:11:10 CET 2015


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

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