View previous topic :: View next topic |
Author |
Message |
ZeroStar n00b
Joined: 03 Jun 2002 Posts: 9 Location: Tennessee, USA
|
Posted: Mon Jul 08, 2002 6:14 pm Post subject: Building xmame with opengl support? |
|
|
I was wondering how you would go about building xmame with the .xgl render instead of .SDL render? When I emerge it all I get support for is .SDL. ZSNES builds with opengl and I thought xmame could too. |
|
Back to top |
|
|
rphillips Retired Dev
Joined: 18 Apr 2002 Posts: 92
|
Posted: Mon Jul 08, 2002 10:31 pm Post subject: |
|
|
since the script doesn't use autoconf, you will have to tweak the makefiles to compile for xgl it looks like |
|
Back to top |
|
|
ZeroStar n00b
Joined: 03 Jun 2002 Posts: 9 Location: Tennessee, USA
|
Posted: Tue Jul 09, 2002 12:33 am Post subject: |
|
|
How do I tweak the makefiles and still use portage to emerge it?
Do I just bypass portage on this one and compile it myself?
Sorry if this is a silly question. |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Tue Jul 09, 2002 3:50 am Post subject: |
|
|
i just do a shitty hack of the xmame ebuild file by replacing any SDL reference (there's like only 2) to xgl.
there is a better way of doing this, though -- just make another "use" section for xgl (opengl) but no one has added this as of yet. _________________ [resident anime junkie] -- not just a linux freak. |
|
Back to top |
|
|
ZeroStar n00b
Joined: 03 Jun 2002 Posts: 9 Location: Tennessee, USA
|
Posted: Tue Jul 09, 2002 5:58 am Post subject: |
|
|
I new I was on the right track. I had been editing the ebuild to allow for xgl but when I tried to emerge xmame it bombs out with the following message:
Code: |
Compiling src/unix/video.c ...
In file included from /usr/X11R6/include/GL/glx.h:27,
from video-drivers/gltool.h:54,
from video-drivers/glmame.h:35,
from video.c:11:
/usr/X11R6/include/X11/Xmd.h:134: conflicting types for `INT32'
osd_cpu.h:45: previous declaration of `INT32'
/usr/X11R6/include/X11/Xmd.h:136: redefinition of `INT16'
osd_cpu.h:44: `INT16' previously declared here
/usr/X11R6/include/X11/Xmd.h:140: redefinition of `INT8'
osd_cpu.h:43: `INT8' previously declared here
make[1]: *** [../../xmame.obj/unix.xgl/video.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmame-0.60.1-r2/work/xmame-0.60.1/src/unix'
make: *** [osdepend] Error 2
make: *** Waiting for unfinished jobs....
Compiling in the unix directory...
make[1]: Entering directory `/var/tmp/portage/xmame-0.60.1-r2/work/xmame-0.60.1/src/unix'
Compiling src/unix/video.c ...
In file included from /usr/X11R6/include/GL/glx.h:27,
from video-drivers/gltool.h:54,
from video-drivers/glmame.h:35,
from video.c:11:
/usr/X11R6/include/X11/Xmd.h:134: conflicting types for `INT32'
osd_cpu.h:45: previous declaration of `INT32'
/usr/X11R6/include/X11/Xmd.h:136: redefinition of `INT16'
osd_cpu.h:44: `INT16' previously declared here
/usr/X11R6/include/X11/Xmd.h:140: redefinition of `INT8'
osd_cpu.h:43: `INT8' previously declared here
make[1]: *** [../../xmame.obj/unix.xgl/video.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmame-0.60.1-r2/work/xmame-0.60.1/src/unix'
make: *** [osdepend] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 9, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/app-emulation/xmame/xmame-0.60.1-r2.ebuild .
|
Any help in resolving this problem would be appreciated |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Tue Jul 09, 2002 6:06 am Post subject: |
|
|
ah, just execute opengl-update xfree then try again.
i'm assuming you have a nvidia graphics chipset, so after xmame is done compiling, switch back to opengl-update nvidia _________________ [resident anime junkie] -- not just a linux freak. |
|
Back to top |
|
|
ZeroStar n00b
Joined: 03 Jun 2002 Posts: 9 Location: Tennessee, USA
|
Posted: Tue Jul 09, 2002 6:44 am Post subject: |
|
|
You rule lain iwakura!! That worked perfectly!
I would have never thought about doing a opengl-update xfree, emerge, and then changing back to nvidia.
btw, I wonder why opengl was not in the ebuild to begin with?
Oh well, it works now. Thank you very much for your help. |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Tue Jul 09, 2002 6:53 am Post subject: |
|
|
ZeroStar wrote: | You rule lain iwakura!! That worked perfectly!
I would have never thought about doing a opengl-update xfree, emerge, and then changing back to nvidia.
btw, I wonder why opengl was not in the ebuild to begin with?
Oh well, it works now. Thank you very much for your help. |
heheh. thanks. i wouldn't say i rule, though. my exp comes more from habitutation.
like i said before, i don't know why anyone hasn't added this to the ebuild as of yet. late. _________________ [resident anime junkie] -- not just a linux freak. |
|
Back to top |
|
|
Craigo Apprentice
Joined: 09 Aug 2002 Posts: 249 Location: /dev/life
|
Posted: Mon Aug 19, 2002 9:36 pm Post subject: |
|
|
Quote: |
i just do a shitty hack of the xmame ebuild file by replacing any SDL reference (there's like only 2) to xgl.
there is a better way of doing this, though -- just make another "use" section for xgl (opengl) but no one has added this as of yet.
|
How can I get to compile this with xgl? I tried my best to get it going with xgl but it keeps compiling it with SDL.
Anyone could help here? |
|
Back to top |
|
|
|