When I try to run a script using SDL_Perl, I get a pop up box that says "This application has failed to start because SDL_gfx.dll was not found" I am unable to find that DLL, and I think it's non-existant. I also get a bunch of messages in the console saying: Can't load 'C:/Perl/site/lib/auto/SDL_perl/SDL_perl.dll' for module SDL_perl: load_file:The specified module could not be found at C:/Perl/lib/DynaLoader.pm line 229.
at C:/Perl/site/lib/SDL.pm line 13
Compilation failed in require at C:/Perl/site/lib/SDL.pm line 13.
BEGIN failed--compilation aborted at C:/Perl/site/lib/SDL.pm line 13.
Compilation failed in require at C:/Perl/site/lib/SDL/App.pm line 10.
BEGIN failed--compilation aborted at C:/Perl/site/lib/SDL/App.pm line 10.
Compilation failed in require at C:\myperl\sdl\screen.pl line 6.
BEGIN failed--compilation aborted at C:\myperl\sdl\screen.pl line 6.
This is the code I'm trying to run. It's copied directly from the tutorial.
#!usr/bin/perl
use warnings;
use strict;
use SDL::App;
use SDL::Color;
my $app = SDL::App->new(
-width => 640,
-height => 480,
-depth => 16,
);
my $color = SDL::Color->new(
-r => 0x00,
-g => 0x00,
-b => 0xff,
);
$app->fill( $rect, $color );
$app->update( $rect );
I do have the SDL.dll file, and last time I had this installed it worked fine.
Thanks
our @item = reverse (114, 101, 107, 99, 97, 104, 32, 108,
114, 101, 80, 32, 114, 101, 104, 116, 111, 110, 97, 32, 116, 115, 117,
+ 74); local $my = reverse ")meti@\ ,rhc (pam tnirp";eval $my;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.