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

Failing to compile Effect Plugin in Wwise 2022.1.6.8263 on Windows 10 using Visual Studio 2022

0 votes

TL;DR

I've installed all available MSVC v143 - VS 2022 C++ x64/x86 build tools versions, as well as all Windows 10 and Windows 11 SDK's (though I'm on Windows 10).

As per the documentation, I've also installed DXSDK_Jun10.exe.

I noticed running python "%WWISEROOT%/Scripts/Build/Plugins/wp.py" premake Authoring gives the output Running action 'vs2017'... instead of vs2022 but I'm not sure how to make this change.

I'm not sure what else to try.

Repro Steps:

Install Visual Studio 2022, Wwise 2022.1.6.8263 and the latest version of Python (3.11.4).

With python in your path, from the command line, execute:

pip install markdown
pip install jinja2

If prompted to update pip, run the command given by python and run the lines above again.

Execute the following commands in the command line:

C:
cd \
mkdir WwisePluginsTest
cd WwisePluginsTest
python "%WWISEROOT%/Scripts/Build/Plugins/wp.py" new

Enter the following:

plugin-type: effect
out-of-place processing: no
project name: RadioDistortion
display name: RadioDistortion
author: PD
description: A Plugin
Is this OK? yes

cd RadioDistortion
python "%WWISEROOT%/Scripts/Build/Plugins/wp.py" premake Authoring

When compiling directly from PDRadioDistortion_Authoring_Windows_vc170.sln I receive the following compilation errors. I've made no changes to the code.

Build started...
1>------ Build started: Project: PDRadioDistortion, Configuration: Debug x64 ------
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: The intermediate directory (E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\Authoring\x64\Debug\obj\PDRadioDistortion\) contains files shared from another project (PDRadioDistortion.vcxproj).  This can lead to incorrect clean and rebuild behavior.
1>PDRadioDistortionPlugin.cpp
1>PDRadioDistortionPluginGUI.cpp
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\PlatformID.h(41,25): error C2065: 'GUID_NULL': undeclared identifier (compiling source file PDRadioDistortionPlugin.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\PlatformID.h(55,33): error C2065: 'GUID_NULL': undeclared identifier (compiling source file PDRadioDistortionPlugin.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\PlatformID.h(60,19): error C2065: 'GUID_NULL': undeclared identifier (compiling source file PDRadioDistortionPlugin.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\PlatformID.h(41,25): error C2065: 'GUID_NULL': undeclared identifier (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\PlatformID.h(55,33): error C2065: 'GUID_NULL': undeclared identifier (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\PlatformID.h(60,19): error C2065: 'GUID_NULL': undeclared identifier (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\repos\git\audio\wwise\plugins\PDRadioDistortion\WwisePlugin\Win32\PDRadioDistortionPluginGUI.h(32,30): error C2039: 'PluginMFCWindows': is not a member of 'AK::Wwise::Plugin' (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\Plugin\GUIWindows.h(192,11): message : see declaration of 'AK::Wwise::Plugin' (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\repos\git\audio\wwise\plugins\PDRadioDistortion\WwisePlugin\Win32\PDRadioDistortionPluginGUI.h(32,46): error C2504: 'PluginMFCWindows': base class undefined (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\repos\git\audio\wwise\plugins\PDRadioDistortion\WwisePlugin\Win32\PDRadioDistortionPluginGUI.h(32,46): error C2143: syntax error: missing ',' before '<' (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\Program Files (x86)\Audiokinetic\Wwise 2022.1.6.8263\SDK\include\AK\Wwise\Plugin\PluginInfoGenerator.h(756,14): error C2229: struct 'AK::Wwise::Plugin::PluginInfoGenerator<PDRadioDistortionPluginGUI>' has an illegal zero-sized array (compiling source file Win32\PDRadioDistortionPluginGUI.cpp)
1>E:\repos\git\audio\wwise\plugins\PDRadioDistortion\WwisePlugin\Win32\PDRadioDistortionPluginGUI.cpp(37,1): message : see reference to class template instantiation 'AK::Wwise::Plugin::PluginInfoGenerator<PDRadioDistortionPluginGUI>' being compiled
1>Done building project "PDRadioDistortion_Authoring_Windows_vc170.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Build started at 2:36 PM and took 01.730 seconds ==========

Executing python "%WWISEROOT%/Scripts/Build/Plugins/wp.py" build -c Release -x x64 -t vc170 Authoring also fails to build.

Any help that can be provided would be greatly appreciated.

asked Jul 28, 2023 in General Discussion by Patrick D. (140 points)

1 Answer

+1 vote
 
Best answer
The issue appears to be a missing dependency to ATL/MFC in your Visual Studio 2022 installation, which is used by the default plug-in template.

Modify your Visual Studio 2022 installation through the Visual Studio Installer, and under "Individual components" select "C++ MFC for latest v143 build tools (x86 & x64)" and "C++ ATL for latest v143 build tools (x86 & x64)".
answered Aug 1, 2023 by Samuel L. (Audiokinetic) (23,300 points)
selected Aug 3, 2023 by Patrick D.
I ended up reinstalling Visual Studio 2022 and picked the ATL and MFC libraries again (as I must have not selected the correct ones the first time) and it worked.

Thank you!
...