Menu

What SDL pre-requisite on GNU/Linux?

wwp
2006-07-04
2013-04-11
  • wwp

    wwp - 2006-07-04

    Trying to run upipang.pl on a Fedora Core 5 box (SDL 1.2.9, perl-SDL 2.1.2), I get:

    Not a HASH reference at ./upipang.pl line 1423, <DATA> line 266.

    I pass this one by removing the unless clause. Now I can hear 1 sec of music :-), but will still miserability fail there:

    Undefined subroutine &main::SDL_TEXTWIDTH called at ./upipang.pl line 1095, <DATA> line 266.

    Any hint?

     
    • UPi

      UPi - 2006-07-04

      You are officially our first ever forum poster AND our first bug reporter. Your name will be remember by posterity as such, congratulations!

      It appears that my version of perl-SDL (1.20.0-3mdk) is incompatible with the 2.x series. I suggest you try installing the 1.x perl-SDL and see if it works. In the meantime, try replacing the function call with a constant, say, 300.

      There is another SDL_TEXTWIDTH call near line 730, replace that with 50.

       
    • wwp

      wwp - 2006-07-05

      Wow :), I didn't want to enter the hall of posterity! Talking about posterity.. when I saw that there were some efforts to port Pang!, I jumped on it, 'cause that game was great (Atari times and arcade).

      Thanks for the trick, I'll hardcode a value and see.

      What about the loading of the music file BTW?

       
    • UPi

      UPi - 2006-08-09

      Please see if the situation improved. The CVS version should work as of 2006-08-09

       

Log in to post a comment.