|
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 binary version of Boost is 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.53 of boost. Since only the binaries are provided, you need to also download the headers from the Boost web site. The header version and the binary version must be the same. I download the file boost_1_49_0-vc32-bin.exe as well as the source code of Boost version 1.49 You can use the self-extraction facility or use your favorite archive manager. It contains a directory named lib32 with libraries for all Visual Studio versions. The only ones you need are those containing vc100 in their names. I extract lib32 into the folder C:\dev and then rename lib32 to libboost_1_49_0-32 Boost source code should be downloaded from the Boost web site http://www.boost.org/users/download/. I extract the source in C:\dev, a new directory named boost_1_49_0 is created. You then need to set the following two environment variables to point respectively to the path of the lib and the include BOOST_LIBRARYDIR=C:\dev\libboost_1_49_0-32 BOOST_INCLUDEDIR=C:\dev\boost_1_49_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_49_0-32 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 D:\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 Monday, 01-Jul-2013 18:50:45 MEST.
contact information
|