Home: General Discussions: General Questions:
Installing SDL



sh0gun
New User

Jul 24, 2010, 1:11 PM


Views: 6965
Installing SDL

Hello everyone, this is my first post to this forum. I hope I can find the answers I need within this community. I guess I should give a little background to the problem.

I'm using a Ibook g4 with Mac OS X 10.4.11 Tiger. I just recently got into perl and my friend gave me the idea to make a simple game. I have successfully installed LWP and coded with it perfectly fine, but SDL is a totally different ball park.

Honestly I just snagged code a simple window code to see if the install was complete.


Code
#!/usr/bin/perl 

use lib '/Users/g4owner/Desktop/SDLg/lib';
use lib '/Users/g4owner/Desktop/SDLg/lib/SDL';
use SDL;
use SDL::App;


my $app = SDL::App->new(
-width => 640, # window width
-height => 480, # window height
);


since it was looking in the wrong places for App.pm I just sent it to a folder with the files it needs to run. I've encountered problem after problem with SDL. The most recent error I was given was this


Code
Can't locate loadable object for module SDL::SFont in @INC


any clue to what my next move should be? I can't install this module through cpan.....