Hi all,

So this is where SDL_Perl lives now!

I have instructions and have manage to get as far as
getting SDL_Perl to work with base SDL-1.2.7
functionality. [intructions below]

Has anyone else started or completed this effort?

I've got to the point where I think I might have to
use a2dll to get the mingw dynamic lib support
working, not too sure yet.

Oh well, glad to see this project is still alive. 

I would like to point out step 7 in the instructions,
the use of SDL_opengl.h, and not gl/glu, maybe a
generally useful change,
as the SDL GL utility header figures out platform
specifics.

Regards
Wayne


Bulding SDL-Perl on Cygwin
==========================

These instruction will currenlty only enable users
with the use of core
SDL 1.2.7 functionality under SDL_Perl: e.g 
checkkeys, timers & graywin run (woo bloody hoo)

<excuse>
Cygwin aspects I do here may seem odd, or just plain
wrong/stupid to someone with Cygwin experience, 
but as only have ever used Cygwin as an end-user and
not a developer (until now), please forgive me!
</excuse>

The process:


Step 1) Cygwin


install Cygwin, with at least
Perl! 
OpenGL
libpng
libjpeg
X 
...their are probably others, this wasn't clinical, I
just went with what I had... (my install.log file
might be useful (albeit 'noisy'))



Step 2) Cygwin SDL support

follow instructions in :
http://www.libsdl.org/extras/win32/cygwin/README
(*do not* install OpenGL tar from there, that's taken
care of by cygwin install,
I haven't investigated the possibility , but the
cygwin header and lib is MESA,
and the one one the SDL site isn't, and doesn't even
contain a lib!



Step 3) SDl Libraries

        Step 3.1)  SDL
        
        donwload
http://www.libsdl.org/release/SDL-1.2.7.tar.gz

        ./configure
        make install

        Step 3.2)  SDL_image

        export CFLAGS=-I/usr/include    
        ./configure
        make install

        CFLAGS is set because 'for some reason' the compiler
fails to pick up the jpeg header in /usr/include
        I tried using --oldinclude=/usr/include, that failed.

        <some place holders:>
        
        Step 3.3)  SDL
        Step 3.4)  SDL
        Step 3.5)  SDL
        Step 3.6)  SDL
        Step 3.7)  SDL



Step 4) Perl modules

install YAML              
http://search.cpan.org/~ingy/YAML-0.35/
install ExtUtils::CBuilder
http://search.cpan.org/~kwilliams/ExtUtils-CBuilder-0.02/
install Extutils::ParseXS 
http://search.cpan.org/~kwilliams/ExtUtils-ParseXS-2.08/
install Archive::Tar    
http://search.cpan.org/~kane/Archive-Tar-1.08/
install Module::Build   
http://search.cpan.org/~kwilliams/Module-Build-0.25/


Next are the 'patches' to SDL_perl

Step 5) SDl_Perl Moduke::Build config

Step 5.1)       copied make\lib\SDL\Build\Linux.pm to
make\lib\SDL\Build\Cygwin.pm
Step 5.2)       Add -lpthread to Cygwin build

Step 6) use SDL_opengl.h instead of directly including
GL headers.

In src/Opengl.xs replace:

#include <gl.h>
#include <glu.h>

with

#include <SDL_opengl.h>


Step 7) run the SDL_Perl install process.


        
        
                
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

Reply via email to