|
1.安装python2.7,perl,vs2012,cmake
2.编译Qt:
configure -prefix d:\qt\qt5.0.1 -opensource -platform win32-msvc2012 -mp -debug-and-release -opengl desktop
nmake -i
nmake install
nmake clean
3.编译BOOST:
bootstrap.bat
bjam -toolset=msvc address-model=64 --with-system --with-thread --build-type=complete
设置环境变量BOOST_ROOT
4.运行下载的CGAL-4.1-Setup.exe,其中带了gmp和mpfr两个函数库,省去了自己安装
5.运行cmake-gui,configure,generate
6.打开cgal.sln,vs2012对c++11的支持不全,找不到std::isfinite()和ilogb()
修改CGAL\CORE\filter.h:
//---modified --{
#define CGAL_CFG_NO_CPP0X_ISFINITE
//}
#if !defined CGAL_CFG_NO_CPP0X_ISFINITE
#define CGAL_CORE_finite(x) std::isfinite(x)
#elif defined (_MSC_VER) || defined (__MINGW32__) // add support for MinGW
#define CGAL_CORE_finite(x) _finite(x)
#define ilogb(x) (int)_logb(x)
#else
#define CGAL_CORE_finite(x) finite(x)
#endif
//---modified --{
#undef CGAL_CFG_NO_CPP0X_ISFINITE
//}
编译 |
|
|