简体   繁体   中英

Qt Creator fails to build Android library due to back slashes in NDK path

I am trying to build by C++ library for Android on Windows 8.1 using NDK android-ndk-r10e. The library builds totally fine on Linux, but I can't get it working on Windows.

I am always getting this error:

/usr/bin/sh: C:android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++: No such file or directory

As you can see, Qt Creator displays path to g++ as C:android-ndk-r10e while it is actually C:\\android-ndk-r10e . I tried to manually edit Makefile, but it seems to re-create it every time, so my changes got discarded.

I this a known issue? How can I work around it?

(Qt version 5.4.2, Qt Creator 3.6.0)

Beware of other MinGW installations; Qt Creator installs its own MinGW, and you should use this one for Qt .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM