This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

It shows error lines like this =

b'In file included from platform\windows\oswindows.h:40:0,\r\n from platform\windows\godotwindows.cpp:32:\r\n./drivers/wasapi/audiodriverwasapi.h:40:25: fatal error: audioclient.h: No such file or directory\r\n #include <audioclient.h>\r\n ^\r\ncompilation terminated.\r\n'

Is there the reason this error happen?
And, how to fix it?

Godot version 3.2.3
in Engine by (12 points)

1 Answer

0 votes

audioclient.h is part of the Windows SDK. If your compiler can't find it the SDK is not setup correctly.

If you are using the visual studio code compiler the SDK is normaly part of the "Desktop development with C/C++" option in the installer. Just start the installer again select your version and click on change. Select "Desktop development with C/C++" and have a look at the right sidebar. There are all packages to install. One entry should say "Windows 10 SDK". Select the newest version and tick the box and install it.

If you are using an other compiler you have to setup the SDK for this compiler. Have a look on the Internet for that.

by (335 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.