Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building xmame with opengl support?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
ZeroStar
n00b
n00b


Joined: 03 Jun 2002
Posts: 9
Location: Tennessee, USA

PostPosted: Mon Jul 08, 2002 6:14 pm    Post subject: Building xmame with opengl support? Reply with quote

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
View user's profile Send private message
rphillips
Retired Dev
Retired Dev


Joined: 18 Apr 2002
Posts: 92

PostPosted: Mon Jul 08, 2002 10:31 pm    Post subject: Reply with quote

since the script doesn't use autoconf, you will have to tweak the makefiles to compile for xgl it looks like
Back to top
View user's profile Send private message
ZeroStar
n00b
n00b


Joined: 03 Jun 2002
Posts: 9
Location: Tennessee, USA

PostPosted: Tue Jul 09, 2002 12:33 am    Post subject: Reply with quote

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
View user's profile Send private message
lain iwakura
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 176
Location: sd, ca

PostPosted: Tue Jul 09, 2002 3:50 am    Post subject: Reply with 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.
_________________
[resident anime junkie] -- not just a linux freak.
Back to top
View user's profile Send private message
ZeroStar
n00b
n00b


Joined: 03 Jun 2002
Posts: 9
Location: Tennessee, USA

PostPosted: Tue Jul 09, 2002 5:58 am    Post subject: Reply with quote

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
View user's profile Send private message
lain iwakura
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 176
Location: sd, ca

PostPosted: Tue Jul 09, 2002 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message
ZeroStar
n00b
n00b


Joined: 03 Jun 2002
Posts: 9
Location: Tennessee, USA

PostPosted: Tue Jul 09, 2002 6:44 am    Post subject: Reply with quote

You rule lain iwakura!! That worked perfectly! :lol:
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
View user's profile Send private message
lain iwakura
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 176
Location: sd, ca

PostPosted: Tue Jul 09, 2002 6:53 am    Post subject: Reply with quote

ZeroStar wrote:
You rule lain iwakura!! That worked perfectly! :lol:
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
View user's profile Send private message
Craigo
Apprentice
Apprentice


Joined: 09 Aug 2002
Posts: 249
Location: /dev/life

PostPosted: Mon Aug 19, 2002 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum