From: Roberto Cm on 7 Jun 2010 17:25 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 -- Posted via http://www.ruby-forum.com/.
From: Roberto Cm on 7 Jun 2010 17:30 I wrote: > I downloaded the opengl gears demo here: > http://members.shaw.ca/michael.brooks/gears_using_shaders.zip I'm sorry that's the wrong gears demo link .. http://aspn.activestate.com/ASPN/Mail/Message/ruby-talk/2574414 -- Posted via http://www.ruby-forum.com/.
From: Joel VanderWerf on 7 Jun 2010 17:31 Roberto Cm wrote: > 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.
From: Roberto Cm on 7 Jun 2010 17:58 Joel VanderWerf wrote: > Roberto Cm wrote: >> >> 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. that's a shame ... I can confirm it does work, although very slowly, in 1.8. thanks -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: [ANN] JRuby 1.5.1 Released Next: keep eventmachine app running |