hi,

i'm trying to get SDL_Perl to work under OS X and i finally got it to build after fooling around with it (both 2.10 that's in CPAN, and whatever development version is located at http://www.wgz.org/chromatic/perl/sdl/SDL-Perl.tar.gz) i can install either one but when i do a ./Build test i get a couple errors. with 2.10 i get this output:

t/apppm............ok
t/cdrompm..........ok
t/colorpm..........ok
t/cursorpm.........ok
t/eventpm..........ok
t/fontpm...........ok
t/mixerpm..........ok 2/3Use of inherited AUTOLOAD for non-method SDL::MixOpenAudio() is deprecated at blib/lib/SDL/Mixer.pm line 28, <DATA> line 266.
Can't locate auto/SDL/MixOpenAudi.al in @INC (@INC contains: blib/lib blib/arch /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/blib/lib /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/blib/arch /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/make/lib /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0 /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at blib/lib/SDL/Mixer.pm line 28
# Looks like you planned 3 tests but only ran 2.
# Looks like your test died just after 2.
t/mixerpm..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 3
Failed 1/3 tests, 66.67% okay
t/mpegpm...........ok
t/musicpm..........ok
t/opengl...........ok
t/palettepm........ok
t/rectpm...........ok
t/sdlpm............ok
t/soundpm..........ok
t/surfacepm........ok
t/timerpm..........ok
t/toolfontpm.......Use of inherited AUTOLOAD for non-method SDL::TTFInit() is deprecated at blib/lib/SDL/TTFont.pm line 153.
t/toolfontpm.......NOK 1# Failed test (t/toolfontpm.t at line 30)
# Tried to use 'SDL::Tool::Font'.
# Error: Can't locate auto/SDL/TTFInit.al in @INC (@INC contains: blib/lib blib/arch /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/blib/lib /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/blib/arch /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/make/lib /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0 /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at blib/lib/SDL/TTFont.pm line 153
# Compilation failed in require at blib/lib/SDL/Tool/Font.pm line 10.
# BEGIN failed--compilation aborted at blib/lib/SDL/Tool/Font.pm line 10.
# Compilation failed in require at (eval 1) line 2.
t/toolfontpm.......NOK 2# Failed test (t/toolfontpm.t at line 32)
# SDL::Tool::Font->can('new') failed
# SDL::Tool::Font->can('print') failed
# Looks like you failed 2 tests of 2.
t/toolfontpm.......dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/toolgraphicpm....ok
t/ttfontpm.........Use of inherited AUTOLOAD for non-method SDL::TTFInit() is deprecated at blib/lib/SDL/TTFont.pm line 153.
t/ttfontpm.........NOK 1# Failed test (t/ttfontpm.t at line 23)
# Tried to use 'SDL::TTFont'.
# Error: Can't locate auto/SDL/TTFInit.al in @INC (@INC contains: blib/lib blib/arch /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/blib/lib /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/blib/arch /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0/make/lib /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl /Users/woodson/Desktop/Dev/perl/SDL_Perl-2.1.0 /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at blib/lib/SDL/TTFont.pm line 153
# Compilation failed in require at (eval 1) line 2.
t/ttfontpm.........ok 2/2# Looks like you failed 1 tests of 2.
t/ttfontpm.........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
t/videopm..........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------ -------
t/mixerpm.t 255 65280 3 2 66.67% 3
t/toolfontpm.t 2 512 2 2 100.00% 1-2
t/ttfontpm.t 1 256 2 1 50.00% 1
Failed 3/20 test scripts, 85.00% okay. 4/75 subtests failed, 94.67% okay.


when i install it and try to run one of the demos or the first tutorial i get a whole bunch of this stuff:

2004-09-14 13:14:43.073 perl[4804] *** _NSAutoreleaseNoPool(): Object 0x1383d0 of class NSCFArray autoreleased with no pool in place - just leaking

and then it just dumps me back to the shell.

Since I'm new here this has probably already been cover but in order for either 1.20.3 or 2.10 to Build i had to:
1) manually go in to Darwin.pm and add a "(" after require.
2) copy over the "get_arch" subroutine from 2.10 to 1.2 in order for 1.2 to Build properly


- Brandon



Reply via email to