최주호
unread,May 27, 2018, 11:17:30 AM5/27/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AIDE - Android Java IDE
ndk build error .. Godefocus.so not find
pls help
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.chocolate.godefocus"
minSdkVersion 21
targetSdkVersion 23
versionCode 185
versionName "2.14.7"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
buildTypes {
release {
// runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Android.mk'
}
}
productFlavors {
armv7 {
ndk {
abiFilter "armeabi-v7a"
}
}
fat
}
sourceSets {
main {
jniLibs.srcDir 'src/main/libs'
jni.srcDirs = [] //important!!!! disable automatic ndk-build call
}
}
}
dependencies {
compile project(':openCVLibrary330')
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:26.+'
//compile 'com.android.support:appcompat-v7:+'
compile files('src/main/libs/whatever-v7a.jar')
compile files('src/main/libs/android-support-v4.jar')
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
}
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#opencv library
OPENCVROOT:= /storage/emulated/0/Work/OpenCV-android-sdk
OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on
OPENCV_LIB_TYPE:=SHARED
include ${OPENCVROOT}\sdk\native\jni\OpenCV.mk
LOCAL_MODULE := Godefocus
LOCAL_SRC_FILES := main.cpp
LOCAL_LDLIBS += -llog
include $(BUILD_SHARED_LIBRARY)