From 759863d95cc9ac0f45e5692e7a0a07258f9412d0 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Fri, 16 Nov 2012 17:01:25 +0400 Subject: [PATCH] Issue #2537 OpenCV Manager doesn't work on Android 4.2 fixed. --- android/scripts/cmake_android_service.sh | 2 +- android/service/engine/AndroidManifest.xml | 4 ++-- android/service/engine/jni/Android.mk | 5 ++--- android/service/engine/jni/Application.mk | 1 + android/service/engine/jni/Tests/Tests.mk | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/android/scripts/cmake_android_service.sh b/android/scripts/cmake_android_service.sh index 3503bb7..e0d1222 100755 --- a/android/scripts/cmake_android_service.sh +++ b/android/scripts/cmake_android_service.sh @@ -4,5 +4,5 @@ cd `dirname $0`/.. mkdir -p build_service cd build_service -cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_STL=stlport_static -DANDROID_STL_FORCE_FEATURES=OFF -DBUILD_ANDROID_SERVICE=ON -DANDROID_SOURCE_TREE=~/Projects/AndroidSource/ServiceStub/ $@ ../.. +cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.4.3" -DANDROID_STL=stlport_static -DANDROID_STL_FORCE_FEATURES=OFF -DBUILD_ANDROID_SERVICE=ON -DANDROID_SOURCE_TREE=~/Projects/AndroidSource/ServiceStub/ $@ ../.. diff --git a/android/service/engine/AndroidManifest.xml b/android/service/engine/AndroidManifest.xml index b1d6f69..1e06524 100644 --- a/android/service/engine/AndroidManifest.xml +++ b/android/service/engine/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="21" + android:versionName="2.1" > diff --git a/android/service/engine/jni/Android.mk b/android/service/engine/jni/Android.mk index a33466c..9ab92a2 100644 --- a/android/service/engine/jni/Android.mk +++ b/android/service/engine/jni/Android.mk @@ -35,7 +35,7 @@ LOCAL_MODULE := libOpenCVEngine LOCAL_LDLIBS += -lz -lbinder -llog -lutils -LOCAL_LDFLAGS += -Wl,-allow-shlib-undefine +LOCAL_LDFLAGS += -Wl,-allow-shlib-undefined include $(BUILD_SHARED_LIBRARY) @@ -74,7 +74,6 @@ LOCAL_CFLAGS += -D__SUPPORT_MIPS LOCAL_MODULE := libOpenCVEngine_jni LOCAL_LDLIBS += -lz -lbinder -llog -lutils -landroid_runtime - LOCAL_SHARED_LIBRARIES = libOpenCVEngine include $(BUILD_SHARED_LIBRARY) @@ -83,4 +82,4 @@ include $(BUILD_SHARED_LIBRARY) # Native test application #--------------------------------------------------------------------- -include $(LOCAL_PATH)/Tests/Tests.mk \ No newline at end of file +#include $(LOCAL_PATH)/Tests/Tests.mk \ No newline at end of file diff --git a/android/service/engine/jni/Application.mk b/android/service/engine/jni/Application.mk index 4230cd2..5647110 100644 --- a/android/service/engine/jni/Application.mk +++ b/android/service/engine/jni/Application.mk @@ -2,4 +2,5 @@ APP_ABI := armeabi x86 mips APP_PLATFORM := android-8 APP_STL := stlport_static APP_CPPFLAGS := -fno-rtti -fno-exceptions +NDK_TOOLCHAIN_VERSION=4.4.3 #APP_OPTIM := debug \ No newline at end of file diff --git a/android/service/engine/jni/Tests/Tests.mk b/android/service/engine/jni/Tests/Tests.mk index a436bc2..4cfe1c1 100644 --- a/android/service/engine/jni/Tests/Tests.mk +++ b/android/service/engine/jni/Tests/Tests.mk @@ -36,7 +36,7 @@ LOCAL_CFLAGS += -D__SUPPORT_TEGRA3 LOCAL_CFLAGS += -D__SUPPORT_MIPS #LOCAL_CFLAGS += -D__SUPPORT_ARMEABI_FEATURES -LOCAL_LDFLAGS = -Wl,-allow-shlib-undefined +#LOCAL_LDFLAGS = -Wl,-allow-shlib-undefined LOCAL_MODULE := OpenCVEngineTestApp -- 2.7.4