libcgal-dev requires updated dependencies

Bug #158159 reported by J.D.
6
Affects Status Importance Assigned to Milestone
cgal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: libcgal-dev

As stated in the CGAL Installation documentation, (http://www.cgal.org/Manual/3.3/doc_html/installation_manual/Chapter_installation_manual.html#Section_2),

"Having GMP version 4.1.4 or later and MPFR version 2.0.1 or later installed is highly recommended. These libraries can be obtained from http://gmplib.org/ and http://www.mpfr.org/, respectively, if they should not be present on your system. Note that MPFR used to be included with GMP up to GMP version 4.1.X, but it is not
included anymore starting from GMP 4.2. Within CGAL, support for GMP requires also MPFR and vice versa."

I believe the dependence on GMP >4.1.1 is more than just "highly recommended". I recently got the following compile errors while building one of the examples from the CGAL manual.. The errors are all related to stuff missing in GMP releated files. I can include the code I used to generate the errors but it comes directly (unedited) from section 45.3.5 of their manual (the user-defined distance and point class). Although, I am sure other examples would produce similar errors.

/usr/include/CGAL/gmpxx_coercion_traits.h:44: error: ‘::__gmp_expr’ has not been declared
/usr/include/CGAL/gmpxx_coercion_traits.h:44: error: ‘::__gmp_expr’ has not been declared
/usr/include/CGAL/gmpxx_coercion_traits.h:44: error: template argument 1 is invalid
... [Lines omitted] ...
/usr/include/CGAL/gmpxx_coercion_traits.h:106: error: wrong number of template arguments (3, should be 2)
/usr/include/CGAL/Coercion_traits.h:155: error: provided for ‘template<class A, class B> struct CGAL::Coercion_traits’
/usr/include/CGAL/gmpxx_coercion_traits.h:106: error: expected unqualified-id before ‘>’ token
/usr/include/CGAL/mpz_class.h:50: error: ‘mpz_class’ was not declared in this scope
/usr/include/CGAL/mpz_class.h:50: error: template argument 1 is invalid
... [Lines omitted] ...
/usr/include/CGAL/mpq_class.h:49: error: ‘mpq_class’ was not declared in this scope
/usr/include/CGAL/mpq_class.h:49: error: template argument 1 is invalid
... [Lines omitted] ...
/usr/include/CGAL/Algebraic_structure_traits.h:66: error: provided for ‘template<class Type_> class CGAL::Algebraic_structure_traits’
/usr/include/CGAL/gmpxx.h:54: error: expected unqualified-id before ‘>’ token
/usr/include/CGAL/gmpxx.h:58: error: ‘::__gmp_expr’ has not been declared
/usr/include/CGAL/gmpxx.h:58: error: ‘::__gmp_expr’ has not been declared
/usr/include/CGAL/gmpxx.h:58: error: template argument 1 is invalid
/usr/include/CGAL/gmpxx.h:58: error: expected unqualified-id before ‘>’ token

Revision history for this message
J.D. (yamokosk) wrote :

Here is the source code which produced the problem.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hi,

what version of ligcgal-dev do you have installed? The hardy version does have depends on libmpfr-dev and libgmp3-dev, however not requiring a specific version.

Thanks,
     Stefan.

StefanPotyra (sistpoty)
Changed in cgal:
status: New → Incomplete
Revision history for this message
Mackenzie Morgan (maco.m) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in cgal:
status: Incomplete → Invalid
Revision history for this message
David Roberts (david.roberts) wrote :

I was also having this problem. However, removing "/usr/include/CGAL/" from the directories to be searched for headers by the compiler fixed the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.