1.å¨Windowsä¸CodeBlocksè½ç¼è¯Androidä¸ç.soå.aå
å¨Windowsä¸CodeBlocksè½ç¼è¯Androidä¸ç.soå.aå
编译编译类似葫芦侠源码å¯ä»¥ä½¿ç¨çã解æï¼é¦å Androidå°±æ¯Linuxå æ ¸ãandroidåºç¨ç¨åºå¼åç¯å¢ï¼å æ¬eclipseãjavaãandroidsdkãadtçãå®è£ android-ndkå¼åå ï¼è¿ä¸ªå¼åå å¯ä»¥å¨googleandroidå®ç½ä¸è½½ï¼éè¿è¿ä¸ªå¼åå çå·¥å ·æè½å°androidjniçC/C++ç代ç ç¼è¯æåºandroidçNDKå¼åéè¦å¨linuxä¸è¿è¡ï¼å 为éè¦æC/C++ç¼åç代ç çæè½å¨armä¸è¿è¡ç.soæ件ï¼è¿å°±éè¦ç¨å°äº¤åç¼è¯ç¯å¢ï¼è交åç¼è¯éè¦å¨linuxç³»ç»ä¸æè½å®æãå¤æ³¨ï¼NDKç¼è¯æ¥éª¤ï¼1.éæ©ndkèªå¸¦çä¾åhello-jniï¼ä½äºE:\android-ndk-r5\samples\hello-jni(æ ¹æ®å ·ä½çå®è£ ä½ç½®èå®)ã2.è¿è¡cygwinï¼è¾å ¥å½ä»¤cd/cygdrive/e/android-ndk-r5/samples/hello-jniï¼è¿å ¥å°E:\android-ndk-r5\samples\hello-jniç®å½ã3.è¾å ¥$NDK/ndk-buildï¼æ§è¡æååï¼å®ä¼èªå¨çæä¸ä¸ªlibsç®å½ï¼æç¼è¯çæç.soæ件æ¾å¨éé¢ã($NDKæ¯è°ç¨æ们ä¹åé 置好çç¯å¢åéï¼ndk-buildæ¯è°ç¨ndkçç¼è¯ç¨åº)4.æ¤æ¶å»hello-jniçlibsç®å½ä¸çæ没æçæç.soæ件ï¼å¦ææï¼ndkå°±è¿è¡æ£å¸¸äºã
编译编译类似葫芦侠源码2024-11-13 15:04
2024-11-13 14:55
2024-11-13 14:36
2024-11-13 14:26
2024-11-13 13:56
2024-11-13 13:35