Rich
Could you send me a list of your OS, the full error message text, and
the locations you've installed all the libs `locate SDL`?
It looks like it is failing to initialize the list of directories for
the various libraries on your system.
Dave
Turd Turtle wrote:
Hi there,
I am having trouble building SDL Perl 2.1.3.
When I run:
[ 408 ] SDL_Perl-2.1.3 -: perl Build.PL
Checking whether your kit is complete...
Looks good
Checking prerequisites...
Looks good
Can't use an undefined value as an ARRAY reference at
make/lib/SDL/Build.pm
line 154.
I am not sure what is wrong... here is the offending section of code
from
make/lib/SDL/Build.pm :
# save this all in a format process_xs() can understand
sub set_flags
{
my ($self, $subsystems, $build, $defines, $includes, $links,
$sdl_compile, $sdl_link) = @_;
my %file_flags;
while (my ($subsystem, $buildable) = each %$build)
{
my $sub_file = $subsystems->{$subsystem}{file}{to};
my $sub_includes = join(' ', @{ $includes->{$subsystem}
} );
$file_flags{ $sub_file } =
{
extra_compiler_flags =>
[
@{ $includes->{$subsystem} },
split(' ',$sdl_compile),
@{ $defines->{$subsystem} },
( defined $Config{usethreads} ?
('-DUSE_THREADS', '-fPIC') : '-fPIC' ),
],
extra_linker_flags =>
[
@{ $links->{$subsystem}{paths} },
split(' ',$sdl_link),
### LINE 154 HERE: #### @{ $links->{$subsystem}{libs} },
],
},
}
$self->notes( 'file_flags' => \%file_flags );
}
I am a novice at Perl and would appreciate any help.. what is wrong?
Thanks alot!
Rich