|
Help compiling MAME
#379425 - 11/08/18 11:05 PM
|
|
|
Hello to everyone, I've tried a couple of times in the past to compile a fresh MAME build from github but it always fail giving me the following message
In file included from ../../../../../3rdparty/bgfx/src/glcontext_glx.cpp:13:0: ../../../../../3rdparty/bgfx/3rdparty/khronos/glx/glxext.h:39:0: error: "GLX_GLXEXT_VERSION" redefined [-Werror] #define GLX_GLXEXT_VERSION 20131028 In file included from /usr/include/GL/glx.h:333:0, from ../../../../../3rdparty/bgfx/src/glcontext_glx.h:12, from ../../../../../3rdparty/bgfx/src/renderer_gl.h:960, from ../../../../../3rdparty/bgfx/src/glcontext_glx.cpp:9: /usr/include/GL/glxext.h:37:0: note: this is the location of the previous definition #define GLX_GLXEXT_VERSION 20180525
cc1plus: all warnings being treated as errors bgfx.make:468: recipe for target '../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_glx.o' failed make[2]: *** [../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_glx.o] Error 1 Makefile:73: recipe for target 'bgfx' failed make[1]: *** [bgfx] Error 2 make[1]: *** Waiting for unfinished jobs....
makefile:1280: recipe for target 'linux_x64' failed make: *** [linux_x64] Error 2
my system is Kernel:4.15.0-38-generic x86_64 bits: 64 gcc: 7.3.0 Desktop: Cinnamon 3.8.9 (Gtk 2.24.32) dm: lightdm Distro: Linux Mint 19 Tara
I have installed the prerequisites with sudo apt-get install git build-essential libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default
Any ideas? Thanks
|
|
|
Tafoid![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
I keep on testing.. testing.. testing... into the future!
|
|
|
Reged: 04/19/06
|
Posts: 3137
|
Loc: USA
|
|
Send PM
|
|
|
Re: Help compiling MAME
[Re: nikolasrozos]
#379426 - 11/09/18 02:55 AM
|
|
|
> Hello to everyone, > I've tried a couple of times in the past to compile a fresh MAME build from github > but it always fail giving me the following message > > > In file included from ../../../../../3rdparty/bgfx/src/glcontext_glx.cpp0: > ../../../../../3rdparty/bgfx/3rdparty/khronos/glx/glxext.h0: error: > "GLX_GLXEXT_VERSION" redefined [-Werror] > #define GLX_GLXEXT_VERSION 20131028 > > In file included from /usr/include/GL/glx.h0, > from ../../../../../3rdparty/bgfx/src/glcontext_glx.h:12, > from ../../../../../3rdparty/bgfx/src/renderer_gl.h:960, > from ../../../../../3rdparty/bgfx/src/glcontext_glx.cpp > /usr/include/GL/glxext.h0: note: this is the location of the previous definition > #define GLX_GLXEXT_VERSION 20180525 > > cc1plus: all warnings being treated as errors > bgfx.make recipe for target > '../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_glx.o' failed > make[2]: *** > [../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_glx.o] Error 1 > Makefile recipe for target 'bgfx' failed > make[1]: *** [bgfx] Error 2 > make[1]: *** Waiting for unfinished jobs.... > > makefile recipe for target 'linux_x64' failed > make: *** [linux_x64] Error 2 > > > my system is > Kernel:4.15.0-38-generic x86_64 bits: 64 gcc: 7.3.0 > Desktop: Cinnamon 3.8.9 (Gtk 2.24.32) dm: lightdm Distro: Linux Mint 19 Tara > > I have installed the prerequisites with > sudo apt-get install git build-essential libsdl2-dev libsdl2-ttf-dev > libfontconfig-dev qt5-default > > > Any ideas? Thanks
Quick suggestion would be to try adding NOWERROR=1 to the make string, since the error seems to be a warning you can bypass. Beyond that, I have no ideas.
|
|
|
|
Re: Help compiling MAME
[Re: Tafoid]
#379444 - 11/09/18 03:07 PM
|
|
|
Thanks you for your suggestion but I get the same result
make NOWERROR=1 GCC 7 detected Compiling 3rdparty/bgfx/src/glcontext_glx.cpp... In file included from ../../../../../3rdparty/bgfx/src/glcontext_glx.cpp:13:0: ../../../../../3rdparty/bgfx/3rdparty/khronos/glx/glxext.h:39:0: error: "GLX_GLXEXT_VERSION" redefined [-Werror] #define GLX_GLXEXT_VERSION 20131028 In file included from /usr/include/GL/glx.h:333:0, from ../../../../../3rdparty/bgfx/src/glcontext_glx.h:12, from ../../../../../3rdparty/bgfx/src/renderer_gl.h:960, from ../../../../../3rdparty/bgfx/src/glcontext_glx.cpp:9: /usr/include/GL/glxext.h:37:0: note: this is the location of the previous definition #define GLX_GLXEXT_VERSION 20180525 cc1plus: all warnings being treated as errors bgfx.make:468: recipe for target '../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_glx.o' failed make[2]: *** [../../../../linux_gcc/obj/x64/Release/3rdparty/bgfx/src/glcontext_glx.o] Error 1 Makefile:73: recipe for target 'bgfx' failed make[1]: *** [bgfx] Error 2 makefile:1280: recipe for target 'linux_x64' failed make: *** [linux_x64] Error 2
|
|
|
|
Re: Help compiling MAME
[Re: nikolasrozos]
#379754 - 11/29/18 10:37 PM
|
|
|
Just ran across this issue in 0.204 on my Arch Linux box (4.19.4-arch1-1-ARCH). Never had an issue compiling MAME on this box until this version.
Anyways, I just commented out the declare in:
3rdparty/khronos/glx/glxext.h
and reran make.
|
|
|
R. Belmont |
Cuckoo for IGAvania
|
|
|
Reged: 09/21/03
|
Posts: 9716
|
Loc: ECV-197 The Orville
|
|
Send PM
|
|
|
Re: Help compiling MAME
[Re: nikolasrozos]
#379867 - 12/02/18 06:26 PM
|
|
|
> Thanks you for your suggestion but I get the same result > > make NOWERROR=1
Because you need to instead
make NOWERROR=1 REGENIE=1
to cause the makefile to be regenerated with the new options.
And stop using minority Linux distributions, people. Fedora 29 works great, and so does recent Ubuntu.
|
|
|
|
Re: Help compiling MAME
[Re: R. Belmont]
#379868 - 12/02/18 06:30 PM
|
|
|
> And stop using minority Linux distributions, people. Fedora 29 works great, and so > does recent Ubuntu.
I think latest Ubuntu actually does need NOWERROR=1 due to this redefined macro thing.
|
|
|
|
Re: Help compiling MAME
[Re: Paul Boehmer]
#379870 - 12/02/18 07:45 PM
|
|
|
|
R. Belmont |
Cuckoo for IGAvania
|
|
|
Reged: 09/21/03
|
Posts: 9716
|
Loc: ECV-197 The Orville
|
|
Send PM
|
|
|
Re: Help compiling MAME
[Re: Vas Crabb]
#379871 - 12/02/18 07:54 PM
|
|
|
> > And stop using minority Linux distributions, people. Fedora 29 works great, and so > > does recent Ubuntu. > > I think latest Ubuntu actually does need NOWERROR=1 due to this redefined macro > thing.
Did gorram Khronos change it or something, or are we just too far behind on upstream BGFX now?
|
|
|
|
Re: Help compiling MAME
[Re: R. Belmont]
#379873 - 12/02/18 08:37 PM
|
|
|
> > > And stop using minority Linux distributions, people. Fedora 29 works great, and > so > > > does recent Ubuntu. > > > > I think latest Ubuntu actually does need NOWERROR=1 due to this redefined macro > > thing. > > Did gorram Khronos change it or something, or are we just too far behind on upstream > BGFX now?
Neither, I was able to do a single-driver build of Pac-Man on updated Ubuntu 18.10 literaly today.
|
|
|
|
Re: Help compiling MAME
[Re: R. Belmont]
#380002 - 12/12/18 11:03 AM
|
|
|
Yes, gorram Khronos changed it from __glxext_h_ to __glx_glxext_h_.
OG.
|
|
|
|
|
> Yes, gorram Khronos changed it from __glxext_h_ to __glx_glxext_h_. > > OG.
I think it's more disturbing that we're #including different versions of this header from different locations. That's bound to cause problems sooner or later.
|
|
|