remogatto / ffi-opengl Goto Github PK
View Code? Open in Web Editor NEWA ruby-ffi binding to OpenGL libraries
A ruby-ffi binding to OpenGL libraries
could you release a gemcutter/rubyforge gem? github gems are dead these days :(
The "gears.rb" example results in a Segmentation Fault after running for approx. 5 seconds (The "spinning_cube.rb" works fine). Here's the output of running the script with ruby -dw
:
Exception `LoadError' at /opt/rubies/ruby-1.9.1-p429/lib/ruby/gems/1.9.1/gems/ffi-0.6.3/lib/ffi.rb:5 - no such file to load -- 1.9/ffi_c
gears.rb:323: [BUG] Segmentation fault
ruby 1.9.1p429 (2010-07-02 revision 28523) [x86_64-linux]
-- control frame ----------
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :glutMainLoop
c:0004 p:0011 s:0009 b:0009 l:000008 d:000008 METHOD gears.rb:323
c:0003 p:0099 s:0006 b:0006 l:002168 d:000da8 EVAL gears.rb:328
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002168 d:002168 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
gears.rb:323:in `glutMainLoop'
gears.rb:323:in `start'
gears.rb:328:in `<main>'
-- C level backtrace information -------------------------------------------
0x7fe7187f65d1 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(rb_vm_bugreport+0x51) [0x7fe7187f65d1]
0x7fe71871c2a6 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x512a6) [0x7fe71871c2a6]
0x7fe71871c413 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(rb_bug+0xb3) [0x7fe71871c413]
0x7fe71879ff25 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0xd4f25) [0x7fe71879ff25]
0x7fe7184bd8f0 /lib/libpthread.so.0(+0xf8f0) [0x7fe7184bd8f0]
0x7fe7187a63f8 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(st_lookup+0x28) [0x7fe7187a63f8]
0x7fe7187e2f7f /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x117f7f) [0x7fe7187e2f7f]
0x7fe7187e2fe3 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(rb_get_method_body+0x23) [0x7fe7187e2fe3]
0x7fe7187e6c34 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x11bc34) [0x7fe7187e6c34]
0x7fe7187e7644 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(rb_funcall2+0x44) [0x7fe7187e7644]
0x7fe717250eb7 /opt/rubies/ruby-1.9.1-p429/lib/ruby/gems/1.9.1/gems/ffi-0.6.3/lib/ffi_c.so(+0x11eb7) [0x7fe717250eb7]
0x7fe717255e71 /opt/rubies/ruby-1.9.1-p429/lib/ruby/gems/1.9.1/gems/ffi-0.6.3/lib/ffi_c.so(ffi_closure_unix64_inner+0x448) [0x7fe717255e71]
0x7fe717256044 /opt/rubies/ruby-1.9.1-p429/lib/ruby/gems/1.9.1/gems/ffi-0.6.3/lib/ffi_c.so(ffi_closure_unix64+0x46) [0x7fe717256044]
0x7fe713d78c4f /usr/lib/libglut.so.3(glutMainLoop+0x9f) [0x7fe713d78c4f]
0x7fe71725210e /opt/rubies/ruby-1.9.1-p429/lib/ruby/gems/1.9.1/gems/ffi-0.6.3/lib/ffi_c.so(+0x1310e) [0x7fe71725210e]
0x7fe7187e46a2 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x1196a2) [0x7fe7187e46a2]
0x7fe7187ef739 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x124739) [0x7fe7187ef739]
0x7fe7187eaa30 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x11fa30) [0x7fe7187eaa30]
0x7fe7187edc4f /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(+0x122c4f) [0x7fe7187edc4f]
0x7fe7187ede71 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(rb_iseq_eval_main+0xb1) [0x7fe7187ede71]
0x7fe71871e6ec /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(ruby_exec_node+0xac) [0x7fe71871e6ec]
0x7fe71871fd67 /opt/rubies/ruby-1.9.1-p429/lib/libruby.so.1.9(ruby_run_node+0x37) [0x7fe71871fd67]
0x4009eb ruby(main+0x4b) [0x4009eb]
0x7fe717881c4d /lib/libc.so.6(__libc_start_main+0xfd) [0x7fe717881c4d]
0x4008d9 ruby() [0x4008d9]
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted
ruby -v: ruby 1.9.1p429 (2010-07-02 revision 28523) [x86_64-linux]
uname -a: Linux kerberos 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux
Marvin
the README's [1] links to a bad link?
-r
is it possible to initiate opengl windows from within the rails console cli ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.