Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h
Chronological Thread
- From: Antonio Ferraz <>
- To:
- Subject: Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h
- Date: Wed, 16 Feb 2011 19:49:23 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=NcvcPDDGYOLOjiPF1NCQJWQFHRwvIqaSQSx4ByNsjYj0z/lifZ1xf3/DU9xTEtwQdE uBxLh/23ScUlgKrlBCBL2kmyAsevfwHSByN5VhO+Gz6IMER0VAD0eZ7UMjDyf8Jvk2lj 9Gor7M2yRN8MYsCLgDk6qMjevJB+riNVNKOrs=
Salut
Thanks for the reply.
It's sounds good, however ( i think) I have some Cmake problems
I added "-ftemplate-depth-1000" but unfortunately still the same error. When i look to the CMakeChache "-ftemplate-depth-50" stills there, so far, I use both
"-ftemplate-depth-50" and "-ftemplate-depth-1000". I do not know how to remove "-ftemplate-depth-50" from the compilation, despite the few hours looking for a answer.
I use also others libraries in the same project (ITK, OTB, LIDARFORMAT etc), and i dont know if the problem can rely on that. I had changed also , for example, "-ftemplate-depth-50" to "-ftemplate-depth-1000" on ITK CMakeList but nothing, impossible to kill "-ftemplate-depth-50"
Concerning the other question, I really have in "/usr/include/CGAL/compiler_config.h" "CGAL_USE_GMP 1" and " CGAL_USE_MPFR 1" defined.
I should have "-DCGAL_USE_GMP" and "-DCGAL_USE_MPFR" instead, as you said in the last reply?
Merci
Antonio
2011/2/16 Laurent Rineau (GeometryFactory) <>
Le mercredi 16 février 2011 13:07:05, tochaf a écrit :
> Hy
>
> I had installed libcgal 3.5.1-1 from synaptic on my ubuntu 10.4.
>
> Now, i able to use some functions of CGAL, as instance of:
>
> #include <CGAL/Constrained_Delaunay_triangulation_2.h>
> #include <CGAL/Triangulation_hierarchy_2.h>
> #include <CGAL/Constrained_triangulation_plus_2.h>
>
> However, when i try to use:
>
> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
>
> I lead to:
>
>
> /usr/include/boost/operators.hpp:129: error: template instantiation depth
> exceeds maximum of 50 (use -ftemplate-depth-NN to increase the maximum)
> instantiating ‘struct
> boost::equality_comparable2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::detail::empty_base<CGAL::Quotient<CGAL::MP_Float> > >’
> /usr/include/boost/operators.hpp:129: instantiated from
> ‘boost::less_than_comparable2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::equality_comparable2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::detail::empty_base<CGAL::Quotient<CGAL::MP_Float> > > >’
> /usr/include/boost/operators.hpp:409: instantiated from
> ‘boost::totally_ordered2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::detail::empty_base<CGAL::Quotient<CGAL::MP_Float> > >’
>
>
> and so on, a lot of errors.
>
> I use gcc as "compilator" in my eclipse projects.
>
> Thus, is it a gmp issue? Why
> Exact_predicates_inexact_constructions_kernel.h "doesnt work"?
This is not a GMP issue.
It seems your Eclipse project uses the compilation flag "-ftemplate-depth-50".
Modify the Eclipse project to remove it, or use "-ftemplate-depth-1000"
instead. You also absolutely need the compilation flag "-frounding-math" if
not present, and absolutelu NOT "-ffast-math" (remove it or use -fno-fast-math
instead).
Probably the CGAL::Exact_predicates_inexact_constructions_kernel needs more
than 50 levels of templates. I am not surprised because this kernel falls back
to an exact arithmetic using CGAL::Quotient<CGAL::MP_Float>, and that number
types uses the Boost.operators library (from www.boost.org), that needs a lot
of templates levels.
Note that it seems your CGAL installation is configured not to use GMP, but
CGAL::MP_Float instead for exact arithmetic. It would be better to configure
CGAL with GMP, because GMP is faster than the internal class CGAL::MP_Float.
You should add "-DCGAL_USE_GMP" and "-DCGAL_USE_MPFR" to your compilation
flags. Those flags you be in /usr/include/CGAL/compiler_config.h, and I wonder
why they are not defined...
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
Antonio Ferraz
------------------------------------------------------------
IPGP - Institut de Physique du Globe de Paris
Géophysique spatiale et planétaire - Bâtiment Lamarck
Case 7011, 35 rue Hélène Brion
75013 Paris, France
email:
----------------------------------------------------------------
IGN - Laboratoire MATIS
2-4 Avenue Pasteur, 94165 Saint Mandé cedex, France
Tel: 33 (0)1 43 98 80 00 + 84 36
email :
http://recherche.ign.fr/labos/matis/cv.php?prenom=Antonio&nom=Ferraz
- [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h, tochaf, 02/16/2011
- Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h, Laurent Rineau (GeometryFactory), 02/16/2011
- Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h, Antonio Ferraz, 02/16/2011
- Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h, Laurent Rineau (GeometryFactory), 02/16/2011
- Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h, Antonio Ferraz, 02/16/2011
- Re: [cgal-discuss] Problem + ubuntu 10.4 + Eclipse+ GMP + Exact_predicates_inexact_constructions_kernel.h, Laurent Rineau (GeometryFactory), 02/16/2011
Archive powered by MHonArc 2.6.16.