ggerganov / ggwave-java

Minimal Java app for Android using ggwave
MIT License
21 stars 11 forks source link

Android source code runs with errors and necessary files are missing #5

Open nemo-dsm opened 3 months ago

nemo-dsm commented 3 months ago

xecution failed for task ':app:buildCMakeDebug[arm64-v8a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\y\Desktop\ggwave-java-master\app.cxx\Debug\45019215\arm64-v8a' [1/2] Building CXX object CMakeFiles/test-cpp.dir/test-cpp.cpp.o [2/2] Linking CXX shared library C:\Users\y\Desktop\ggwave-java-master\app\build\intermediates\cxx\Debug\45019215\obj\arm64-v8a\libtest-cpp.so FAILED: C:/Users/y/Desktop/ggwave-java-master/app/build/intermediates/cxx/Debug/45019215/obj/arm64-v8a/libtest-cpp.so cmd.exe /C "cd . && D:\Androidstudio\sdk\ndk\23.1.7779620\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --sysroot=D:/Androidstudio/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -g -fno-limit-debug-info -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined -shared -Wl,-soname,libtest-cpp.so -o C:\Users\y\Desktop\ggwave-java-master\app\build\intermediates\cxx\Debug\45019215\obj\arm64-v8a\libtest-cpp.so CMakeFiles/test-cpp.dir/test-cpp.cpp.o D:/Androidstudio/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/21/liblog.so -static-libstdc++ -latomic -lm && cd ." ld: error: undefined symbol: ggwave_getDefaultParameters

referenced by test-cpp.cpp:18 (C:/Users/y/Desktop/ggwave-java-master/app/src/main/cpp\test-cpp.cpp:18) CMakeFiles/test-cpp.dir/test-cpp.cpp.o:(Java_com_album_gg_MainActivity_initNative)

ld: error: undefined symbol: ggwave_init

referenced by test-cpp.cpp:22 (C:/Users/y/Desktop/ggwave-java-master/app/src/main/cpp\test-cpp.cpp:22) CMakeFiles/test-cpp.dir/test-cpp.cpp.o:(Java_com_album_gg_MainActivity_initNative)

ld: error: undefined symbol: ggwave_decode

referenced by test-cpp.cpp:37 (C:/Users/y/Desktop/ggwave-java-master/app/src/main/cpp\test-cpp.cpp:37) CMakeFiles/test-cpp.dir/test-cpp.cpp.o:(Java_com_album_gg_MainActivity_processCaptureData)

ld: error: undefined symbol: ggwave_encode

referenced by test-cpp.cpp:57 (C:/Users/y/Desktop/ggwave-java-master/app/src/main/cpp\test-cpp.cpp:57) CMakeFiles/test-cpp.dir/test-cpp.cpp.o:(Java_com_album_gg_MainActivity_sendMessage) referenced by test-cpp.cpp:61 (C:/Users/y/Desktop/ggwave-java-master/app/src/main/cpp\test-cpp.cpp:61) CMakeFiles/test-cpp.dir/test-cpp.cpp.o:(Java_com_album_gg_MainActivity_sendMessage) clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

ggwave.h The file already exists, and you can click to view the error.

nemo-dsm commented 3 months ago

Can you make a complete and runnable demo? The necessary .h files are missing.