This page is a quick guide to help Windows users to install CGAL. For more information please refer to the installation manual. General Prerequisites
Prerequisites for Compiling the 32-bit CGAL Library using Microsoft Visual Studio 2010BoostThe 32-bit and 64-bits binary versions of Boost are kindly provided by Tom Kent at http://boost.teeks99.com. Please note that the CGAL project is not responsible for the files provided on this web site. At the moment these lines were written, Tom provided binaries up to the release 1.54 of boost. Since boost version 1.54, Tom provides installers that install both boost headers and precompiled libraries. I download and run the file boost_1_54_0-msvc-10.0-32.exe I choose to extract the files to a new directory c:\dev\libboost_1_54_0 You then need to set the following two environment variables to point respectively to the path of the libraries and the headers BOOST_LIBRARYDIR=C:\dev\libboost_1_54_0\lib32-msvc-10.0 BOOST_INCLUDEDIR=C:\dev\libboost_1_54_0 You also need to add in your PATH environment variable, the path to the Boost dll's: I add to my PATH environment variable C:\dev\libboost_1_54_0\lib32-msvc-10.0 With other versions of Tom installers, the path to libraries may end
with Qt 4
I selected C:\Qt\4.8.2 so QTDIR is set to C:\Qt\4.8.2
I add C:\Qt\4.8.2\bin to my PATH To avoid any conflict with another dll with the same name from another folder, add this path as the first in the list. libQGLViewer
I extract the sources in C:\dev, a new directory is created C:\dev\libQGLViewer-2.3.17
I do cd C:\dev\libQGLViewer-2.3.17\QGLViewer
I do: qmake.exe nmake
I add C:\dev\libQGLViewer-2.3.17\QGLViewer\release;C:\dev\libQGLViewer-2.3.17\QGLViewer\debug to my PATH
I set the environment variable QGLVIEWERROOT to C:\dev\libQGLViewer-2.3.17
Prerequisites for Compiling the 64-bit CGAL Library Using Microsoft Visual Studio 2010BoostThe procedure for getting Boost is the same as described for the 32-bit version, but all "32" must be replaced by "64". Qt 4
I download qt-everywhere-opensource-src-4.8.2.tar.gz
I extract it to c:\dev. The directory c:\dev\qt-everywhere-opensource-src-4.8.2 has been created
cd c:\dev\qt-everywhere-opensource-src-4.8.2 configure.exe nmake sub-src nmake sub-tools
nmake clean
I set QTDIR=c:\dev\qt-everywhere-opensource-src-4.8.2
I add c:\dev\libraries\qt-everywhere-opensource-src-4.8.2\bin to the PATH libQGLViewerThe procedure is the same as for the 32-bit version. Building CGALRun the installer and select the version you want to install (this is only used to download the precompiled GMP and MPFR). In the "Setting Environment Variables" screen, uncheck CGAL_DIR. I choose C:\dev\CGAL-4.0 as installation directory You now need to compile CGAL
I set C:\dev\CGAL-4.0 for source and C:\dev\CGAL-4.0\build as binaries
In the directory C:\dev\CGAL-4.0\build a solution file named CGAL.sln has been created
I add to my PATH C:\dev\CGAL-4.0\build\bin Compiling an ExampleExamples need neither Qt 4, nor libQGLViewer
I set it to C:\dev\CGAL-4.0\example\Convex_hull_2
I set it to "C:\dev\CGAL-4.0\build-example\Convex_hull_2"
I open the file C:\dev\CGAL-4.0\build-examples\Convex_hull_2\Convex_hull_2_example.sln with Visual Studio 10
I open the C:\dev\CGAL-4.0\build-examples\Convex_hull_2\ch_timing.exe (the windows automatically close if not run from the console). Compiling a DemoDemos need Qt 4 and the 3D demos libQGLViewer.
I set it to C:\dev\CGAL-4.0\demo\Triangulation_3
I set it to "C:\dev\CGAL-4.0\build-demo\Triangulation_3"
I open the file C:\dev\CGAL-4.0\build-demo\Triangulation_3\Triangulation_3.sln with Visual Studio 10
Appendix: How to Set the PATH Variable or Other Environment Variables on Windows SystemsFrom the desktop, right-click My Computer and click properties (on Vista/Win7 click Advanced system settings on the left side).
C:\Program Files;C:\Winnt;C:\Winnt\System32
Last modified on Friday, 13-Feb-2015 11:41:07 CET.
contact information
|