Audacity 2.3.3 compilation failure - W10 v1909 x64 - MSVS 2017; audacity.h can't open configwin.h

4-23-20

subject: Audacity 2.3.3 compilation failure - W10 v1909 x64 - MSVS 2017; can’t open configwin.h

MSVS 2017 reported build error details:

…[my audacity folder]…\src\audacity.h(145): fatal error C1083: Cannot open include file: ‘configwin.h’: No such file or directory
Done building project “Audacity.vcxproj” – FAILED.


my host platform:

Windows 10 Home version 1909 on Intel 64bit


my Audacity 2.3.3 build process:

Used instructions at> http://wiki.audacityteam.org/wiki/Building_On_Windows
except widgets, I used github’s: wxMSW-3.1.1-Setup.exe and .sln input to MSVS 2017


my software development assets:

MSVS 2017 (and unused alternate MSVS 2019)
MS Visual C++ 2015-2019 Redistributable (x64 and x86)
SDKs 10.0.17763.0 (and unused alternate 10.0.18362.0)
Git and Git Extensions
wxWidgets-3.1.1
https://github.com/wxWidgets/wxWidgets/releases/v3.1.1
wxMSW-3.1.1-Setup.exe → C:\wxWidgets-3.1.1
C:\wxWidgets-3.1.1\build\msw\wx_vc15.sln ← input to MSVS 2017
built all 4 libs (32 & 64, lib & dll)
wxWidgets-3.1.3
https://github.com/wxWidgets/wxWidgets/releases/tag/v3.1.3
wxMSW-3.1.3-Setup.exe → C:\wxWidgets-3.1.3
C:\wxWidgets-3.1.3\build\msw\wx_vc16.sln ← input to MSVS 2019
built all 4 libs (32 & 64, lib & dll)


my Audacity source download:

Clone Audacity from the Audacity GitHub project. (version 2.3.3)
https://github.com/audacity/audacity/


MSVS 2017 build process:

set system environment variable: $(WXWIN) C:\wxWidgets-3.1.1

audacity\win\audacity.sln ← MSVS 2017 solution file
Project Properties>
Configuration: Active(Release) Platform: Active(Win32)
General:
Windows SDK Version: 10.0.17763.0
Platform Toolset: Visual Studio 2017 (v141)
C/C++
General:
Additional Include Directories: $(WXWIN)\include\msvc
$(WXWIN)\include

Preprocessor
Preprocessor Definitions BUILDING_AUDACITY (definitions set by .sln ?)
FLAC__NO_DLL
XML_STATIC
__STDC_CONSTANT_MACROS
WXINTL_NO_GETTEXT_MACRO
WXUSINGDLL
WXMSW
Inherited values: _UNICODE
UNICODE

Linker
General:
Additional Library Directories: $(OutDir)
$(WXWIN)\lib\vc_dll
$(GSTREAMER_SDK)\lib

Build>
Configuration Manager:
Active Solution configuration: Release
Active Solution Platform: Win32
(default selection of projects - all except:“help”, “mod-null”, “mod-nyq-bench”)


I’m not sure when the wiki instructions were last updated. It may be worth checking if your steps match with these instructions: https://github.com/audacity/audacity/blob/master/win/build.txt

First, thanks for responding quickly.
I have read the web page you cited in your response.
It is the exact same page arrived at by the link I cited, http://wiki.audacityteam.org/wiki/Building_On_Windows (see the 22 April, 2020 posting date at the bottom of the page).
The text body of the instructions on the page are identical to those at https://github.com/audacity/audacity/blob/master/win/build.txt.
The instructions are also identical to those within the audacity source code’s “README.txt”.

I think my procedure is per instructions.
I think my wxWidgets (built error free with MSVS 2017), SDK or MSVS are good installations.

I am guessing that since audacity.h line 145 can’t find configwin.h…
#ifdef WXMSW
#include “configwin.h” <— line 145
#undef PLATFORM_MAX_PATH
#define PLATFORM_MAX_PATH MAX_PATH
#endif
…there is a some obscure order of preprocessor #define, #undef, #ifdef, etc. and some consequent compilation order dependency.

I listed the MSVS configuration preprocessor definitions.
I am new to MSVS so is my guess the definitions were populated from audacity.sln.
Might there be additional necessary definitions?

Do you have access to a W10 platform configured with wxWidgets3.1.1, 2017 SDK and MSVS?

thanks again