On Tue, 20 Apr 2004 23:27:36 -0700, chromatic wrote:
>On Sun, 2004-04-18 at 18:52, Cory Johns wrote:
>
>Interesting. �Can you provide the value of the environment variable
>SDL_GL_VENDOR? �I presume it's either 'MESA' or 'MS', or gl_vendor()
>would die. �On the other hand, it could be empty, in which case we
>need to make another guess somewhere and somehow.
I don't have SDL_GL_VENDOR set, no. gl_vendor() doesn't fail because of the line:
return 'ms_gl' unless defined $vendor;
>Also, what are the names of your OpenGL DLLs? �I can guess they're
>probably 'OpenGL.dll' and 'GLU.dll'.
C:\WINNT\system32\OPENGL32.DLL
I can't find a GLU.dll anywhere.
>What are the values of your LIBS and PATH environment variables? �If
>these aren't set correctly (or we're not guessing correctly), it'll
>cause these errors. �I think they may cascade from guessing library
>paths and file names incorrectly.
LIB=C:\Program Files\SDL-1.2.7\lib;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
PATH=C:\Program Files\SDL-1.2.7\lib;/win2k/vim/vim61:/win2k/Program
Files/ImageMagick:/win2k/Perl/bin/:/win2k/WINNT/system32:/win2k/WINNT:/usr/bin:/win2k/Program
Files/Microsoft Visual Studio/Common/Tools/WinNT:/win2k/Program Files/Microsoft
Visual Studio/Common/MSDev98/Bin:/win2k/Program Files/Microsoft Visual
Studio/Common/Tools:/win2k/Program Files/Microsoft Visual
Studio/VC98/bin:/win2k/Program Files/SSH Secure Shell:/win2k/Program Files/Mozilla
>Hmm, what's in your INCLUDE variable?
INCLUDE=C:\Program Files\SDL-1.2.7\include;C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include
>That's a consequence of not finding the libraries or headers...
>
>... as are these, I believe.
I think, perhaps, it might be better to raise an error stating that the libraries or
headers were not found, then. Of course, that might not be possible or realistic, I
don't really know.
>It would be better for them to point to the same place; probably
>SDL.h.
:-)
>Where are your OpenGL dlls and header files? �Do you have an OpenGL
>development kit installed somewhere? �Do you need one to compile and
>link against an OpenGL dll? �(I would think so, but I'm not a
>Windows programmer.)
C:\Program Files\Microsoft Visual Studio\VC98\Include\GL\GL.H
C:\Program Files\Microsoft Visual Studio\VC98\Include\GL\GLU.H
These come with Visual Studio, and are accessable via my INCLUDE variable. If I
comment out the #ifdef HAVE_GL and #ifdef HAVE_GLU lines to force the inclusion of the
header files, it works ok (ie, the headers seem to be included sucessfully), except I
then get a couple of similar errors along the lines of:
Generating script 'src\SDL\.lds'
link @"src\SDL\.lds" -out:"blib\arch\auto\SDL\OpenGL\OpenGL.dll"
LINK : fatal error LNK1104: cannot open file "src\SDL\.def"
LINK : fatal error LNK1141: failure during build of exports file
preceded by a bunch of uninitialized value warnings from
Module::Build::Platform::Windows
Cory