PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : wine und winex gl kompilierungs fehler



JayDEF
28.12.02, 17:55
Hallo Leute,

ich bekomme immer folgende Meldungen beim kompilieren von Wine oder WineX:
In file included from d3dgl_private.h:5,
from caps.c:18:
../../include/wine_gl.h:74: warning: redefinition of `PFNGLACTIVETEXTUREARBPROC'
/usr/local/include/GL/gl.h:2078: warning: `PFNGLACTIVETEXTUREARBPROC' previously declared here
../../include/wine_gl.h:75: warning: redefinition of `PFNGLCLIENTACTIVETEXTUREARBPROC'
/usr/local/include/GL/gl.h:2079: warning: `PFNGLCLIENTACTIVETEXTUREARBPROC' previously declared here
../../include/wine_gl.h:76: warning: redefinition of `PFNGLMULTITEXCOORD2FARBPROC'
/usr/local/include/GL/gl.h:2090: warning: `PFNGLMULTITEXCOORD2FARBPROC' previously declared here
In file included from caps.c:18:
d3dgl_private.h:108: parse error before "PFNGLWEIGHTPOINTERARBPROC"
d3dgl_private.h:108: warning: no semicolon at end of struct or union
d3dgl_private.h:108: warning: type defaults to `int' in declaration of `glVertexBlendARB'
d3dgl_private.h:108: warning: data definition has no type or storage class
d3dgl_private.h:110: parse error before '}' token
d3dgl_private.h:110: warning: type defaults to `int' in declaration of `DD_GL_data'
d3dgl_private.h:110: warning: data definition has no type or storage class
caps.c:22: parse error before '*' token
caps.c:23: parse error before '*' token
caps.c:24: parse error before '*' token
caps.c:25: parse error before '*' token
caps.c: In function `D3DGL_Init':
caps.c:29: `gld' undeclared (first use in this function)
caps.c:29: (Each undeclared identifier is reported only once
caps.c:29: for each function it appears in.)
caps.c:42: parse error before ')' token
caps.c:60: `PFNGLWEIGHTPOINTERARBPROC' undeclared (first use in this function)
caps.c:60: parse error before "extproc"
caps.c:60: `PFNGLVERTEXBLENDARBPROC' undeclared (first use in this function)
caps.c:60: parse error before "extproc"
caps.c:199: `GL_MAX_VERTEX_UNITS_ARB' undeclared (first use in this function)
caps.c: At top level:
caps.c:285: parse error before '*' token
caps.c: In function `fill_prim_caps':
caps.c:287: `pc' undeclared (first use in this function)
caps.c:291: `gld' undeclared (first use in this function)
caps.c: At top level:
caps.c:343: parse error before '*' token
caps.c: In function `check_exts':
caps.c:351: `gld' undeclared (first use in this function)
caps.c: At top level:
caps.c:356: parse error before '*' token
caps.c: In function `add_texture_fmts':
caps.c:363: `lpData' undeclared (first use in this function)
caps.c:446: `gld' undeclared (first use in this function)
caps.c: At top level:
caps.c:475: parse error before '*' token
caps.c: In function `add_zbuffer_fmts':
caps.c:480: `lpDD' undeclared (first use in this function)
caps.c: In function `D3DGL_GetCaps':
caps.c:505: `gld' undeclared (first use in this function)
caps.c:505: parse error before ')' token
make[2]: *** [caps.o] Error 1
make[2]: Leaving directory `/root/wine/dlls/d3dgl'
make[1]: *** [d3dgl/libd3dgl.so] Error 2
make[1]: Leaving directory `/root/wine/dlls'
make: *** [dlls] Error 2

Bei configure bekomme ich diese Meldung:
*** Warning: you explicitly linked in a thread-safe OpenGL version. If you
*** experience unusual crashes on DirectDraw games, try first to disable OpenGL
*** support before reporting bugs.

Ich vermute das die Radeon8500 Treiber anderst implementiert sind.
Was denkt ihr?

Ciao

kippndreser
28.12.02, 21:54
Sowas ähnliches hatte ich auch, aber nur bei WINEX. Bei WINE wars nicht oder ich hab da wo es bei WINE war nicht probiert.

Ich hab vor einiger Zeit einen simplen Patch an deren Mailingliste geschickt.. bis jetzt ists scheinbar leider nicht aufgenommen worden.

hier ist ein diff, noch keine Garantie daß es noch funzt.. hab WINEX lange nicht kompiliert.



Index: wine/include/wine_gl.h
================================================== =================
RCS file: /cvsroot/winex/wine/include/wine_gl.h,v
retrieving revision 1.11
diff -c -r1.11 wine_gl.h
*** wine/include/wine_gl.h 13 Dec 2002 22:13:36 -0000 1.11
--- wine/include/wine_gl.h 28 Dec 2002 21:49:17 -0000
***************
*** 27,32 ****
--- 27,33 ----
#undef WINAPI

#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
+ #define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glu.h>
#define GLX_GLXEXT_PROTOTYPES
***************
*** 42,48 ****
GL_ARB_multitexture (Mesa gl.h defines GL_ARB_multitexture
itself, rather than leaving it up to glext.h - aak!) */

! #if defined(GL_ARB_multitexture)
#define WINE_DDRAW_need_multitexture_pfns
#endif

--- 43,49 ----
GL_ARB_multitexture (Mesa gl.h defines GL_ARB_multitexture
itself, rather than leaving it up to glext.h - aak!) */

! #if defined(GL_ARB_multitexture) && (GL_GLEXT_VERSION < 17)
#define WINE_DDRAW_need_multitexture_pfns
#endif



Update: bei mir compilierts noch mit aktuellem winex-cvs, aber nur mit diesem diff

Marcw
29.12.02, 15:23
seht mal hier nach http://www.linuxforen.de/forums/showthread.php?s=&threadid=56998&highlight=counterstrike

radeon
30.12.02, 03:46
Ola,

den Fehler hatte ich auch vor kurzem. In /usr/local/include/GL/gl.h liegt vermutlich eine ziemlich neue gl.h - Version von einer XFree-CVS-Version? Bei mir war es einfach die Lösung, dass ich die Sourcen entfernt habe, da ich ohnehin wieder das SuSE-XFree mit dem FireGL-Treiber verwendet habe. Wine verwendet wohl noch eine ältere mesa-Version als die aktuellste XFree-Version.

radeon

JayDEF
30.12.02, 12:22
Hi,

ich verwende RedHat8 und die mitgelieferte XFree 4.2.x.
Ist die GL.h eine von XFree zugehörige Source oder vom
Grafiktreiber? Mesa hab ich per Hand kompiliert und nachinstalliert.
Mesa5 glaub ich. Ist das vielleicht zu "Neu"?

Ciao

kippndreser
30.12.02, 12:48
hat der Patch/DIFF nichts geholfen?

JayDEF
30.12.02, 15:16
Hab ich noch nicht ausprobiert.
Hab auch grad keine Motivation dazu.
Erst im neuen Jahr wieder.

Guten Rutsch!