Once you have downloaded the file CGAL-5.6. You can also obtain the CGAL library sources directly from. On Linux distributions such as Debian/ Ubuntu/ Mint, use apt-get in the following way: sudo apt-get install libcgal-devįor other distributions or package manager, please consult your respective documentation. On macOS, we recommend using of Homebrew in the following way: brew install cgal On most operating systems, package managers offer CGAL and its essential third party dependencies. The examples and demos of CGAL are not included when you install CGAL with a package manager, and must be downloaded here. You may also download the sources of CGAL directly, but it is then your responsibility to independently acquire these dependencies. We recommend using a package manager as this will ensure that all essential third party dependencies are present, and with the correct versions. Optional third-party software might be required to build examples and demos shipped with CGAL, or to build your own project using CGAL, see Section Optional Third Party Libraries.ĬGAL can be obtained through different channels. GNU Multiple Precision Arithmetic (GMP) and GNU Multiple Precision Floating-Point Reliably (MPFR) Libraries.Using CGAL requires a few core components to be previously installed:Ī supported compiler (see Section Supported Compilers), In a less ideal world, you might have to install some required tools and third-party libraries. The script cgal_create_CMakeLists and its options are detailed in Section Creating a CMake Script for a Program Using CGAL. Path/to/cgal/Scripts/scripts/cgal_create_CMakeLists -s your_program # configure the examplesĬompiling your own program is similar: cd /path/to/your/program Quick Start: Compiling a Program using CGALĪssuming that you have obtained CGAL through one of the package managers offering CGAL on your platform (see Section Downloading CGAL), you can download CGAL examples ( ) and the compilation of an example is as simple as: cd $HOME/CGAL-5.6/examples/Triangulation_2 # go to an example directoryĬmake -DCMAKE_BUILD_TYPE=Release. However, some dependencies of CGAL might still need to be installed. If you have a question, please visit the discourse forum.Since CGAL version 5.0, CGAL is header-only be default, which means that there is no need to build CGAL before it can be used. Please note that the tracker is NOT meant for CMake questions. If you experience any technical issues that need to be addressed by a CMake developer, let us know by using the issue tracker. We offer flexible, paid support options to meet your needs. Kitware can provide guidance, answer technical questions, and help resolve issues you may run into when using the platform. These FAQs are located on the CMake Community Wiki. The CMake FAQ page covers the most frequently asked questions about the platform, including running it, writing files, and library and installation questions. Feel free to ask questions and spark conversations with other CMake users and developers. The CMake discourse forum is where you can go if you need help using the platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |