ma1co / OpenMemories-Tweak

Unlock your Sony camera's settings
MIT License
1.17k stars 113 forks source link

Has anyone successfully compiled this project? #457

Closed tonghm0808 closed 1 year ago

tonghm0808 commented 1 year ago

I searched all the issues, Configure the environment.

But there are still a lot of errors.

Caused by: Build command failed. Error while executing process C:\Users\T\AppData\Local\Android\Sdk\ndk\android-ndk-r14b\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\github\OpenMemories-Tweak\app\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\github\OpenMemories-Tweak\app\src\main\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-9 NDK_OUT=D:/github/OpenMemories-Tweak/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\github\OpenMemories-Tweak\app\build\intermediates\ndkBuild\debug\lib D:/github/OpenMemories-Tweak/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libtweak.so} [armeabi] Compile++ thumb: tweak <= jni.cpp [armeabi] Compile++ thumb: tweak <= backup.cpp [armeabi] Compile++ thumb: tweak <= properties.cpp [armeabi] Compile thumb : tweak <= shell.c [armeabi] Compile++ thumb: tweak <= tweaks.cpp [armeabi] Compile++ thumb: tweak <= util.cpp [armeabi] Compile thumb : tweak <= backup.c [armeabi] Compile thumb : tweak <= backup_senser.c [armeabi] Compile thumb : tweak <= mem.c [armeabi] Compile thumb : tweak <= gccstuff.c [armeabi] SharedLibrary : libtweak.so D:/github/OpenMemories-Tweak/app/src/main/jni/platform/api/shell.c:15: error: undefined reference to 'osal_valloc_msg_wait' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/api/shell.c:21: error: undefined reference to 'osal_snd_msg' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/drivers/backup.c:22: error: undefined reference to 'osal_valloc_msg_wait' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/drivers/backup.c:36: error: undefined reference to 'osal_snd_sync_msg' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/drivers/backup.c:41: error: undefined reference to 'osal_free_msg' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/drivers/backup_senser.c:43: error: undefined reference to 'osal_valloc_msg_wait' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/drivers/backup_senser.c:48: error: undefined reference to 'osal_snd_sync_msg' D:/github/OpenMemories-Tweak/app/src/main/jni/platform/drivers/backup_senser.c:53: error: undefined reference to 'osal_free_msg' collect2.exe: error: ld returned 1 exit status make: *** [D:/github/OpenMemories-Tweak/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libtweak.so] Error 1

at com.android.build.gradle.tasks.ExternalNativeBuildTaskUtils.executeBuildProcessAndLogError(ExternalNativeBuildTaskUtils.java:302)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.executeProcessBatch(ExternalNativeBuildTask.java:292)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.build(ExternalNativeBuildTask.java:184)
at sun.reflect.GeneratedMethodAccessor767.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
... 45 more
tonghm0808 commented 1 year ago

it looks like path problem , did i need fix the Android.mk ?