win7 ndk編譯c
2 解壓ndk到指定目錄,如d盤;
3 配置ndk環境變數:
在windows下配置環境變數:
新建環境變數 ndkroot ,值為 d:\programfiles\androidndk 。//值換成你的ndk根目錄位置 注意這個變數名一定要是ndkroot,至少在ndk r9版本的時候是這樣
編輯path環境變數,在它的尾巴上 新增 %ndkroot%; 。
參考:4 編寫demo測試程式,android.mk,hello.c並將測試程式放在hello檔案目錄下面。
android.mk:
local_path:= $(call my-dir)
include $(clear_vars)
local_src_files := hello.c
local_module := hello
include $(build_executable)
hello.c
#include
int main(int argc, char* ar**)
5 進入hello檔案目錄下面,執行ndk-build命令:
6 編譯結束後
編譯後,在目錄裡的lib目錄裡生成hello檔案,用adb push到手機或模擬器。
將hello\libs\armeabi-v7a\hello檔案push到手機上。
7 執行命令adb shell 連線手機
8 在/data/local/tmp 檔案下面,執行./hello
9 warining 解決方法:參考
android_elf_cleaner製作方法
(2)直接在 linux 中執行 make 命令,即可編譯得到 android-elf-cleaner 可執行程式;
win7搭建php Apache環境
開啟根據自己需要選擇對應版本,non thread safe 非執行緒安全 對應的是iis環境,thread safe 執行緒安全 對應的是apache,在這裡選擇的是php 7.1.6 win32 vc14 x64.zip thread safe版本。解壓到自定義目錄,如 c apache24。1...
vue開發環境搭建 win7
在這裡,我選擇64位windows安裝包 msi 然後,根據提示 下一步 完成node.js的安裝。安裝成功後,開啟docs管理工具,輸入 node v 檢視node.js版本,若顯示成功,則代表安裝成功,如下圖所示 注意 安裝 映象如果報錯 npm err request to failed,re...
搭建Win7除錯ACPI的環境
這幾天看 格蠹彙編 中除錯acpi相關章節,裡面提到為了使用amli偵錯程式,需要檢查版本 checked build 的acpi.sys。有了checked build acpi.sys後,還需要與之對應的os en windows 7 ultimate x86 x15 65921.iso 可以從...