Compilation error with MesaLib_7.5.1

vikramnrao <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CAK3wyPcmNOzyMEGAgrG5WrPqq+-9KXhS_9fYSD4xUcDEzkR8gA@mail.gmail.com>
Hi,

I need to do an offline rendering using mesa library on Windows platform.
Faced lot of issues in compiling the latest mesa library for windows too.
So I had to switch to an older version which was packaged with a visual
studio sln file.

Currently I am facing an issue in compiling the a test application using
MesaLib-7.5.1.
Can anyone please advice me on fix for this issue.

I came across query with the same issue in the following mailing list:
https://lists.freedesktop.org/archives/mesa-users/2010-June/000118.html

Following are the compile errors that I am getting:

Error 10 error C2146: syntax error : missing ';' before identifier
'OSMesaContext'
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 131 1
snapShot_Gen
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 131 1
snapShot_Gen
Error 12 error C2144: syntax error : 'void' should be preceded by ';'
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 141 1
snapShot_Gen
Error 13 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 141 1
snapShot_Gen
Error 14 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 141 1
snapShot_Gen
Error 15 error C2146: syntax error : missing ';' before identifier
'GLboolean' c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h
173 1 snapShot_Gen
Error 16 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 173 1
snapShot_Gen
Error 17 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 173 1
snapShot_Gen
Error 18 error C2146: syntax error : missing ';' before identifier
'OSMesaContext'
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 183 1
snapShot_Gen
Error 19 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 183 1
snapShot_Gen
Error 20 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 183 1
snapShot_Gen
Error 21 error C2144: syntax error : 'void' should be preceded by ';'
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 201 1
snapShot_Gen
Error 22 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 201 1
snapShot_Gen
Error 23 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 201 1
snapShot_Gen
Error 24 error C2144: syntax error : 'void' should be preceded by ';'
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 217 1
snapShot_Gen
Error 25 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 217 1
snapShot_Gen
Error 26 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 217 1
snapShot_Gen
Error 27 error C2146: syntax error : missing ';' before identifier
'GLboolean' c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h
232 1 snapShot_Gen
Error 28 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 232 1
snapShot_Gen
Error 29 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 232 1
snapShot_Gen
Error 30 error C2146: syntax error : missing ';' before identifier
'GLboolean' c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h
248 1 snapShot_Gen
Error 31 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 248 1
snapShot_Gen
Error 32 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 248 1
snapShot_Gen
Error 33 error C2146: syntax error : missing ';' before identifier
'OSMESAproc' c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h
265 1 snapShot_Gen
Error 34 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 265 1
snapShot_Gen
Error 35 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 265 1
snapShot_Gen
Error 36 error C2144: syntax error : 'void' should be preceded by ';'
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 274 1
snapShot_Gen
Error 37 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 274 1
snapShot_Gen
Error 38 error C2086: 'int GLAPI' : redefinition
c:\mesalib-7.5.1_snapshot_test\mesa-7.5.1\include\gl\osmesa.h 274 1
snapShot_Gen
54 IntelliSense: identifier "GLAPI" is undefined
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 131 1
snapShot_Gen
55 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 131 21
snapShot_Gen
56 IntelliSense: this declaration has no storage class or type specifier
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 141 1
snapShot_Gen
57 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 141 7
snapShot_Gen
58 IntelliSense: variable "GLAPI" is not a type name
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 173 1
snapShot_Gen
59 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 173 17
snapShot_Gen
60 IntelliSense: variable "GLAPI" is not a type name
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 183 1
snapShot_Gen
61 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 183 21
snapShot_Gen
62 IntelliSense: this declaration has no storage class or type specifier
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 201 1
snapShot_Gen
63 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 201 7
snapShot_Gen
64 IntelliSense: this declaration has no storage class or type specifier
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 217 1
snapShot_Gen
65 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 217 7
snapShot_Gen
66 IntelliSense: variable "GLAPI" is not a type name
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 232 1
snapShot_Gen
67 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 232 17
snapShot_Gen
68 IntelliSense: variable "GLAPI" is not a type name
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 248 1
snapShot_Gen
69 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 248 17
snapShot_Gen
70 IntelliSense: variable "GLAPI" is not a type name
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 265 1
snapShot_Gen
71 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 265 18
snapShot_Gen
72 IntelliSense: this declaration has no storage class or type specifier
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 274 1
snapShot_Gen
73 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\include\GL\osmesa.h 274 7
snapShot_Gen
74 IntelliSense: expected a ';'
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\windows\VC8\mesa\snapShot_Gen\main.cpp
1515 17 snapShot_Gen
75 IntelliSense: identifier "ctx" is undefined
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\windows\VC8\mesa\snapShot_Gen\main.cpp
1525 3 snapShot_Gen
76 IntelliSense: identifier "OSMesaCreateContextExt" is undefined
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\windows\VC8\mesa\snapShot_Gen\main.cpp
1525 9 snapShot_Gen
77 IntelliSense: identifier "OSMesaMakeCurrent" is undefined
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\windows\VC8\mesa\snapShot_Gen\main.cpp
1542 8 snapShot_Gen
78 IntelliSense: identifier "OSMesaDestroyContext" is undefined
c:\MesaLib-7.5.1_snapshot_test\Mesa-7.5.1\windows\VC8\mesa\snapShot_Gen\main.cpp
1563 3 snapShot_Gen



Thanks & Regards,
Vikram

_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.