Forums Archived

The forums are being archived. See this topic for more information.

Error installing on Mac 10.5

Get help and support with Rubygame

Error installing on Mac 10.5

Postby realmadrid2727 » Tue May 12, 2009 10:40 pm

Following the instructions here: http://docs.rubygame.org/rdoc/current/f ... _rdoc.html (with Fink) I get the following error when running with --trace on sudo rake install

Code: Select all
$ sudo rake install --trace
(in /Users/Me/Desktop/rubygame-2.5.0)
** Invoke install (first_time)
** Invoke install_ext (first_time)
** Invoke ext/rubygame/rubygame_core.bundle (first_time, not_needed)
** Invoke ext/rubygame/rubygame_main.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_main.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_shared.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_shared.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_event.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_event.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_event2.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_event2.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_gl.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_gl.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_joystick.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_joystick.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_screen.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_screen.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_surface.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_surface.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_clock.o (first_time, not_needed)
** Invoke ext/rubygame/rubygame_clock.c (first_time, not_needed)
** Invoke ext/rubygame/rubygame_gfx.bundle (first_time)
** Invoke ext/rubygame/rubygame_shared.o (not_needed)
** Invoke ext/rubygame/rubygame_gfx.o (first_time)
** Invoke ext/rubygame/rubygame_gfx.c (first_time, not_needed)
** Execute ext/rubygame/rubygame_gfx.o
Compiling rubygame/rubygame_gfx.c
In file included from ext/rubygame/rubygame_gfx.c:23:
ext/rubygame/rubygame_gfx.h:25:31: error: SDL_gfxPrimitives.h: No such file or directory
ext/rubygame/rubygame_gfx.h:26:26: error: SDL_rotozoom.h: No such file or directory
ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_rotozoom’:
ext/rubygame/rubygame_gfx.c:639: warning: assignment makes pointer from integer without a cast
ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_zoom’:
ext/rubygame/rubygame_gfx.c:782: warning: assignment makes pointer from integer without a cast
ext/rubygame/rubygame_gfx.c: In function ‘rbgm_transform_zoom_to’:
ext/rubygame/rubygame_gfx.c:815: warning: assignment makes pointer from integer without a cast
rake aborted!
Command failed. Aborting.
/Users/Me/Desktop/rubygame-2.5.0/Rakefile:69:in `try_shell'
/Users/Me/Desktop/rubygame-2.5.0/Rakefile:339:in `create_obj_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:615:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19


Anyone have an idea what's going on? Everything was fine (with the exception of package sdl-gfx13 not existing, but I compiled from source manually) up to that point.
realmadrid2727
 
Posts: 1
Joined: Tue May 12, 2009 10:30 pm

Re: Error installing on Mac 10.5

Postby shawn42 » Wed May 13, 2009 2:41 pm

I haven't installed with fink; I've built it all manually and have used mac ports once. With that being said, try to remove the sdl package then run:
Code: Select all
sudo apt-get install sdl-gfx13 sdl-image sdl-mixer sdl-ttf sdl


Once you run those, try to install rubygame again and post any errors here.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Error installing on Mac 10.5

Postby jacius » Sat May 16, 2009 8:01 pm

realmadrid2727 wrote:
Code: Select all
Compiling rubygame/rubygame_gfx.c
In file included from ext/rubygame/rubygame_gfx.c:23:
ext/rubygame/rubygame_gfx.h:25:31: error: SDL_gfxPrimitives.h: No such file or directory
ext/rubygame/rubygame_gfx.h:26:26: error: SDL_rotozoom.h: No such file or directory

Anyone have an idea what's going on? Everything was fine (with the exception of package sdl-gfx13 not existing, but I compiled from source manually) up to that point.

It's having trouble finding where you installed SDL_gfx, probably because it's installed to a different location because you compiled it yourself. There's a simple solution, though.

Assuming you installed SDL_gfx to /usr/local/ (the default), try this to compile Rubygame:

Code: Select all
rake CFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" build

The -I tells the compiler where to look for the .h files, and the -L tells the linker where to look for the compiled SDL_gfx dylib.

Give that a try, and let us know how it goes. :)
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron