【cgal4.4编译以及安装】

[https://doc.cgal.org/4.4/Manual/installation.html#secprerequisites]
cgal4.4编译以及安装

系统要求

5 Supported Compilers
In order to build the CGAL libraries, you need a C++ compiler. CGAL 4.4 is supported for the following compilers/operating systems:

Compiler Operating System
Gnu g++ 3.4 or later[2] Linux / MacOS X
MS Windows 95/98/2000/XP/NT4
Intel C++ 11.0 or later[3] Linux
MS Visual C++ 9.0, 10.0, 11.0 (Visual Studio 2008, 2010 and 2012)[4] MS Windows 95/98/2000/XP/NT4/Vista/7/8

系统要求2cmake

CMake version 2.6.2 or higher is required.

CMAKE_CXX_FLAGS_DEBUG=/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1
CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG
C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe
BUILD_SHARED_LIBS:BOOL=OFF

D:\Cgal\cmake\boost_1_55_0_vc80\boost_1_55_0\tools\build\v2
注意

以下vs2008

6)使用bjam之前需要修改配置文件user-config.jam。搜索或直接打开D:/Boost/tools/build/v2/user-config.jam 。
 
首先找到以下模块:
 
# ----------------------
# MSVC configuration.
 
# ----------------------
 
修改该模块最后一行,去掉注释的“#”号,将msvc版本设置正确:
 
# Configure specific msvc version (searched for in standard locations and PATH).
 using msvc : 9.0 ;
 


其次找到以下模块:

# ----------------------
# STLPort configuration.
# ----------------------
 
修改该模块最后一行,如:
 
# Configure specifying location of both headers and libraries explicitly.
 using stlport : 5.2.1 : "D:/STLport/stlport" : "D:/STLport/lib" ;
 
7)进入Boost根目录,如执行命令: " cd d:/Boost  " 。
 
8)执行命令: " bjam --toolset=msvc --build-type=complete stdlib=stlport stage  "
 
9)编译成功后可在 D:/Boost/stage/lib 目录下找到所有的库文件,之后可将D:/Boost/bin.v2目录删除以节约空间。

你可能感兴趣的:(Cgal,windows,c++,microsoft)