Subject: CGAL users discussion list
List archive
- From: Iordan Iordanov <>
- To:
- Subject: Re: [cgal-discuss] Error when compiling with LEDA
- Date: Mon, 27 Feb 2017 11:20:20 +0100 (CET)
Hello all,
I have another problem related to this thread. Since last sime,
I was able to compile CGAL with LEDA, however I am unable to
compile any simple program using LEDA from CGAL. I tried to
investigate, but without positive results.
Please find attached to this message the output produced by make.
I should mention that initially I thought that I was using LEDA
incorrectly. I tried to compile the test leda_real in the package
Number_types, and I get the _same_ errors. In fact, I get the same
errors for any LEDA-related tests.
On the other hand, I tried compiling the tests/examples shipped
with LEDA itself, and it works just fine.
I have installed LEDA in the system folders, so I want to believe
there is no doubt that it is being detected, cmake confirms this.
Thank you,
--
- Iordan
----- Original Message -----
> From: "Iordan Iordanov"
> <>
> To:
>
> Sent: Friday, 24 February, 2017 3:00:22 PM
> Subject: Re: [cgal-discuss] Error when compiling with LEDA
>
> Hello Marc,
>
> Thank you for the comment!
> Indeed, I got into the log file and there was an error about X11,
> it couldn't find the library. I provided the path and I was able
> to compile CGAL.
>
> Best,
> --
> - Iordan
>
> ----- Original Message -----
> > From: "Marc Glisse"
> > <>
> > To:
> >
> > Sent: Friday, 24 February, 2017 2:22:11 PM
> > Subject: Re: [cgal-discuss] Error when compiling with LEDA
> >
> > On Fri, 24 Feb 2017, Iordan Iordanov wrote:
> >
> > > Hi Sebastien,
> > >
> > > I am actually using ccmake for the configuration step, but this is
> > > what I do, yes. I had not tried disabling GMP; I did it now, but there
> > > is no difference in the output, it still fails.
> > > It will perhaps be useful to give you the trace for the first error:
> > >
> > >>> make
> > > Scanning dependencies of target CGAL
> > > [ 4%] Building CXX object
> > > Installation/src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
> > > In file included from
> > > /Users/iordanov/Documents/Code/builds/cgal-leda/Installation/src/CGAL/all_files.cpp:1:
> > > In file included from
> > > /Users/iordanov/Documents/Code/cgal-INRIA/Geomview/src/CGAL/Geomview_stream.cpp:27:
> > > In file included from
> > > /Users/iordanov/Documents/Code/cgal-INRIA/Geomview/include/CGAL/IO/Geomview_stream.h:28:
> > > In file included from
> > > /Users/iordanov/Documents/Code/cgal-INRIA/Kernel_23/include/CGAL/basic.h:29:
> > > /Users/iordanov/Documents/Code/cgal-INRIA/Installation/include/CGAL/config.h:251:4:
> > > error: "This compiler does not have a working STL"
> > > # error "This compiler does not have a working STL"
> > > ^
> > >
> > > Is it possible that the error has to do with Geomview? Or is it
> > > even deeper, in the Kernel_23?
> >
> > The error is long before that. If you look at the cmake output, you may
> > notice that all "Performing Test CGAL_CFG_*" failed. You need to find out
> > why they are failing (cmake probably leaves a log somewhere, or has some
> > verbose option or something).
> >
> > --
> > Marc Glisse
> >
> > --
> > You are currently subscribed to cgal-discuss.
> > To unsubscribe or access the archives, go to
> > https://sympa.inria.fr/sympa/info/cgal-discuss
> >
> >
> >
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
>
iordanov@lor120r:~/Documents/Code/builds/tests-leda$ make test_p4ht2_insertion
Scanning dependencies of target test_p4ht2_insertion
[ 50%] Building CXX object
CMakeFiles/test_p4ht2_insertion.dir/test_p4ht2_insertion.cpp.o
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_insertion.cpp:12:
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_real.h:66:37:
error: no member named 'root' in namespace 'leda'
return CGAL_LEDA_SCOPE::root( x, k);
~~~~~~~~~~~~~~~~~^
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_insertion.cpp:12:
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_real.h:226:
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_integer.h:65:18:
error: no member named 'gcd' in namespace 'leda'; did you mean simply 'gcd'?
return CGAL_LEDA_SCOPE::gcd( x, y );
^~~~~~~~~~~~~~~~~~~~
gcd
/Users/iordanov/Documents/Code/cgal-INRIA/LEDA/include/CGAL/LEDA_basic.h:39:28:
note: expanded from macro 'CGAL_LEDA_SCOPE'
# define CGAL_LEDA_SCOPE leda
^
/Users/iordanov/Documents/Code/cgal-INRIA/Algebraic_foundations/include/CGAL/number_utils.h:141:1:
note: 'gcd' declared here
gcd( const A& x, const B& y ) {
^
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_insertion.cpp:12:
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_real.h:226:
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_integer.h:123:18:
error: call to 'sqrt' is ambiguous
return CGAL_LEDA_SCOPE::sqrt( x );
^~~~~~~~~~~~~~~~~~~~~
/Users/iordanov/Documents/Code/cgal-INRIA/LEDA/include/CGAL/LEDA_basic.h:39:28:
note: expanded from macro 'CGAL_LEDA_SCOPE'
# define CGAL_LEDA_SCOPE leda
^
/usr/local/include/LEDA/numbers/bigfloat.h:707:17: note: candidate function
inline bigfloat sqrt(const bigfloat& x,
^
/usr/local/include/LEDA/numbers/real.h:487:20: note: candidate function
__exportF real sqrt(const real& x);
^
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_insertion.cpp:12:
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_real.h:226:
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_integer.h:136:20:
error: call to 'abs' is ambiguous
return CGAL_LEDA_SCOPE::abs( x );
^~~~~~~~~~~~~~~~~~~~
/Users/iordanov/Documents/Code/cgal-INRIA/LEDA/include/CGAL/LEDA_basic.h:39:28:
note: expanded from macro 'CGAL_LEDA_SCOPE'
# define CGAL_LEDA_SCOPE leda
^
/usr/local/include/LEDA/numbers/bigfloat.h:658:22: note: candidate function
__exportF bigfloat abs(const bigfloat &x);
^
/usr/local/include/LEDA/numbers/real.h:535:21: note: candidate function
__exportF real abs(const real& x);
^
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Periodic_4_hyperbolic_triangulation_2/test/Periodic_4_hyperbolic_triangulation_2/test_p4ht2_insertion.cpp:12:
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_real.h:226:
In file included from
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_integer.h:260:
/Users/iordanov/Documents/Code/cgal-INRIA/Number_types/include/CGAL/leda_rational.h:83:20:
error: no viable conversion from 'leda::real' to 'Type' (aka
'leda::rational')
return CGAL_LEDA_SCOPE::abs( x );
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/iordanov/Documents/Code/cgal-INRIA/LEDA/include/CGAL/LEDA_basic.h:39:28:
note: expanded from macro 'CGAL_LEDA_SCOPE'
# define CGAL_LEDA_SCOPE leda
^
/usr/local/include/LEDA/numbers/rational.h:60:3: note: candidate constructor
not viable: no known conversion from 'leda::real' to 'leda::integer' for 1st
argument
rational(integer n) : num(n), den(1) {}
^
/usr/local/include/LEDA/numbers/rational.h:77:3: note: candidate constructor
not viable: no known conversion from 'leda::real' to 'double' for 1st argument
rational(double x);
^
/usr/local/include/LEDA/numbers/rational.h:81:3: note: candidate constructor
not viable: no known conversion from 'leda::real' to 'const leda::rational &'
for 1st argument
rational(const rational& r) : num(r.num), den(r.den) {}
^
5 errors generated.
make[3]: *** [CMakeFiles/test_p4ht2_insertion.dir/test_p4ht2_insertion.cpp.o]
Error 1
make[2]: *** [CMakeFiles/test_p4ht2_insertion.dir/all] Error 2
make[1]: *** [CMakeFiles/test_p4ht2_insertion.dir/rule] Error 2
make: *** [test_p4ht2_insertion] Error 2
- [cgal-discuss] Error when compiling with LEDA, Iordan Iordanov, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Sebastien Loriot (GeometryFactory), 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Iordan Iordanov, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Marc Glisse, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Iordan Iordanov, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Iordan Iordanov, 02/27/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Iordan Iordanov, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Marc Glisse, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Iordan Iordanov, 02/24/2017
- Re: [cgal-discuss] Error when compiling with LEDA, Sebastien Loriot (GeometryFactory), 02/24/2017
Archive powered by MHonArc 2.6.18.