win7 64bit + vs2012 + Qt5.0.1 + CGAL4.1


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

  編譯


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM