|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Aug 2001
Città: San Francisco, CA, USA
Messaggi: 13827
|
Compilare l'ultimo XMAME 0.88 con supporto OpenGL
Qualcuno ci è riuscito??
Io sulla mia debian ho parecchi problemi. Sono riuscito a compilare XMAME 0.86 senza problemi con supporto OpenGL , ma lo 0.88 proprio no , ecco gli errori : Codice:
melchior@melchior:~/xmame-0.88$ make -f makefile.unix DISPLAY_METHOD=xgl
[OSDEPEND] Compiling src/unix/video-drivers/xgl.c ...
In file included from src/unix/video-drivers/glxtool.h:34,
from src/unix/video-drivers/xgl.c:24:
src/unix/video-drivers/glx-disp-var.h:10: error: parse error before "GLXPixmap"
src/unix/video-drivers/glx-disp-var.h:13: error: parse error before '*' token
src/unix/video-drivers/glx-disp-var.h:13: warning: type defaults to `int' in declaration of `GLXPixmap'
src/unix/video-drivers/glx-disp-var.h:13: error: `GLXPixmap' declared as function returning a function
src/unix/video-drivers/glx-disp-var.h:15: error: parse error before '*' token
src/unix/video-drivers/glx-disp-var.h:15: error: parse error before "GLXContext"
src/unix/video-drivers/glx-disp-var.h:15: warning: type defaults to `int' in declaration of `GLXContext'
src/unix/video-drivers/glx-disp-var.h:15: error: `GLXContext' declared as function returning a function
src/unix/video-drivers/glx-disp-var.h:16: error: parse error before '*' token
src/unix/video-drivers/glx-disp-var.h:16: warning: type defaults to `int' in declaration of `GLXContext'
src/unix/video-drivers/glx-disp-var.h:16: error: `GLXContext' declared as function returning a function
src/unix/video-drivers/glx-disp-var.h:17: error: parse error before "GLXContext"
src/unix/video-drivers/glx-disp-var.h:19: error: parse error before "GLXDrawable"
src/unix/video-drivers/glx-disp-var.h:20: error: parse error before "GLXDrawable"
In file included from src/unix/video-drivers/xgl.c:24:
src/unix/video-drivers/glxtool.h:38: error: parse error before "GLXContext"
src/unix/video-drivers/glxtool.h:38: warning: no semicolon at end of struct or union
src/unix/video-drivers/glxtool.h:40: error: parse error before '}' token
src/unix/video-drivers/glxtool.h:40: warning: type defaults to `int' in declaration of `VisualGC'
src/unix/video-drivers/glxtool.h:40: warning: data definition has no type or storage class
src/unix/video-drivers/glxtool.h:44: error: parse error before "GLXContext"
src/unix/video-drivers/glxtool.h:51: error: parse error before "findVisualGlX"
src/unix/video-drivers/glxtool.h:59: error: parse error before "GLXContext"
src/unix/video-drivers/glxtool.h:63: warning: type defaults to `int' in declaration of `findVisualGlX'
src/unix/video-drivers/glxtool.h:63: warning: data definition has no type or storage class
src/unix/video-drivers/xgl.c:42: error: parse error before "glContext"
src/unix/video-drivers/xgl.c:42: warning: type defaults to `int' in declaration of `glContext'
src/unix/video-drivers/xgl.c:42: warning: initialization makes integer from pointer without a cast
src/unix/video-drivers/xgl.c:42: warning: data definition has no type or storage class
src/unix/video-drivers/xgl.c: In function `xgl_open_display':
src/unix/video-drivers/xgl.c:158: error: parse error before "vgc"
src/unix/video-drivers/xgl.c:184: error: `vgc' undeclared (first use in this function)
src/unix/video-drivers/xgl.c:184: error: (Each undeclared identifier is reported only once
src/unix/video-drivers/xgl.c:184: error: for each function it appears in.)
make: *** [xmame.obj/unix.xgl/video-drivers/xgl.o] Error 1
melchior@melchior:~/xmame-0.88$
Ciao
__________________
GPU Compiler Engineer |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: May 2003
Messaggi: 283
|
Usi i driver nVidia? Se si ti ci vogliono anche gli header di nVidia.
Ok, a dire la verità non so assolutamente se e' questo il problema ma ti indico un problema che ho avuto io con un'altro programma OpenGl
__________________
/*** * Nulla è impossibile per chi non deve farlo ***/ |
|
|
|
|
|
#3 |
|
Member
Iscritto dal: May 2001
Città: Catania
Messaggi: 104
|
l'ho fatto da poco e non mi ha dato nessun errore, però non ho messo come te DISPLAY_METHOD=xgl ma ho editato il makefile. Slack con gcc 3.4.2 e driver dri.
Se hai una versione diversa di gcc magari prova con quella che ho usato io...
__________________
MoBlock |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:06.



















