Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > opengl problem (from gears sample)

Reply
Thread Tools

opengl problem (from gears sample)

 
 
Roberto Cm
Guest
Posts: n/a
 
      06-07-2010
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.brook...ng_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 2810 [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/.

 
Reply With Quote
 
 
 
 
Roberto Cm
Guest
Posts: n/a
 
      06-07-2010
I wrote:
> I downloaded the opengl gears demo here:
> http://members.shaw.ca/michael.brook...ng_shaders.zip


I'm sorry that's the wrong gears demo link ..
http://aspn.activestate.com/ASPN/Mai...y-talk/2574414
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Joel VanderWerf
Guest
Posts: n/a
 
      06-07-2010
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.brook...ng_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.

 
Reply With Quote
 
Roberto Cm
Guest
Posts: n/a
 
      06-07-2010
Joel VanderWerf wrote:
> Roberto Cm wrote:
>>
>> I downloaded the opengl gears demo here:
>> http://members.shaw.ca/michael.brook...ng_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/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby OpenGL Gears example that uses shiny and velvet GLSL shaders Michael Brooks Ruby 10 03-13-2009 10:53 PM
Java developer shifting gears Evan Weeks MCSD 2 11-19-2007 01:32 PM
Microsoft Gears Up For the Holiday Season @ ThinkGaming.org Silverstrand Front Page News 0 09-29-2006 02:06 PM
what happened to my gears?? werd Computer Support 19 04-08-2006 01:59 PM
OpenGL 3D gears demo for Ruby Arto Bendiken Ruby 1 05-02-2005 08:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57