1. 安装Visual Studio 2008

2. 安装Qt:
qt-win-opensource-4.7.1-vs2008.exe只包含了32位库(x86),没有64位(x64),需要重新下载源代码进行编译。
为了编译64位qt,需要执行“Microsoft Visual Studio 2008\Visual Studio Tools\Visual Studio 2008 x64 Win64命令提示",进入64位编译环境,然后:
cd /D D:\TechPro\Utilities\qt-everywhere-opensource-4.8.4
configure
nmake
编译过程中出错:
platform\DefaultLocalizationStrategy.cpp(327) : error C2001: newline in constant
platform\DefaultLocalizationStrategy.cpp(327) : fatal error C1057: unexpected end of file in macro expansion
这个错误的原因是因为代码里面的非英文的引号造成的。源文件为“src\3rdparty\webkit\Source\WebCore\platform\DefaultLocalizationStrategy.cpp”,原始的错误代码如下:
return WEB_UI_STRING("Look Up “”", "Look Up context menu item with selected word").replace("", truncatedStringForLookupMenuItem(selectedString));
单词前后的引号造成编译报错。修改成下面的代码
return WEB_UI_STRING("Look Up \"\"", "Look Up context menu item with selected word").replace("", truncatedStringForLookupMenuItem(selectedString));
Note: If you later need to reconfigure and rebuild Qt from the same location, ensure that all traces of the previous configuration are removed by entering the build directory and typing
nmake distclean
before running configure again.
3. 安装Qt-VS-ADDIN: qt-vs-addin-1.1.7.exe  ---> C:\Program Files(x86)\Nokia\Qt4VSAddin
4. 安装QXmlEdit  ---> C:\Program Files(x86)\QXmlEdit
5. 安装CMake: cmake-2.8.10.2-win32-x86.zip ---> C:\Program Fils (x86)\CMake 2.8.10.2-win32-x86
6. 安装Python: python-3.3.0.amd64.msi ---> Python33
7. 编译vkt
源代码路径:D:\TechPro\Utilities\vtk-5.4.2
构建路径:D:\Build\vtk
Generator:  Visual Studio 9 2008 Win64
BUILD_SHARED_LIBS
VTK_USE-GUISUPPORT
VTK_USE_QVTK
DESIRED_QT_VERSION  4
8. 编译boost
下载boost_1_52_0.zip ---> D:\TechPro\Utilities\boost_1_52
.\bootstrap.bat
.\b2 --toolset=msvc-9.0 address-model=64 --build-type=complete
.\b2 install
将 D:\TechPro\Utilities\boost_1_52\lib下的所有内容拷贝到c:\Boost\lib下。
设置环境变量:
BOOST_INCLUDEDIR: C:\Boost\include\boost-1_52
BOOST_LIBRARYDIR: C:\Boost\lib
PeneBlast构建系统将自动通过这两个变量寻找BOOST。
9. 安装CGal库
CGAL-4.1-Setup.exe --->  D:\TechPro\Utilities\CGAL-4.1
CMake   D:\TechPro\Utilities\CGAL-4.1 D:\TechPro\Utilities\CGAL-4.1\build
设置环境变量:
CGALROOT:D:\TechPro\Utilities\CGAL-4.1
PeneBlast构建系统将在通过这个变量寻找CGAL,且必须在$CGALROOT$\build下构建CGAL
11. 64位PeneBlast, MPM3DPP编译通过。

用户登录