dbetz wrote:
I just followed the instructions in the docs\msw\install.txt file and it didn't say anything about setting up a build environment. How do I do that?
I meant what the docs describe as step 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.
I call the batch file directly, e.g. for the 32-bit build of the library I have a batch file that when simplified a lot looks something like this (please notice I am using the Express edition, so the path would be different for you)
Code: Select all
cd %WXWIN%\build\MSW
set "VSCMD_START_DIR=%cd%"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Auxiliary\Build\vcvars32.bat"
nmake -f makefile.vc BUILD=debug
nmake -f makefile.vc BUILD=release
For the 64-bit build the third line from above is replaced with
Code: Select all
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
But if you followed exactly same procedure for building both the library and the sample, I do not see how it could have failed...
If you do not need to customize the build, building with the IDE (or msbuild) can be (much) faster as it uses parallel building.
BTW, there is CMake-based build which can be quite handy. It offers superior options and friendliness (with CMakeGUI) for customization and can produce both nmakefiles and MSVC solutions.