I'm trying to build an app using Android NDK. The compile went successfully but in the linking step it fails with error as below:
1> /usr/bin/ld: this linker was not configured to use sysroots
clang50++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using
--sysroot=<MyNDKPath>/sysroot
And
-isystem <MyNDKPath>/sysroot/usr/include/arm-linux-androideabi
when compiling
Can anyone help me on resolving this ?
For me it was a missing path to ld. I added it to the PATH environment variable inside Eclipse and it worked:
${ANDROID_NDK}\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin
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.