Subject: CGAL users discussion list
List archive
- From: Noel Warren <>
- To:
- Subject: Re: [cgal-discuss] ruby c extensions and straight skeletons
- Date: Wed, 9 Oct 2013 01:17:11 +0200
I regularly check the cgal-bindings project to see how it is going. I even tried contributing but SWIG is way over my head.
When not on windows I use a my own ruby-cgal bindings too (https://github.com/noelwarr/RGAL). I used Rice for the bindings but alas rice is *nix and mac only.
2013/10/8 Sebastien Loriot (GeometryFactory) <>
Just in case you don't know, there is the following project:
http://code.google.com/p/cgal-bindings/
which has experimental ruby support.
Sebastien.
On 10/08/2013 07:57 PM, Stefan Salewski wrote:
On Tue, 2013-10-08 at 18:39 +0200, Noel Warren wrote:
I want to compile
a Ruby C extension that uses some CGAL algorithms.
Compiles fine here -- without any changes:
This is for Ruby 1.9.3 and
gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)
stefan@AMD64X2 ~/tust $ cat extconf.rb
require 'mkmf'
if have_library("CGAL") and have_library("CGAL_Core") and
have_library("gmp")
$CFLAGS += " -frounding-math"
create_makefile("hello_world")
else
puts 'missing CGAL library'
end
ruby extconf.rb
checking for main() in -lCGAL... yes
checking for main() in -lCGAL_Core... yes
checking for main() in -lgmp... yes
creating Makefile
stefan@AMD64X2 ~/tust $ make
compiling rcgal_apollonius.cpp
compiling hello_world.cpp
linking shared-object hello_world.so
I did some Ruby CGAL bindings myself some time ago,
http://www.ssalewski.de/CDT.html.en
It works, but contains an error related to garbage collection and not
really nice code. I will fix that soon.
I think my latest Boost bindings are more clean,
http://www.ssalewski.de/RT.html.en
I am still learning...
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [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.