1.å¦ä½å¨Androidå¹³å°ä¸ç¼è¯å¸¦STLçC++ç¨åº
2.Android JNI/NDK环境的编译抽签助手源码配置与Demo编译
3.å¦ä½ç¨Android NDKç¼è¯FFmpeg
4.Ubuntu 20.04上Android NDK编译FFmpeg 5.1全程笔记
å¦ä½å¨Androidå¹³å°ä¸ç¼è¯å¸¦STLçC++ç¨åº
1ãä¸è½½ææ°çAndroid SDKï¼ä¸è½½Android NDK R9Cçæ¬ã
2ãå¦æ¯å¨windowså¹³å°ä¸éè¦å¨PATHä¸è®¾ç½®ç¯å¢åéï¼ä»¥ä¾¿äºç´æ¥è°ç¨NDKæ¥ç¼è¯C++ç¨åºã
å°å¦ä¸ä¸¤ä¸ªè·¯å¾å å ¥å°PATHä¸ï¼<ANDROID_NDK>;<ANDROID_SDK>\platform-tools
å ¶ä¸<NDK>ä¸ºä½ ç计ç®æºä¸Android NDKçå®è£ è·¯å¾ï¼<SDK>为Android SDKçå®è£ è·¯å¾
å¦æå¨ä½ çSDKä¸æ²¡æplatform-toolsç®å½ï¼åå¨Eclipseä¸æç §å¦ä¸æªå¾è¿è¡æä½ï¼
3ã为è¦ç¼è¯çC++ç¨åºå»ºä¸ä¸ªæ件夹ï¼å¦myprojectãå¨myprojectä¸å建ä¸ä¸ªjniæ件夹ï¼å°æºä»£ç æ¾å¨è¿ä¸ªæ件夹ä¸ï¼myproject/jniã
mkdir myproject
mkdir myproject/jni
4ãå¨jniæ件夹ä¸å»ºä¸¤ä¸ªåå«å为ï¼android.mkå
application.mkæ件ãandroid.mk类以äºC++ç¨åºçmakefileï¼application.mkåææå½åç¨åºä¾èµçåºã
android.mkç示ä¾ä¸ºï¼
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := my_first_app #ææC++ç¨åºç¼è¯åºçå¯æ§è¡ç¨åºçå称
LOCAL_SRC_FILES:= my_first_app0.cpp \ #ææè¦ç¼è¯çæºæ件ï¼å¯ä»¥æå¾å¤ä¸ª
my_first_app1.cpp\
â¦
include$(BUILD_EXECUTABLE)#表æç¼è¯çæ¯å¯æ§è¡ç¨åº
/