how to install cgal

23
How to install CGAL •Yuanzhen Wang

Upload: yakov

Post on 12-Jan-2016

104 views

Category:

Documents


0 download

DESCRIPTION

Yuanzhen Wang. How to install CGAL. What is CGAL. Computational Geometry Algorithms Library “Provide easy access to efficient and reliable geometric algorithms in the form of a C++ library” Current Version: 3.6.1 3.7-beta1 License Open Source OS Windows, Unix-like systems and MacOS X. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: How to install CGAL

How to install CGAL

•Yuanzhen Wang

Page 2: How to install CGAL

What is CGAL

Computational Geometry Algorithms Library “Provide easy access to efficient and reliable

geometric algorithms in the form of a C++ library” Current Version:

3.6.1 3.7-beta1

License Open Source

OS Windows, Unix-like systems and MacOS X

Page 3: How to install CGAL

What does CGAL offers

Data structures & Algorithms Triangulations Mesh generation Geometry Processing More on this link:http://www.cgal.org/Manual/latest/doc_html/

cgal_manual/packages.html#Part:Polyhedra

Page 4: How to install CGAL

How to install CGAL

Prerequisites Compilers Cmake Boost/Boostpro Miscellaneous ( like QT)

Configuring CGAL Compiling

Page 5: How to install CGAL

Prerequisites

Compiler Visual Studio 2005 and/or Visual Studio 2008

Cmake A cross-platform software Generate project solution file for different

platforms e.g. .sln file for Visual Studio; make file in linux

Boost Powerful library for extending the C++ STL

Page 6: How to install CGAL

CMake

Download http://www.cmake.org/cmake/resources/

software.html Install Time

5 min

Page 7: How to install CGAL

BoostPro

Download http://www.boostpro.com/download/

Install Time

2 hours Depends onnetwork speed

Page 8: How to install CGAL

Configuring CGAL

Reboot before configuring CGAL Open Cmake-gui Choose where is the CGAL source code Choose where to put the project solution files

Page 9: How to install CGAL
Page 10: How to install CGAL

Configuring CGAL

Click “configure” Cmake will pop-up a windows to let you

choose your compiler.

Page 11: How to install CGAL
Page 12: How to install CGAL

Configuring CGAL

Hopefully, everything is OK. And you will see“Configuring done”

Page 13: How to install CGAL
Page 14: How to install CGAL

Configuring CGAL

However, it's possible to see some error information. e.g. can not find BOOST_INCLUDE_DIR

You have to add this entry manually. Click “add entry” Input the entry's name showed in the error

message Choose type of that entry Give value to that entry

Page 15: How to install CGAL
Page 16: How to install CGAL

Configuring CGAL

Then click “Configure” again. The “Generate” button should be available

now.

Page 17: How to install CGAL
Page 18: How to install CGAL

Configuring CGAL

Go the directory which is input at the first step.

The .sln solution file should be there.

Page 19: How to install CGAL
Page 20: How to install CGAL

Compiling CGAL

Simply open the CGAL.sln file. Choose “Rebuild all”

Page 21: How to install CGAL
Page 22: How to install CGAL

Compiling CGAL

Rebuid “INSTALL”separately It completes two jobs:

Copy source codes Copy compiled libs

Page 23: How to install CGAL

We’re done!