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 //}
編譯