Subject: CGAL users discussion list
List archive
- From: Stefan Salewski <>
- To:
- Subject: Re: [cgal-discuss] ruby c extensions and straight skeletons
- Date: Wed, 09 Oct 2013 01:44:49 +0200
On Wed, 2013-10-09 at 01:09 +0200, Noel Warren wrote:
> I can't believe it was that easy. Thanks Marc, easy when you know
> what
> you're doing. Having other problems now but they are more palatable.
> Cheers
What have you done exactly to solve your problem?
For me on Linux all is OK as I wrote, but it may be good to know the
problems on other OS.
I have examined the swig Ruby stuff too early this year, but my feeling
is that very good C++, CGAL and Swig knowledge is necessary to succeed
-- or an expert who does it.
I have just tested with Ruby 2.0, which is available for my Gentoo box,
but not fully supported currently.
I get
stefan@AMD64X2 ~/RAPOLLONIUS $ ruby test.rb
terminate called after throwing an instance of
'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
File: /usr/include/CGAL/Interval_nt.h
Line: 209
Explanation: Wrong rounding: did you forget the -frounding-math option
if you use GCC (or -fp-model strict for Intel)?
Aborted
Makefiles for Ruby 2 and Ruby 1.9.3 differ, so it seems to be not enough
to have
stefan@AMD64X2 ~/RAPOLLONIUS $ grep frounding extconf.rb
$CFLAGS += " -frounding-math"
There seems to be more important flags for Ruby 2.
Best regards
Stefan Salewski
- [cgal-discuss] ruby c extensions and straight skeletons, Noel Warren, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Marc Glisse, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Noel Warren, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Noel Warren, 10/09/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Stefan Salewski, 10/09/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Noel Warren, 10/09/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Stefan Salewski, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Noel Warren, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Stefan Salewski, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Stefan Salewski, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Stefan Salewski, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Sebastien Loriot (GeometryFactory), 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Noel Warren, 10/09/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Stefan Salewski, 10/08/2013
- Re: [cgal-discuss] ruby c extensions and straight skeletons, Marc Glisse, 10/08/2013
Archive powered by MHonArc 2.6.18.