wxWidget-搭建开发环境
vs2019 wxWidget 3.1.3
解压路径是 E:\wxWidgets-3.1.3
设置系统环境变量:$(WXWIN) = E:\wxWidgets-3.1.3
编译
- Open a “Visual Studio Command Prompt” window
- Change directory to %WXWIN%\build\msw and type
nmake /f makefile.vcto build debug static version
ornmake /f makefile.vc BUILD=releaseto build release static version
ornmake /f makefile.vc BUILD=release SHARED=1release DLL version
orTARGET_CPU=X64for 64bit version - to verify your build, change the directory to %WXWIN%\samples\minimal and
run the same nmake command (with the same parameters there), this
should create a working minimal wxWidgets sample. - If you need to rebuild, use “clean” target first or “nmake /a”.
nmake /f makefile.vc clean
新建项目
- vs2019 新建空白项目
- 添加 include 和 lib 路径
$(WXWIN)\include\ |
- Linker 里面子系统改成 windows
- property manager 里面添加 $(WXWIN)\wxwidgets.props
- 添加代码
MainApp.h
|
MainApp.cpp
|