Previous Thread
Next Thread
Print Thread
Page 29 of 42 1 2 27 28 29 30 31 41 42
Joined: Oct 2015
Posts: 26
J
Member
Offline
Member
J
Joined: Oct 2015
Posts: 26
I have a problem to compile MAME as debug build (release build is totally fine). The compiling itself actually works, but I get an .exe file that is over 2.5 GB large and cannot be opened.

I compile with the official MAME Build Tools from GitHub and using the following command line.

Code:
set MINGW64=C:\Projects\MAME\buildtools\vendor\mingw64
set PATH=%MINGW64%\bin;%MINGW64%\opt\bin;%MINGW64%\Qt\bin;%PATH%

gcc -v

make DEBUG=1 SYMBOLS=1


I also tried to compile a debug build with Visual Studio and got a similar result. Furthermore no .pdb file is generated.

Code:
set VSENV="C:\Programme (x86)\Microsoft Visual Studio 12.0\VC"

call %VSENV%\vcvarsall.bat amd64
call %VSENV%\dx_setenv.cmd amd64

make MSVC_BUILD=1 DEBUG=1 SYMBOLS=1


The last version of MAME I could compile as debug build with .pdb file was 0.159, where the .exe file was around 180 MB and the .pdb filearound 400 MB, which could be debugged perfectly well with Visual Studio.

Anyway, the .pdb file would be really nice to have, but the oversized .exe file is completely useless.

I hope someone can give me an advice how to fix this.

Joined: May 2009
Posts: 2,023
Likes: 59
J
Very Senior Member
OP Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,023
Likes: 59
Use a subtarget instead of a full build. You're probably most concerned with arcade games, so use SUBTARGET=arcade when invoking make.

Joined: Oct 2015
Posts: 26
J
Member
Offline
Member
J
Joined: Oct 2015
Posts: 26
Thanks for the hint. The .exe file is still oversized (1.6 GB), but can now be opened.

Originally Posted By Jezze
The last version of MAME I could compile as debug build with .pdb file was 0.159 [...]

To be more precise, it was UME not MAME.

Joined: Apr 2006
Posts: 728
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 728
Use this STRIP_SYMBOLS=1 with SYMBOLS=1. It will shrink the exe size down into the 100mb or over. smile


Windows 10 Home 64-bit / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 16 GB
Joined: Mar 2001
Posts: 16,892
Likes: 51
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,892
Likes: 51
STRIP_SYMBOLS also makes the result unable to be debugged, which is kind of important for Jezze smile

Joined: Apr 2006
Posts: 728
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 728
That sucks


Windows 10 Home 64-bit / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 16 GB
Joined: Jan 2012
Posts: 1,157
Likes: 5
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2012
Posts: 1,157
Likes: 5
I've had the compilation of MAME stopped since one or two major revisions (now again with 0.168) on lucky8.lay without any error message, just hanging on make.exe.

This is with latest, updated official build tools on Windows 10 x64, clean build from current GIT.

It's always lucky8.lay, on different machines.


NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
I'm having trouble compiling MAME from git on Ubuntu using the following commandline:

Code:
make -j9 NOWERROR=1 PTR64=1 sse4=1


Part way through I get the following:

Code:
Archiving libnetlist.a...
make: *** [linux_x64] Error 2

Last edited by arcadefan; 11/26/15 03:10 PM.
Joined: Mar 2001
Posts: 16,892
Likes: 51
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,892
Likes: 51
The error occured prior to that line, look up through the log for something failing and copy/paste that part.

Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
Turns out I was missing the libsdl2-ttf-dev package. Oops.

Page 29 of 42 1 2 27 28 29 30 31 41 42

Link Copied to Clipboard
Who's Online Now
3 members (Praxis, mixmaster, Vas Crabb), 18 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,070
Posts118,935
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com