Actions
Bug #2366
openlibrary "libcrystax.so" not found
Status:
Open
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/08/2018
Due date:
% Done:
0%
Estimated time:
CPU Architecture:
arm, arm64, mips, mips64, x86, x86_64
Host OS:
Linux
Toolchain:
Android version:
4.3 (android-18)
CrystaX NDK Version:
Description
When I run the compiled apk, I get this error:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.marceloneil.test, PID: 3893
java.lang.UnsatisfiedLinkError: dlopen failed: library "libcrystax.so" not found
MainActivity.java (shortened)
static {
System.loadLibrary("main");
}
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := main
LOCAL_SRC_FILES := $(LOCAL_PATH)/libs/start.c
LOCAL_LDLIBS := -llog
LOCAL_SHARED_LIBRARIES := python_shared
include $(BUILD_SHARED_LIBRARY)
$(call import-module,python/3.5)
build.gradle (shortened)
externalNativeBuild {
ndkBuild {
path 'Android.mk'
}
}
Futher analysis of the APK shows that libpython3.5m.so and libmain.so are available for each architecture, but libcrystax.so is missing. I was under the impression that the python module would import any other modules that it requires (ie. libcrystax.so), but I apologize if I'm wrong. Either way, some tips on how to get this sorted out would be appriciated.
Actions