On Sun, 2004-04-18 at 18:52, Cory Johns wrote:

> As chromatic noted, Build::SDL::Win32 was originally missing.  With the newest 
> snapshot he uploaded, I found that Build::SDL::Win32::subsystems() and 
> Build::SDL::Win32::libraries() were not returning the correct thing.  Adding return 
> $subsystems; or return $libraries; as appropriate (which chromatic has informed me 
> he corrected in the snapshot), I got the error: Unknown library 'opengl32' for 
> 'OpenGL'
> 
> I was able to correct this by changing:
>       return [qw( opengl32 glu32 )];
> in Build::SDL::Win32::ms_gl_subsystems() to:
>       return [qw( OpenGL GLU )];

Odd.  I can't find where or why I originally had the other, but let's
use these for now.

> Then, I got the following errors:
> 
> Use of uninitialized value in substitution (s///) at build_lib/SDL\Build\MSWin32.pm 
> line 23.
> Use of uninitialized value in concatenation (.) or string at 
> C:/Perl/lib/File/Spec/Win32.pm line 102.
> Use of uninitialized value in concatenation (.) or string at 
> C:/Perl/lib/File/Spec/Win32.pm line 102.
> Use of uninitialized value in concatenation (.) or string at 
> C:/Perl/lib/File/Spec/Win32.pm line 102.
> Use of uninitialized value in concatenation (.) or string at 
> C:/Perl/lib/File/Spec/Win32.pm line 102.
> Use of uninitialized value in concatenation (.) or string at 
> C:/Perl/lib/File/Spec/Win32.pm line 102.
> Use of uninitialized value in hash element at build_lib/SDL/Build.pm line 210.
> Use of uninitialized value in hash element at build_lib/SDL/Build.pm line 210.
> Checking whether your kit is complete...
> Looks good
> 'sdl-config' is not recognized as an internal or external command,
> operable program or batch file.
> sdl-config does not appear to be in your path.
> Please check your config and try again.

Those should all be gone now.

> Turns out that $includes->{$subsystem} and $defines->{$subsystem} were both empty, 
> so I changed the appropriate lines in set_flags() to:
>                               @{ $includes->{$subsystem} || [] },

This should also be gone.

> Oh, also SDL_perl.xs seems to #include <SDL.h>, while OpenGL.xs uses #include 
> <SDL/SDL.h>.  I worked around this by making two copies of the header files, but I 
> imagine it would be better for them to look in the same place (unless, of course, 
> I'm missing something?)

Also fixed.

> In case it's important, I've set the following environment variables:
>   set INCLUDE=C:\Program Files\SDL-1.2.7\include;%INCLUDE%
>   set PATH=C:\Program Files\SDL-1.2.7\lib;%PATH%
>   set LIBS=C:\Program Files\SDL-1.2.7\lib;%LIBS%

Is it LIBS or LIB?  The MSWin32 module originally had LIB, but I've made
it respect both now.

Can you try a new snapshot?

        http://wgz.org/chromatic/perl/sdl/SDL-Perl.tar.gz

-- c

Reply via email to