Paul, I just installed the SDL module using MinGW (using the instructions at http://www.netadelica.com/coding/sdl/install.html).

Since sdl-config is a shell script to be meant to be executed e.g. by the MSys shell, I created two links sdl-config-libs, sdl-config-cflags with targets C:\Programme\msys\1.0\bin\sh.exe sdl-config.sh --libs resp. C:\Programme\msys\1.0\bin\sh.exe sdl-config.sh --cflags which I then referenced in the Build.PL file of the SDL module.

I then ran into the error that the environment variable LIBS was not set, so I set it to point to C:\Programme\MinGW\lib, where I had placed the SDL libraries.

Next error: Can't use an undefined value as an ARRAY reference at make/lib/SDL/Build.pm line 154. So I then ran the Build.PL under the debugger but could not yet solve the problem.

So, you see, it isn't at all straightforward (not that anybody has claimed it...), fiddling around with Build.PL is not how installing a module should work. I am not blaming anyone for this and maybe I invest a few hours trying to sort it out and share my experiences afterward. But it is really quite painful and I would really like to have a simpler solution working on Windows, too.


In reply to Re^6: WANTED: Simple & portable graphics to use with Perl by jds17
in thread WANTED: Simple & portable graphics to use with Perl by jds17

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.