https://android.googlesource.com/toolchain/llvm_android/+/master/README.md 참조하였음.
How to build in linux (or WSL for windows)
윈도우를 위한 빌드 환경이 없으므로 wsl을 설치한다.
1. install curl & repo & python3
$ sudo apt install python3
$ sudo apt install python-is-python3
$ sudo apt install curl
$ curl https://storage.googleapis.com/git-repo-downloads/repo > repo
$ chmod 755 repo
$ cp repo ~
2. download and extract android-ndk-r25b-linux.zip
3. repo and build it
(If you want to build for windows, --no-build=linux is required.)
$ repo init -u https://android.googlesource.com/platform/manifest -b llvm-toolchain
$ cp android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/manifest_8490178.xml .repo/manifests
$ repo init -m manifest_8490178.xml
$ repo sync -c
$ python toolchain/llvm_android/build.py --no-build=linux
Apply to Visual Studio
1. cd C:\Microsoft\AndroidNDK
2. rename the directory on android-ndk-rXXX to android-ndk-rXXX_org
3. download & extract android-ndk-r25b-windows.zip and rename the directory android-ndk-r25b to android-ndk-rXXX
'Android Linux' 카테고리의 다른 글
[arm] 정적 분석 방해 테스트 (0) | 2023.05.22 |
---|---|
[Android App] fork & ptrace (0) | 2022.08.29 |
jni(arm64-v8a) NOX 개발 환경 구축하기 (0) | 2021.02.05 |
gdb 7.11 (arm 32bit) (0) | 2020.10.15 |
안드로이드 후킹, 메모리 변조 : 코드 후킹과 재배치(relocation) (0) | 2018.07.23 |