###### tags: `Android` # Android NDK - [time=June 7, 2021 10:23 PM] - [color=#69e0e0] [name=Huang, Hsien-Chun ] - [TOC] ## 簡介 - 指南至[Android官網](https://developer.android.com/ndk) - 工具使在andorid 使用c 和c++ - [原生API](https://developer.android.com/ndk/guides/stable_apis) - Android studio 編譯原生庫默認工具是 [CMak](https://cmake.org/) 與 [NDK-build](https://developer.android.com/ndk/guides/ndk-build) ## CMak - cross platform make(CMak) - 為跨平台的安裝(編譯)Tool,用簡單的語句來所有平台的安裝。 - [CMake practice](http://file.ncnynl.com/ros/CMake%20Practice.pdf) - [CMake example](https://github.com/ttroy50/cmake-examples) - 參考 git ``` git clone https://github.com/SFUMECJF/cmake-examples-Chinese.git ``` - ### CMak install - Windows: -- [安裝檔](http://www.cmake.org/) -- 手動將 cmake 執行檔路徑加到系統的 PATH 變數中 -- 安裝的路徑中不要有空白字元 - Debian/Ubuntu: ``` sudo apt-get update sudo apt-get install cmake ``` - Linux ``` sudo pacman -S cmake ``` ## Android mk ## 參考 - [CMak](https://sfumecjf.github.io/cmake-examples-Chinese/) - [CMake2](https://zh.wikibooks.org/wiki/Category:CMake_%E5%85%A5%E9%96%80) - [Android mk](http://jasonblog.github.io/note/android_note/515.html)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up