I'm currently updating Wwise to 2019.2.1 and having difficulty rebuilding a plugin I wrote a couple of months ago. There are no changes to the plugin code which is thoroughly tested. It builds without any problems for Windows. I believe the Android build (using build tools) is failing due to the spaces in the Wwise SDK path.
When I run the build script I get the following output:
C:\Dev\Tools\HornetFilter>python "%WWISEROOT%/Scripts/Build/Plugins/wp.py" build Android -c debug
Building HornetFilter for Android in debug...
Building Android in debug using ndk-build. Build Command:
C:\NVPACK\android-ndk-r17c\ndk-build all -j 8 NDK_PROJECT_PATH=.\ PM5_CONFIG=debug_android_armeabi-v7a NDK_APPLICATION_MK=HornetFilter_Android_application.mk NDK_LIBS_OUT=C:/Program Files (x86)/Audiokinetic/Wwise 2019.2.1.7250/SDK/Android_armeabi-v7a/debug/libs NDK_OUT=C:/Program Files (x86)/Audiokinetic/Wwise 2019.2.1.7250/SDK/Android_armeabi-v7a/debug/lib NDK_APP_OUT=C:/Program Files (x86)/Audiokinetic/Wwise 2019.2.1.7250/SDK/Android_armeabi-v7a TARGET_OUT=C:/Program Files (x86)/Audiokinetic/Wwise 2019.2.1.7250/SDK/Android_armeabi-v7a/debug/lib
Android NDK: WARNING: APP_STL gnustl_static is deprecated and will be removed in the next release. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html
for more information.
Android NDK: WARNING: Deprecated NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported and will be removed in the next release. See https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md
make: *** No rule to make target `Files'. Stop.
make: *** Waiting for unfinished jobs....
[armeabi-v7a] Install : libHornetFilter.so => C:/Program/armeabi-v7a/libHornetFilter.so
The error "No rule to make target 'Files'" appears to be referring to part of "C:/Program Files (x86)/...." following the first space.
The final line shows the built lib being copied to "C:/Program/armeabi...." which also looks like a mangling of the Wwise path. The script has indeed created a folder C:\Program and copied files to it.
I have looked in the make files for a definition of the output paths but there isn't one so it must be defined somewhere in the scripts. How can I fix this?