I have a Windows 10 Lenovo IdeaPad S340 and I downloaded and unzipped wxWidgets-3.1.4 into C:\wxWidgets-3.1.4
I defined the system variable WXWIN to be C:\wxWidgets-3.1.4
To build, I am using the instructions on https://docs.wxwidgets.org/trunk/plat_msw_install.html
All makefiles and project are located in build directory.
Microsoft Visual C++ Compilation
From command line using the provided makefiles:
0. Open a "Visual Studio Command Prompt" window shortcut to which must have been installed to the "Start" menu or the "Start" screen by MSVS installation.
Change directory to %WXWIN% and type
> nmake /f makefile.vc
to build wxWidgets in the default debug configuration as a static library.
Since the makefile is actually located in the platform specific directory under build, I ran nmake as follows:
nmake /f build\msw\makefile.vc
When I do that, I get the following error:
However, I can see that the file is clearly there.if not exist ..\..\include\wx\msw\setup.h copy ..\..\include\wx\msw\setup0.h ..\..\include\wx\msw\setup.h
The system cannot find the path specified.
NMAKE : fatal error U1077: 'if' : return code '0x1'
Please see the image at the bottom of this post.
I also noticed that makefile.vc contains the lines:
I created a system variable WXUNIV and set it to 0 (zero)!if "$(WXUNIV)" == "0"
__SETUP_H_SUBDIR_FILENAMES = msw
!if "$(WXUNIV)" == "1"
__SETUP_H_SUBDIR_FILENAMES = univ
but that didn't help.
Does anyone know what I'm doing wrong?