pods::...latform(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

πŸ’… pods::...latform(3pm) β€” the whole vibe

Okay bestie, so this is a page straight out of the User Contributed Perl Documentation (that's the manual name btw), and it's literally all about SDL-Platform β€” Platform Specific Informations about SDL Perl. Yes, "Informations". We're keeping it. Iconic.

✨ CATEGORY ✨

Documentation. That's it, that's the category. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

So this doc is your little guide to all the OS-specific tea regarding installing and using SDL. Different platforms, different drama, same slay energy.

🌍 General (all OS)

First thing first: you gotta install Alien::SDL to acquire all prerequisites of SDL. Like, all of them. No skipping.

On Windows, Alien::SDL will get you zip-files containing prebuilt libs. Prebuilt! Delivered to your door! 🚚

On Unixes you actually get choices, main character behaviour honestly β€” you can choose between compiling libs or use libs provided by the dist. The different options on Unixes are availale when requirements are met. (Yes "availale", she said what she said.) Like having specific libs installed, for example.

There's also some additional documentation in the Github-Wiki over at <https://github.com/PerlGameDev/SDL/wiki/Testing>. You definitively want to look there β€” again, "definitively", we don't edit β€” if you want to know how to install SDL from the latest sources, e.g. in an unfinished, unreleased state. Living on the edge, love that for you. πŸ”₯


πŸͺŸ Windows

Installation

We recommend Strawberry Perl. You can get it here: <http://strawberryperl.com/>. Strawberry Perl, not strawberry shortcake, unfortunately. πŸ“

Once you installed Strawberry Perl, you can access the cpan shell via the start menu. Cute, right?

Open up the cpan shell and type:

install Alien::SDL SDL

Please follow the dialog and answer the questions to the best of your knowledge. (Bestie, just read them carefully, you got this. 🫢)

🍎 Mac OS X

Installation

You will need a newer version of Perl, which you can install with App::perlbrew.

Once you have a newer Perl installed, please use cpan to install Alien::SDL (and of course SDL). Both. Together. Besties.

🧚 Using SDL on Mac OS X

So here's the thing β€” you can't use the perl executable to run SDL scripts on Mac OS X. You need to use SDLPerl. When you install SDL, a program named SDLPerl is installed. It should be in your path. πŸ’«

Using Mac OS X, your SDL Perl script has to look like this:

#!SDLPerl

use strict;
use warnings;
use SDL;
# your code here ...

Using the wrong Perl executable, you might encounter a lot of error messages resulting in:

terminate called after throwing an instance of 'NSException'

cf. the corresponding github issue <https://github.com/PerlGameDev/SDL/issues/208>.

πŸ™ˆ Lowkey a jumpscare. Wrong perl = NSException chaos. Use SDLPerl, periodt.

πŸ‘€ SEE ALSO

  • Alien::SDL
  • SDL

πŸ‘‘ AUTHORS

See list of module authors in SDL.

If you would like to contribute to SDL Perl, please post a message on the mailing list:

sdl-devel@perl.org

And request access to the github repository. Or drop us a line on #sdl over at irc.perl.org. Come hang out, we don't bite. πŸ’œ

Copyright 2002-2010 SDL Authors as listed above, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

πŸ’€ DISCLAIMER OF WARRANTY

Okay this part is in ALL CAPS in the original and honestly it's giving legal drama, so here it is, faithfully, no cap:

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

⚠️ Translation for the girlies: it's free, so if it breaks, that's on you. Dramatic but real. 😭

✨ and that's the page, bestie ✨ β€” brought to you by perl v5.42.0, dated 2024-05-01, and filed under pods::...latform(3pm). Slay, install responsibly, and may your libs always be prebuilt. πŸ’…πŸŒΈ

πŸ“¦ where this page comes from