close
下載 OpenCV-2.4.8-android-sdk.zip
前一陣子安裝OpenCV2.1時發生一件悲劇, 系統變數Path竟然被OpenCV安裝時給直接取代掉,
確認系統Path變數有下列路徑 C:\Program Files (x86)\Java\jre6\bin
編譯人臉偵測
出現錯誤訊息
[2014-02-22 17:37:58 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.[2014-02-22 17:37:58 - OpenCV Sample - face-detection] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
錯誤訊息: 找不到ndk
下載android-ndk-r9c-windows-x86_64
androoid NDK 這是要讓android 能透過JNI 來執行C語言時所必需的套件
在eclipse 下開啟 說明->Install New Software
在work with 中搜尋https://dl-ssl.google.com/android/eclipse/ ,如下圖選得NDK
安裝中…
參考:http://stackoverflow.com/questions/12466074/opencv-native-samples-are-not-building
NDKROOT
C:\Users\ryan\Desktop\opencvwk\android-ndk-r9c
成功編譯出執行檔
全站熱搜
留言列表