Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem with building CGAL 3.2.1 - possible GMP vs MPFR dependency issue

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem with building CGAL 3.2.1 - possible GMP vs MPFR dependency issue


Chronological Thread 
  • From: Peter Schüller <>
  • To:
  • Subject: Re: [cgal-discuss] Problem with building CGAL 3.2.1 - possible GMP vs MPFR dependency issue
  • Date: Mon, 19 Feb 2007 09:47:50 +0100

Sylvain Pion wrote:
Peter Schüller a écrit :

I have a problem building the latest CGAL-3.2.1. I have attached the
install.log

I assume the problem is that on my setup GMP is detected as "supported"
and MPFR as "not supported".

Because of GMP, include/CGAL/number_type_basic.h includes
include/CGAL/Gmpz.h

Gmpz.h unconditionally includes <mpfr.h> which leads to the errors.


Yes, if you select GMP support, you must have MPFR as well.

CGAL-3.1 built without problems.


Indeed, this is a change compared to 3.1.


The problem I have is: I did not select GMP to be built in, and I did not select MPFR to be built in.

I simply started ./install_cgal -i and it came up with autodetected settings of "GMP/GMPXX activated, MPFR deactivated".

If it is not possible to build CGAL with this setting, in my opinion the autodetection should not allow it.

But I was able to build the libraries by manually deactivating GMP/GMPXX and CORE support.



Archive powered by MHonArc 2.6.16.

Top of Page