完整文章:http://www.evernote.com/l/AQmZyTTCNhZN15op17DjHS0y5AvQtbQ7Bnk/
請準備下列檔案,注意下載時,統一X86或X64,以及所對應的系統或軟體
例如:CGAL4.8才有支持VS2015 (筆者沒試過CGAL4.8 IN VS2013)
以下是所需要的軟體清單:
環境變數path
.png)
設置libQGLViewer-2.6.3
D:\CGAL\libQGLViewer-2.6.3
執行 libQGLViewer-2.6.3.pro
並執行編譯
會產生
設置 CGAL-4.8-beta2:
以下是所需要的軟體清單:
- cmake-3.5.1-win32-x86.msi (沒有分x64或x86)
- boost_1_59_0-msvc-14.0-64.exe
- CGAL-4.8-beta2-Setup.exe
- libQGLViewer-2.6.3.zip
- qt-opensource-windows-x86-msvc2015_64-5.6.0.exe
安裝路徑:
我的經驗,盡量把所需要的東西放在同一個資料夾,這樣才比較不容易亂,以下路徑設置請參考。
會配合環境變數。
我的經驗,盡量把所需要的東西放在同一個資料夾,這樣才比較不容易亂,以下路徑設置請參考。
會配合環境變數。
- cmake-3.5.1-win32-x86.msi (沒有分x64或x86)
- 自動
- boost_1_59_0-msvc-14.0-64.exe
- D:\CGAL\boost_1_59_0
- CGAL-4.8-beta2-Setup.exe
- D:\CGAL\CGAL-4.8-beta2
- libQGLViewer-2.6.3.zip
- D:\CGAL\libQGLViewer-2.6.3
- qt-opensource-windows-x86-msvc2015_64-5.6.0.exe
- D:\CGAL\Qt5.6.0_VC2015_64
設置cmake-3.5.1-win32-x86.msi:
安裝路徑:自訂
新增path
安裝路徑:自訂
新增path
自訂變數

.png)
.png)
設置libQGLViewer-2.6.3
D:\CGAL\libQGLViewer-2.6.3
執行 libQGLViewer-2.6.3.pro
並執行編譯
會產生
.png)
自訂變數
.png)
環境變數path
.png)
設置 QT:
安裝選64位元
安裝選64位元
環境變數path
.png)
自訂變數
.png)
.png)
設置 CGAL-4.8-beta2:
配置CMAKE
.png)
.png)
請確認有的DIR 是否正確
若錯誤會顯示NOTFOUND
configure
若錯誤會顯示NOTFOUND
configure
genreate
在D:\CGAL\CGAL-4.8-beta2
執行CGAL.sln
在D:\CGAL\CGAL-4.8-beta2
執行CGAL.sln
點選批次編譯-> 勾選debug 和release
編譯
編譯
環境變數path
.png)
.png)
系統變數
.png)
.png)
環境倍數總整理path
.png)
參考資料:
http://www.cnblogs.com/kileyi/p/5004993.html
http://www.69900.com.cn/milkpku/article/details/50241361
http://www.69900.com.cn/milkpku/article/details/50241361