Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL 4.1 make error Win7

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL 4.1 make error Win7


Chronological Thread 
  • From: mytien <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 4.1 make error Win7
  • Date: Thu, 3 Oct 2013 08:52:54 -0700 (PDT)

Hi,
I didn't answer your last post, because I failed to make any progress. But
today I gave it another go and finally managed to run make and make install
for CGAL.

This is what I did (Remember: for Windows 7, 64-bit with MinGW)
/you need CMake installed in a folder without spaces or braces, like
C:\dev\, and you need make for windows:
http://gnuwin32.sourceforge.net/packages/make.htm
/

*1. Boost:* From this git respository
https://github.com/pocb/boost/tree/cmake-1.48.0 download the .zip, unpack it
to a path without spaces or braces, e.g. C:\dev\ and follow the instructions
for Boost on this site:
http://pointclouds.org/documentation/tutorials/compiling_pcl_dependencies_windows.php#compiling-pcl-dependencies-windows

- only two changes: 1. choose MinGW Makefiles, 2. there is no need to set
the LIBPREFIX entry
- go into the Boost directory and run "mingw32-make" and then "mingw32-make
install".
- set the environment variable BOOST_ROOT to your boost folder (here it is
C:\dev\Boost)

*2. Eigen:* If I am not mistaken, this is not mandatory, but I think I will
need this. So Download it here:
http://bitbucket.org/eigen/eigen/get/3.2.0.tar.gz
Now I am not sure, if I did this right, but simply extract it and copy the
"Eigen" folder and the file "signature_of_eigen3_matrix_library" into your
MinGW\include. The signature file must not be moved into the "Eigen" folder
but goes directly into MinGW\include

*3. CGAL with GMP and MPFR:* Download the CGAL-4.2-Setup.exe for Windows to
a path without spaces or braces, e.g. C:\dev\

3.1. Download the static GMP library for MinGW here:
http://www.cs.nyu.edu/exact/core/gmp/gmp-static-mingw-4.1.tar.gz

3.2. Copy the include and lib files from CGAL-4.2\auxiliary\gmp\ into the
respective MinGW\lib and MinGW\include directories.

3.3. Copy the libgmp.a file from the static GMP library downloaded earlier
to MinGW\lib

*4. CGAL Configuration:* Restart CMake (so that it finds the newly defined
Boost environment variable) and set the two paths to your CGAL-folder (here
C:\dev\CGAL-4.2 and C:\dev\CGAL-4.2\build). If asked to create the "build"
directory, press "OK" and run "Configure" once.

4.1 Lots of red entries will appear. Set
GMP_INCLUDE_DIR and MPFR_INCLUDE_DIR to MinGW/include,
GMP_LIBRARIES to MinGW/lib/libgmp.a,
MPFR_LIBRARIES to MinGW/lib/libmpfr-4.lib
EIGEN_INCLUDE_DIR to C:/MinGW/include
EIGEN_VERSION_OK to TRUE
BOOST_INCLUDE_DIR to C:/dev/Boost/inlcude
BOOST_SYSTEM_LIBRARY_DEBUG to
C:/dev/Boost/lib/libboost_system-gcc34-mt-*d*-1.49.dll.a
BOOST_SYSTEM_LIBRARY_RELEASE to
C:/dev/Boost/lib/libboost_system-gcc34-mt-1.49.dll.a
BOOST_THREAD_LIBRARY_DEBUG to
C:/dev/Boost/lib/libboost_thread-gcc34-mt-*d*-1.49.dll.a
BOOST_THREAD_LIBRARY_RELEASE to
C:/dev/Boost/lib/libboost_thread-gcc34-mt-1.49.dll.a

4.2 Press Configure and Generate. Run make and make install in your
CGAL\build folder

The process finished for me without errors, as far as I know. By the way, I
had to use libgmp.a, because the list of errors I showed you before always
show up when I link against libgmp.lib.

Next I will try to run a test program to see if everything workes. Do you
think, this looks like a good procedure? Or do you think I could have done
something differently?

Greetings from Germany
My-Tien



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-4-1-make-error-Win7-tp4658063p4658125.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page