Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Problem with Wwise SDK path when building an Android plugin

0 votes
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?

Thanks
asked May 11 in General Discussion by Ciaran W. (100 points)

1 Answer

0 votes
> I believe the Android build (using build tools) is failing due to the spaces in the Wwise SDK path.

You are correct, the issue is related to the whitespaces being unescaped for make to process.

As a workaround, you can specify an installation of Wwise located in a path without spaces (e.g., you can copy the Wwise installation folder to your C:\ and build using this installation instead).
answered May 22 by Samuel L. (Audiokinetic) (640 points)
...