在Visual2010上编译wxWidgets x64

2011.04.8 No Comments

在windows 2008 R2 上编译wxWidgets-2.9.1 x64

研究了很长一段时间才在win上编译成功x64的wxWidgets

首先进入VS10环境cmd,
开始菜单Start Menu->Programs->Microsoft Visual Studio 2010->Visual Studio Tools\Visual Studio x64 Win64 Command Prompt (2010)

进入你的wxWidgets编译目录
C:

cd wxWidgets-2.9.1-x64\build\msw

然后分别输入下面命令编译release和debug,最后生成的文件都在C:\wxWidgets-2.9.1-x64\lib\*

nmake -f makefile.vc BUILD=release SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=0 VENDOR=mrpt USE_OPENGL=1 TARGET_CPU=amd64

nmake -f makefile.vc BUILD=debug SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=1 VENDOR=mrpt USE_OPENGL=1 TARGET_CPU=amd64

nmake -f makefile.vc BUILD=release SHARED=1 RUNTIME_LIBS=static DEBUG_INFO=0 USE_OPENGL=1 TARGET_CPU=amd64

nmake -f makefile.vc BUILD=debug SHARED=1 RUNTIME_LIBS=static DEBUG_INFO=1 USE_OPENGL=1 TARGET_CPU=amd64

编译例子:

cd ../../samples

nmake -f makefile.vc BUILD=release TARGET_CPU=amd64

Leave a Reply
You must be logged in to post a comment.