http://qs321.pair.com?node_id=324853


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

The build process doesn't need to know anything about how to build on win32, it just has to not be specific to linux only.

Replies are listed 'Best First'.
Re: Re: Re: Re: SDL_perl on 5.8
by chromatic (Archbishop) on Jan 29, 2004 at 08:47 UTC

    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!

      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
      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.
      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.