我在 Eclipse 中为 android 导入了所有 OpenCV 示例。我有 NDKROOT 的正确路径。我在 Ubuntu 下,所以我删除了 Build Command 中的“.cmd”。我现在的问题是我在 cpp 文件中有错误。
以下是 CDT 全球构建控制台所说的:
19:04:34 **** Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build
Android NDK: WARNING:jni/Android.mk:mixed_sample: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libmixed_sample.so => libs/armeabi-v7a/libmixed_sample.so
19:04:34 Build Finished (took 299ms)
19:04:37 **** Build of configuration Default for project OpenCV Sample - face-detection ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build all
Android NDK: WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so
19:04:37 Build Finished (took 171ms)
19:04:37 **** Build of configuration Default for project OpenCV Sample - native-activity ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build
Android NDK: WARNING:jni/Android.mk:native_activity: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup
[armeabi-v7a] Install : libnative_activity.so => libs/armeabi-v7a/libnative_activity.so
19:04:38 Build Finished (took 343ms)
19:04:59 **** Auto Build of configuration Default for project OpenCV Sample - face-detection ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build all
Android NDK: WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so
19:05:00 Build Finished (took 229ms)
19:05:00 **** Auto Build of configuration Default for project OpenCV Sample - face-detection ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build all
Android NDK: WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so
19:05:01 Build Finished (took 404ms)
19:05:01 **** Auto Build of configuration Default for project OpenCV Sample - native-activity ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build
Android NDK: WARNING:jni/Android.mk:native_activity: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup
[armeabi-v7a] Install : libnative_activity.so => libs/armeabi-v7a/libnative_activity.so
19:05:02 Build Finished (took 229ms)
19:05:02 **** Auto Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build
Android NDK: WARNING:jni/Android.mk:mixed_sample: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libmixed_sample.so => libs/armeabi-v7a/libmixed_sample.so
19:05:02 Build Finished (took 233ms)
19:05:32 **** Auto Build of configuration Default for project OpenCV Sample - face-detection ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build all
Android NDK: WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so
19:05:32 Build Finished (took 119ms)
19:05:32 **** Auto Build of configuration Default for project OpenCV Sample - native-activity ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build
Android NDK: WARNING:jni/Android.mk:native_activity: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup : libs/armeabi-v7a/gdb.setup
[armeabi-v7a] Install : libnative_activity.so => libs/armeabi-v7a/libnative_activity.so
19:05:33 Build Finished (took 185ms)
19:05:33 **** Auto Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing ****
/home/crash-id/Development/SDK/android-ndk-r10c/ndk-build
Android NDK: WARNING:jni/Android.mk:mixed_sample: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Install : libmixed_sample.so => libs/armeabi-v7a/libmixed_sample.so
19:05:33 Build Finished (took 122ms)
当我打开 OpenCV-2.4.9-android-sdk/sdk/native/libs/armeabi-v7a 时,我可以看到这些 .so 文件实际上并不存在。我应该怎么办?我需要尽快修复它(用于学校项目)。