I think I may be making progress. That example you gave is what I was using. After running your CPAN install script (woowee that is a lot of stuff) I had an issue running your Build.PL script.

Gonna use 'My::Builder::Unix' class ... Require 'My::Builder::Unix' failed: Can't locate My/Builder/Unix.pm in + @INC

Assuming I should've used the My/Builder/* files in the Alien::SDL package, I copied them over, but got another error

Can't locate object method "find_subsystems" via package "My::Builder: +:Unix" at Build.PL line 526.

Where and what version is the My::Builder::Unix class in your Build script coming from?

Using the Build.PL that comes with SDL Perl, the Build test gives these results.
root@sw:~/sdl/SDL_Perl-v2.2.6# ./Build test t/apppm.t .......... ok t/cdrompm.t ........ ok t/colorpm.t ........ ok t/cursorpm.t ....... ok t/eventpm.t ........ ok t/fontpm.t ......... ok t/manifest.t ....... skipped: Author tests not required for installati +on t/mixerpm.t ........ ok t/mpegpm.t ......... skipped: smpeg support not compiled t/musicpm.t ........ ok t/opengl.t ......... ok t/palettepm.t ...... ok t/rectpm.t ......... ok t/sdlgamerect.t .... ok t/sdlpm.t .......... ok t/soundpm.t ........ ok t/surfaceML.t ...... skipped: Author tests not required for installati +on t/surfacepm.t ...... ok t/timerpm.t ........ ok t/toolfontpm.t ..... ok t/toolgraphicpm.t .. skipped: SDL_gfx support not compiled t/ttfontpm.t ....... ok t/videopm.t ........ skipped: smpeg support not compiled All tests successful. Files=23, Tests=184, 2 wallclock secs ( 0.12 usr 0.25 sys + 1.03 cu +sr 0.50 csys = 1.90 CPU) Result: PASS

The t/videopm.t being skipped seems like something to be concerned about. I thought I saw smpeg being installed as a dependency in that CPAN script?

Currently, when I run the SDL test script, I get this.

Use of inherited AUTOLOAD for non-method SDL::init() is deprecated at +./test.pl line 14. Can't locate auto/SDL/init.al in @INC

I changed that part of the code to SDL->init() and got this  Can't locate auto/SDL/init.al in @INC Is it safe to assume that that init() sub should get installed when t/videopm.t isn't 'skipped'?


In reply to Re^2: Setting Video Mode in SDL by SomeNetworkGuy
in thread Setting Video Mode in SDL by SomeNetworkGuy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.