sonosaurus / sonobus

Source code for SonoBus, a real-time network audio streaming collaboration tool.
https://sonobus.net
GNU General Public License v3.0
1.55k stars 114 forks source link

Android Build failure #214

Open kroll-j opened 1 year ago

kroll-j commented 1 year ago

I went to sonobus/mobile/Builds/Android and tried to build the Android APK:

$ ./builddebug.sh

> Task :app:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at CMakeLists.txt:66 (add_library):
C/C++:   Cannot find source file:
C/C++:     ../../../JuceLibraryCode/include_juce_audio_plugin_client_ARA.cpp
C/C++:   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
C/C++:   .hpp .hxx .in .txx
C/C++: CMake Error at CMakeLists.txt:66 (add_library):
C/C++:   No SOURCES given to target: juce_jni
C/C++: CMake Generate step failed.  Build files cannot be regenerated correctly.

include_juce_audio_plugin_client_ARA.cpp seems to be missing. Or maybe I'm doing something wrong, I couldn't find information on building the Android app.

essej commented 1 year ago

Sorry I didn't document the android build process. You may need to actually run the juce Projucer (built from deps/juce/extras) for the mobile version, loading the project in mobile/SonoBusMobile.jucer, then Save Project. You will need to change the keystore items beforehand though.

Then going into mobile/Builds/Android, running ./fixup.sh, then ./builddebug.sh (or ./buildrelease.sh).