Aleksei Petrenko
Aleksei Petrenko

Reputation: 7188

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)

Upvotes: 1

Views: 557

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57183

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

Upvotes: 3

Related Questions