mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
update Android NDK
This commit is contained in:
parent
2c74a88836
commit
460c0b8cc9
2 changed files with 6 additions and 6 deletions
|
@ -51,7 +51,7 @@ ifeq ($(TARGET), ANDROID)
|
|||
|
||||
CXX = $(PROGRAM_PREFIX)clang++
|
||||
STRIP = $(PROGRAM_PREFIX)strip
|
||||
CXXFLAGS += -pthread -DNO_CPP11_STRING -fPIC -DHAS_TREMOR -DHAS_OPENSL -I$(NDK_DIR)/include
|
||||
CXXFLAGS += -pthread -fPIC -DHAS_TREMOR -DHAS_OPENSL -I$(NDK_DIR)/include
|
||||
LDFLAGS = -L$(NDK_DIR)/lib -pie -lvorbisidec -logg -lFLAC -lOpenSLES -latomic -llog
|
||||
OBJ += player/openslPlayer.o
|
||||
|
||||
|
|
10
doc/build.md
10
doc/build.md
|
@ -141,14 +141,14 @@ Cross compilation for Android is done with the [Android NDK](http://developer.an
|
|||
|
||||
### Android NDK setup
|
||||
http://developer.android.com/ndk/guides/standalone_toolchain.html
|
||||
1. Download NDK: `https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip`
|
||||
2. Extract to: `/SOME/LOCAL/PATH/android-ndk-r16b`
|
||||
1. Download NDK: `https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip`
|
||||
2. Extract to: `/SOME/LOCAL/PATH/android-ndk-r17b`
|
||||
3. Setup toolchains for arm and x86 somewhere in your home dir (`<android-ndk dir>`):
|
||||
|
||||
```
|
||||
$ cd /SOME/LOCAL/PATH/android-ndk-r16-beta1/build/tools
|
||||
$ ./make_standalone_toolchain.py --arch arm --api 21 --install-dir <android-ndk dir>-arm
|
||||
$ ./make_standalone_toolchain.py --arch x86 --api 21 --install-dir <android-ndk dir>-x86
|
||||
$ cd /SOME/LOCAL/PATH/android-ndk-r17/build/tools
|
||||
$ ./make_standalone_toolchain.py --arch arm --api 16 --install-dir <android-ndk dir>-arm
|
||||
$ ./make_standalone_toolchain.py --arch x86 --api 16 --install-dir <android-ndk dir>-x86
|
||||
```
|
||||
|
||||
### Build Snapclient
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue