MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

nikolasrozos
MAME Fan
Reged: 02/19/12
Posts: 17
Send PM


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



TafoidAdministrator
I keep on testing.. testing.. testing... into the future!
Reged: 04/19/06
Posts: 3137
Loc: USA
Send PM


Re: Help compiling MAME new [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.



nikolasrozos
MAME Fan
Reged: 02/19/12
Posts: 17
Send PM


Re: Help compiling MAME new [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



Paul Boehmer
MAME Fan
Reged: 11/29/18
Posts: 1
Send PM


Re: Help compiling MAME new [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 new [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.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4468
Loc: Melbourne, Australia
Send PM


Re: Help compiling MAME new [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.



nikolasrozos
MAME Fan
Reged: 02/19/12
Posts: 17
Send PM


Re: Help compiling MAME new [Re: Paul Boehmer]
#379870 - 12/02/18 07:45 PM


It does compile. Thanks!



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Help compiling MAME new [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?



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2267
Send PM


Re: Help compiling MAME new [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.



Olivier Galibert
Semi-Lurker
Reged: 09/21/03
Posts: 398
Send PM


Re: Help compiling MAME new [Re: R. Belmont]
#380002 - 12/12/18 11:03 AM


Yes, gorram Khronos changed it from __glxext_h_ to __glx_glxext_h_.

OG.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4468
Loc: Melbourne, Australia
Send PM


Re: Help compiling MAME new [Re: Olivier Galibert]
#380005 - 12/12/18 12:26 PM


> 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.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 124 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1265