1SDL::Platform(3pm) User Contributed Perl Documentation SDL::Platform(3pm)
2
3
4
6 SDL-Platform - Platform Specific Informations about SDL Perl
7
9 Documentation
10
12 This document describes OS specific informations regading the
13 installation and use of SDL.
14
15 General (all OS)
16 You need to install Alien::SDL to acquire all prerequisites of SDL.
17
18 On Windows, Alien::SDL will get you zip-files containing prebuilt libs.
19
20 On Unixes you can choose between compiling libs or use libs provided by
21 the dist. The different options on Unixes are availale when
22 requirements are met. Like having specific libs installed.
23
24 There is some additional documentation in the Github-Wiki
25 <https://github.com/PerlGameDev/SDL/wiki/Testing>. You definitively
26 want to look there, if you want to know how to install SDL from the
27 latest sources (e.g. in an unfinished, unreleased state).
28
30 Installation
31 We recommend Strawberry Perl. You can get it here
32 <http://strawberryperl.com/>.
33
34 Once you installed Strawberry Perl, you can access the cpan shell via
35 the start menu.
36
37 Open up the cpan shell and type "install Alien::SDL SDL". Please follow
38 the dialog and answer the questions to the best of your knowledge.
39
41 Installation
42 You will need a newer version of Perl that you can install with
43 App::perlbrew.
44
45 Once you have a newer Perl installed please use "cpan" to install
46 Alien::SDL (and of course SDL).
47
48 Using SDL on Mac OS X
49 You can't use the "perl" executable to run SDL scripts on Mac OS X, you
50 need to use "SDLPerl". When you install SDL, a program named "SDLPerl"
51 is installed. It should be in your path.
52
53 Using Mac OS X, your SDL Perl script have to look like this:
54
55 #!SDLPerl
56
57 use strict;
58 use warnings;
59 use SDL;
60 # your code here ...
61
62 Using the wrong Perl executable, you might encounter a lot of error
63 messages resulting in "terminate called after throwing an instance of
64 'NSException'". cf. the corresponding github issue
65 <https://github.com/PerlGameDev/SDL/issues/208>.
66
68 • Alien::SDL
69
70 • SDL
71
73 See list of module authors in SDL.
74
75 If you would like to contribute to SDL Perl, please post a message on
76 the mailing list:
77
78 sdl-devel@perl.org
79
80 And request access to the github repository. Or drop us a line on #sdl
81 over at irc.perl.org
82
84 Copyright 2002-2010 SDL Authors as listed above, all rights reserved.
85
86 This program is free software; you can redistribute it and/or modify it
87 under the same terms as Perl itself.
88
90 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
91 FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
92 WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
93 PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
94 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
95 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
96 ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
97 YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
98 NECESSARY SERVICING, REPAIR, OR CORRECTION.
99
100 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
101 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
102 REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
103 TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
104 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
105 SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
106 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
107 FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
108 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
109 DAMAGES.
110
111
112
113perl v5.38.0 2023-07-21 SDL::Platform(3pm)