opengl problem (from gears sample)

R

Roberto Cm

I wanted to take a look at ruby's opengl but I'm having issues -- can
you help me out? I installed it and I can require it in irb or a file
without issue:

irb
001:0> require 'opengl'
true
002:0> include Gl, Glu, Glut
Object


I downloaded the opengl gears demo here:
http://members.shaw.ca/michael.brooks/gears_using_shaders.zip
and this won't run. It errors out with:
ruby: symbol lookup error:
/usr/lib/ruby/gems/1.9.3dev/gems/ruby-opengl-0.60.1/lib/glut.so:
undefined symbol: STR2CSTR

ruby -v
ruby 1.9.3dev (2010-05-31 trunk 28108) [powerpc64-linux]
gem specification ruby-opengl|grep -1 version
name: ruby-opengl
version: !ruby/object:Gem::Version
prerelease: false
--
- 1
version: 0.60.1
platform: ruby
...
rubyforge_project: ruby-opengl
rubygems_version: 1.3.7
signing_key:
specification_version: 2
summary: OpenGL Interface for Ruby
 
J

Joel VanderWerf

Roberto said:
I wanted to take a look at ruby's opengl but I'm having issues -- can
you help me out? I installed it and I can require it in irb or a file
without issue:

irb
001:0> require 'opengl'
true
002:0> include Gl, Glu, Glut
Object


I downloaded the opengl gears demo here:
http://members.shaw.ca/michael.brooks/gears_using_shaders.zip
and this won't run. It errors out with:
ruby: symbol lookup error:
/usr/lib/ruby/gems/1.9.3dev/gems/ruby-opengl-0.60.1/lib/glut.so:
undefined symbol: STR2CSTR

Try installing and running it with ruby 1.8.x. The STR2CSTR macro is not
used in 1.9.2, so it looks like someone will have to update the opengl lib.
 
R

Roberto Cm

Joel said:
Try installing and running it with ruby 1.8.x. The STR2CSTR macro is not
used in 1.9.2, so it looks like someone will have to update the opengl
lib.
that's a shame ...

I can confirm it does work, although very slowly, in 1.8. thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top