Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Can't locate 'gmpxx.h' (included in 'CGAL\gmpxx.h')

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Can't locate 'gmpxx.h' (included in 'CGAL\gmpxx.h')


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Can't locate 'gmpxx.h' (included in 'CGAL\gmpxx.h')
  • Date: Mon, 18 Jun 2012 17:25:37 +0200
  • Organization: GeometryFactory

Le lundi 18 juin 2012 16:29:49

a écrit :
> Hey folks.
>
> I'm trying to compile something that uses CGAL (Win7 SP1 x64, CGAL 4.0 x64,
> boost_1_49_0 x64, Qt 4.8.2 x64, MSVC2010 x64 w/ SDK 7.1 compilers). The
> project in question actually involves MEX files and Matlab 7.12.0, as well,
> but I don't think any of that is the source of this particular issue.
>
> You see, I'm getting an error:
>
> C:\Program Files\CGAL-4.0x64\include\CGAL/gmpxx.h(34) : fatal error C1083:
> Cannot open include file: 'gmpxx.h': No such file or directory
>
> Now, the file 'CGAL\gmpxx.h' does exist. It includes 'gmpxx.h', which
> appears to be the file from GMP:
> http://www.mpi-inf.mpg.de/projects/exacus/Exacus/exacus-0.9.1/exacus-0.9.1/N
> umeriX/doc/html/gmpxx_8h-source.html
>
> However, when I search for gmpxx.h, the only files with that name are the
> version from my CGAL installation in %CGAL_DIR%\include\CGAL and the version
> from the old x86 installation of CGAL I haven't bothered deleting yet.
>
> It appears there are some test-type .cpp files in boost that look for
> gmpxx.h as well (AstroGrep returns files named has_gmpxx.cpp in
> %BOOST_ROOT%\libs\math\config and test_common_factor_gmpxx.cpp in
> %BOOST_ROOT%\libs\math\test. Nothing in the boost install failed and
> nothing in the CGAL install seemed to fail, either...
>
>
> So, I guess what I want to know is: Where should gmpxx.h be? Did gmp not
> install correctly from the pre-compiled binaries included with CGAL 4.0? Is
> this an x64 problem? Should I just compile my own version of 64-bit GMP?

The precompiled binaries of GMP downloaded by the CGAL-4.0 Windows installer
have gmpxx disabled.

Without gmpxx, GMP is a C library, and that allows use to built only two
versions: one for 32 bits, and one for 64 bits. The C ABI is simple. If we
had
enabled the gmpxx support of GMP, because of the C++ ABI, we would have had
to
build a lot of different versions, so that we have:
- different builds for 32 bits and 64 bits,
- different builds for vc9 and vc10 (and soon vc11),
- different builds for release and debug.

That means at least 8 different builds instead of two.

That is why we decided not to support gmpxx in our precompiled binaries. If
you want it, you will have to compile GMP yourself. We are sorry for the
inconvenience.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page