简体   繁体   中英

Building an android-ndk-r17c standalone toolchain with Cygwin

I would like to import the library libsndfile . According to it's doc I need a standalone toolchain for this. Now I'm trying to build said toolchain with Cygwin as described in the official guide but get the error message:

Unsupported platform: CYGWIN_NT-10.0.

I am new to android development and must admit that I struggle with the official guide quite a bit. From what I understand the --arch argument refers to the system I'm building for and the --api argument to the (minimum?) Android version it is running. Which toolkit exactly it is should be irrelevant at this point as long as they are compatible. So for now let's go with --arch x86_64 and --api 21 . Overall the in- and output look as follows:

$ ./build/tools/make_standalone_toolchain.py --arch x86_64 --api 21 -v --install-dir ../toolchains/oboe_record_proto/
Unsupported platform: CYGWIN_NT-10.0

This may not be a satisfying answer but here what worked for me in the end:

According to the comment by matzeri, Cygwin is not supported (anymore). My attempts to solve it with Mingw / Msys as suggested were without success either. Ths, I installed python under Windows and ran the script from the Windows command line.

python .\build\tools\make_standalone_toolchain.py --arch x86_64 --api 21 -v --install-dir ..\toolchains\oboe_record_proto

The toolchain was generated as expected.

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