Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Re: SDL_perl on 5.8

by chromatic (Archbishop)
on Jan 29, 2004 at 08:47 UTC ( [id://324898]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: SDL_perl on 5.8
in thread SDL_perl on 5.8

Unfortunately, it does need to know where to find the SDL headers, where to link against the SDL DLLs, and which components are present, not to mention which OpenGL headers — if any — are present. At least, that's how I understand it. If there's an easier way to build, please let me know!

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: SDL_perl on 5.8
by Corion (Patriarch) on Jan 29, 2004 at 08:54 UTC

    I once compiled OpenGL.pm 0.53 for Win32, and it was only a matter of patching the MS header files. The OpenGL header files should already be in the include search path for the MSVC compiler.

    For SGL, I would start with registry entries, if there is some setup file for Win32 that installs the binaries, and then some directory guesses like C:/sdl/lib, and if the guesses fail, use File::Find(::Rule)? to look for the header files, at least on C:/ and the volume perl resides on.

    I'm in the process of patching the Net::SSLeay Makefile to do exactly this searching, but haven't come too far with it yet.

    perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
Re: Re: Re: Re: Re: SDL_perl on 5.8
by Anonymous Monk on Jan 29, 2004 at 09:56 UTC
    Yeah, but thats not specific to Win32. Even on linux you sometimes need to execute something like
    perl Makefile.PL LIB="-LC:\sdl\lib -llibsdl" INC="-IC:\sdl\include"
    All you need to do is say in an INSTALL file which libraries/headers are needed.
Re: Re: Re: Re: Re: SDL_perl on 5.8
by Anonymous Monk on Jan 29, 2004 at 09:56 UTC
    Yeah, but thats not specific to Win32. Even on linux you sometimes need to execute something like
    perl Makefile.PL LIB="-LC:\sdl\lib -llibsdl" INC="-IC:\sdl\include"
    All you need to do is say in an INSTALL file which libraries/headers are needed and where to get them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://324898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-23 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found