Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > "Statically linking" native extensions.

Reply
Thread Tools

"Statically linking" native extensions.

 
 
Indigo Casson
Guest
Posts: n/a
 
      05-26-2010
Hello.

I am writing a small game in ruby, using rubygame to do the graphics. I
am targeting an audience with little technical experience, which means I
won't be using gems, as easy as those are. My perfect scenario is to
give somebody a CD with a ruby installer and the game on it and have it
work perfectly. This means that instead of relying on gem to give me
external libraries, like rubygame or ruby-sdl-ffi (which rubygame
depends on), and want to store that code in my game's directory tree.
This is not particularly hard for rubygame, because it doesn't include a
native extension. (I would statically link rubygame by simply copying
its code into a directory in the game's directory tree.) ruby-sdl-ffi,
however, does require one. How would one "statically link" such a gem? I
have tried to make the game as light on external libraries as possible,
but graphics are a must. Thanks for your help,


Indigo.

P.S. The game is a simple puzzle game. It requires simple 2d surfaces
and textures to run, so if you have a better library, please let me
know.
--
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
Native & Web App using .NET George P Boutwell ASP .Net 1 06-28-2005 09:33 PM
Runnig at Native speed...Dream or reality ? main\(\){}; ASP .Net 3 12-14-2004 06:24 PM
Forcing native 802.1x supplicant to re-auth??! Tony Wireless Networking 3 07-07-2004 11:35 PM
Is there a .NET or C# to native x86 compiler? Andy Chau ASP .Net 11 01-02-2004 06:45 PM
Native VLAN Harley D. Cisco 8 11-26-2003 09:09 PM



Advertisments