Previous Thread
Next Thread
Print Thread
Page 29 of 44 1 2 27 28 29 30 31 43 44
Joined: Oct 2015
Posts: 26
J
Member
Member
J Offline
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,223
Likes: 387
J
Very Senior Member
Very Senior Member
J Offline
Joined: May 2009
Posts: 2,223
Likes: 387
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
Member
J Offline
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: 818
Likes: 3
D
Senior Member
Senior Member
D Offline
Joined: Apr 2006
Posts: 818
Likes: 3
Use this STRIP_SYMBOLS=1 with SYMBOLS=1. It will shrink the exe size down into the 100mb or over. smile


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Joined: Mar 2001
Posts: 17,250
Likes: 265
R
Very Senior Member
Very Senior Member
R Online: Content
Joined: Mar 2001
Posts: 17,250
Likes: 265
STRIP_SYMBOLS also makes the result unable to be debugged, which is kind of important for Jezze smile

Joined: Apr 2006
Posts: 818
Likes: 3
D
Senior Member
Senior Member
D Offline
Joined: Apr 2006
Posts: 818
Likes: 3
That sucks


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Joined: Jan 2012
Posts: 1,191
Likes: 17
R
Very Senior Member
Very Senior Member
R Online: Happy
Joined: Jan 2012
Posts: 1,191
Likes: 17
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
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: 17,250
Likes: 265
R
Very Senior Member
Very Senior Member
R Online: Content
Joined: Mar 2001
Posts: 17,250
Likes: 265
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
Member
Joined: Aug 2012
Posts: 74
Turns out I was missing the libsdl2-ttf-dev package. Oops.

Page 29 of 44 1 2 27 28 29 30 31 43 44

Link Copied to Clipboard
Who's Online Now
3 members (Pernod, Dorando, robcfg), 128 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,345
Posts122,350
Members5,082
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0