社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

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.

分类:General Discussion | 用户: Patrick D. (140 分)

1个回答

+1 投票
 
已采纳
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)".
用户: Samuel L. (Audiokinetic) (23.6k 分)
采纳于 用户: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!
...