-
Notifications
You must be signed in to change notification settings - Fork 20
Missing libarcade.so file #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to run ndk-build to generate libarcade.so then you can run from AndroidStudio |
D:\AndroidStudioProjects\Arcade\arcade\src\main\jni>ndk-build I know need to run ndk-bulid. But it says I missing file .So, I check the file in jni ,the file is right there . |
I slove the problem , but I have a new one.Just need one step I can build the .so . D:\AndroidStudioProjects\Arcade\arcade\src\main\jni>ndk-build |
You miss librt.so, but this lib is merged to libc.so already. comment
in Application.mk, then run There are still many problems waiting for you. Hope we can help each other. |
@huyn Thank you very much . And I fix the problem , build success . I found the "libarcade.so" , but it still says error in Android Studio ,when I click the button "BEGIN STYLING " , Do you have this error ? Like this : java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.naman14.arcade-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]] couldn't find "libarcade.so" |
@sadaharusong what's your device architecture? The prebuilt libraries are currently only for armeabi-v7a |
Also, can you post your Android.mk? |
@naman14 I try to use the phone with armeabi-v7a , and also try other phone have other cpu . All didn't work . The Error : My Android.mk : include $(call all-subdir-makefiles) LOCAL_MODULE := arcade LOCAL_C_INCLUDES += $(LOCAL_PATH)/include LOCAL_SRC_FILES := arcade.cpp torchandroid.cpp android_fopen.c LOCAL_LDLIBS := -llog -landroid -L$(LOCAL_PATH)/prebuilts -lluaT -lluajit -lTH -lTHNN -ltorch -lnnx -limage -ltorchandroid -lluaT -lluajit -lTH -lTHNN -ltorch -lnnx -limage -ltorchandroid -lpng -lpng16 include $(BUILD_SHARED_LIBRARY) Add prebuilt libimageinclude $(CLEAR_VARS) Add prebuilt libloadcaffeinclude $(CLEAR_VARS) Add prebuilt libtorchandroidinclude $(CLEAR_VARS) Add prebuilt libluajitinclude $(CLEAR_VARS) Add prebuilt libluaTinclude $(CLEAR_VARS) Add prebuilt libTHinclude $(CLEAR_VARS) Add prebuilt libtorchinclude $(CLEAR_VARS) Add prebuilt libpathsinclude $(CLEAR_VARS) Add prebuilt libgnustlinclude $(CLEAR_VARS) Add prebuilt libnnxinclude $(CLEAR_VARS) Add prebuilt libppminclude $(CLEAR_VARS) Add prebuilt libsundowninclude $(CLEAR_VARS) Add prebuilt libsysinclude $(CLEAR_VARS) Add prebuilt libthnninclude $(CLEAR_VARS) Add prebuilt libthreadsinclude $(CLEAR_VARS) Add prebuilt libthreadsmaininclude $(CLEAR_VARS) Add prebuilt libpng16include $(CLEAR_VARS) Add prebuilt libpnginclude $(CLEAR_VARS) By the way , The App in Google Play is didn't work,too. |
@naman14 Nice to know that you will take a look in to the issues. I can offer help if there is need. |
Yes, please take a look in #2. |
@sadaharusong
change your |
Have you solved that issue please? I'm having the same :( |
@naman14 do you still following this project ? |
Hello, I use libpng.so instead libpng16.so to solve the problem . But now, I have a new problem, it is missing libarcade.so in the file. I try to use ndk to build it , but if want to use ndk to build the .so , the libarcade.so in needed . So could you update the Code or Push the file into the repository ?
The text was updated successfully, but these errors were encountered: