Hi - new user here, so I hope I'm not doing anything wrong. I'm trying to build Mesa under Visual Studio.NET 2003 (7.1.3088) in RELEASE configuration. I get the following compile errors. I get similar errors when trying to build DEBUG. In addition, when I opened the original mesa.sln file, I was asked if I wanted to convert to the current version of Visual Studio - this may imply that the solution file is from an older version of Visual Studio? Thanks and I hope I'm not missing something! David Baszucki david@roblox.com ------ Build started: Project: mesa, Configuration: Release Win32 ------ Compiling... s_triangle.c c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2275: 'GLuint' : illegal use of this type as an expression ../../../../include\GL\gl.h(155) : see declaration of 'GLuint' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2146: syntax error : missing ';' before identifier 'i' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2143: syntax error : missing ';' before 'identifier' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2065: 'i' : undeclared identifier c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2275: 'GLuint' : illegal use of this type as an expression ../../../../include\GL\gl.h(155) : see declaration of 'GLuint' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2146: syntax error : missing ';' before identifier 'i' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2143: syntax error : missing ';' before 'identifier' Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7 \mesa\mesa\Release\BuildLog.htm" mesa - 11 error(s), 0 warning(s) ------ Build started: Project: gdi, Configuration: Release Win32 ------ Linking... LINK : fatal error LNK1181: cannot open input file 'mesa.lib' Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7 \mesa\gdi\Release\BuildLog.htm" gdi - 1 error(s), 0 warning(s) ------ Build started: Project: glu, Configuration: Release Win32 ------ Linking... ..\..\..\..\src\glu\sgi\glu.def(1) : warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored Creating library .\Release/GLU32.lib and object .\Release/GLU32.exp mipmap.obj : error LNK2019: unresolved external symbol _glTexImage3D@40 referenced in function _closestFit3D Release/GLU32.DLL : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7 \mesa\glu\Release\BuildLog.htm" glu - 2 error(s), 1 warning(s) ------ Build started: Project: osmesa, Configuration: Release Win32 ------ Compiling... osmesa.c ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2143: syntax error : missing ';' before 'type' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2275: 'GLchan' : illegal use of this type as an expression ../../../../src\mesa\main\mtypes.h(49) : see declaration of 'GLchan' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2065: 'img' : undeclared identifier ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2065: 'i' : undeclared identifier ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : warning C4018: '<' : signed/unsigned mismatch ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript requires array or pointer type ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript requires array or pointer type ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript requires array or pointer type ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript requires array or pointer type ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2275: 'GLuint' : illegal use of this type as an expression ../../../../include\GL\gl.h(155) : see declaration of 'GLuint' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2146: syntax error : missing ';' before identifier 'i' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2143: syntax error : missing ';' before 'identifier' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2275: 'GLuint' : illegal use of this type as an expression ../../../../include\GL\gl.h(155) : see declaration of 'GLuint' ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : warning C4018: '<' : signed/unsigned mismatch ../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript requires array or pointer type Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7 \mesa\osmesa\Release\BuildLog.htm" osmesa - 15 error(s), 2 warning(s) ---------------------- Done ---------------------- Build: 0 succeeded, 4 failed, 0 skipped
Fixed in CVS. Grab the latest s_triangle.c and s_tritemp.h (for the 6.4 branch). I don't know about the "mesa.sln" thing.
(In reply to comment #0) > Hi - new user here, so I hope I'm not doing anything wrong. I'm trying to > build Mesa under Visual Studio.NET 2003 (7.1.3088) in RELEASE configuration. > I get the following compile errors. I get similar errors when trying to build > DEBUG. > Brian covered this. > In addition, when I opened the original mesa.sln file, I was asked if I wanted > to convert to the current version of Visual Studio - this may imply that the > solution file is from an older version of Visual Studio? The VC7 project files were created with 7.0, so you are getting notified of the conversion from 7.0 to 7.1. This is harmless.
problem solved some time ago.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.