前提:
- 操作系统是windows
- 安装好visual studio .net 2008
- 安装好wxpack2.8.10
重新编译
假定wxpack2.8.10的安装目录是“C:/SourceCode”。首先进入命令行界面。然后,运行目录“C:/SourceCode/Libraries/wxWidgets2.8/build/msw”下wxBuild_wxWidgets.bat批处理文件。
下面是该程序命令行参数的说明,这里就不翻译了。
C:/SourceCode/Libraries/wxWidgets2.8/build/msw>wxBuild_wxWidgets.bat
ERROR OCCURED!
Not enough command line parameters.
wxBuild_wxWidgets v1.11
Build wxWidgets with the MinGW/Visual C++ Tool chains.
Usage: "wxBuild_wxWidgets.bat <Compiler{MINGW|VCTK|VC71|VC80|VC90}> <BuildTarget
{LIB|DLL|ALL|CLEAN|MOVE|NULL}> [Specific Option (See Below)]"
Compiler Options:
MINGW = MinGW Gcc v3.x.x compiler
MINGW4 = MinGW Gcc v4.x.x compiler
VCTK = Visual C++ 7.1 Toolkit
VC71 = Visual C++ 7.1
VC80 = Visual C++ 8.0
VC90 = Visual C++ 9.0
BuildTarget Options:
LIB = Builds all the static library targets.
DLL = Builds all the dynamic library targets.
ALL = Builds all the targets (Recommended).
CLEAN = Cleans the solution.
MOVE = Moves the binary files to a compiler specific directory.
This helps to allow for automated builds using compilers
from the same family. (ex. VC 7.1 and VC8.0))
NULL = Used so that you can specify a specific target. (See below)
Specific Options(Used with NULL):
LIB_DEBUG, LIB_RELEASE, LIB_DEBUG_UNICODE, LIB_RELEASE_UNICODE,
LIB_DEBUG_MONO, LIB_RELEASE_MONO, LIB_DEBUG_MONO_UNICODE,
LIB_RELEASE_MONO_UNICODE,
DLL_DEBUG, DLL_RELEASE, DLL_DEBUG_UNICODE, DLL_RELEASE_UNICODE,
DLL_DEBUG_MONO, DLL_RELEASE_MONO, DLL_DEBUG_MONO_UNICODE,
DLL_RELEASE_MONO_UNICODE
Examples:
wxBuild_default.bat MINGW ALL
Builds all targets with MinGW Gcc Compiler.
wxBuild_default.bat VCTK LIB
Builds just the static libraries with Visual C++ 7.1 Toolkit.
wxBuild_default.bat VCTK NULL LIB_RELEASE
Builds only the release static library with Visual C++ 7.1 Toolkit
C:/SourceCode/Libraries/wxWidgets2.8/build/msw>
运行“wxBuild_wxWidgets.bat vc90 ALL”。然后耐心等待编译结果吧...
欢迎支持阿爸阿妈超值优选