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!
| [reply] |
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
| [reply] [d/l] |
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. | [reply] [d/l] |
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. | [reply] [d/l] |