Previous Thread
Next Thread
Print Thread
Page 42 of 44 1 2 40 41 42 43 44
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
It shouldn't be using more memory than 0.227 to compile as far as I'm aware. Maybe something else running is using a lot of memory?

Joined: Mar 2010
Posts: 155
Likes: 1
S
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 155
Likes: 1
Okay, this time I took a closer look at running applications and memory usage at compile-time and tracked the issue to something on this end. Thanks for your help in sleuthing this out.

Joined: Mar 2015
Posts: 240
Likes: 3
R
Rik Offline
Senior Member
Offline
Senior Member
R
Joined: Mar 2015
Posts: 240
Likes: 3
I have a possible noob compiling question here. smile
I'm trying to compile a very specific build of MAME (handheld games only). I can set it to the specific drivers easily enough which eliminates most of what I don't want, but some drivers have things in them that aren't games (like hh_tms1k.cpp has a bunch of TI Calculators). I'd like to remove individual games from a driver during compile. Is there an easy way to do this?
Do I have to comment out parts of the driver itself (is just commenting out the game drivers lines at the end of each one enough?) or can I set up something during the compile to just ignore some? (That would be ideal so I don't have to keep altering the drivers when I pull down updates from .git...)

-Rik

Joined: May 2009
Posts: 2,214
Likes: 382
J
Very Senior Member
OP Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
You can comment out the GAME() or CONS() or COMP() macros at the end of the driver for starters, but then you'll most likely wind up with errors related to symbols defined but not used, since there will now be functions that are implemented but not used by anything. So you'll probably need to follow the errors down a bit of a rabbit hole until you've commented out enough things to make the compiler happy.

Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
I tried compiling mame from git but early on in the process I get this:
Code
d:/dev/msys64/home/mforan/Emulators/mame/scripts/genie.lua:558: File definition for TARGET=mame SUBTARGET=mame does not exist
stack traceback:
        [C]: in function 'error'
        d:/dev/msys64/home/mfora/Emulators/mame/scripts/genie.lua:558: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:109: in function 'dofile'
        [string "_WORKING_DIR        = os.getcwd()..."]:46: in function '_premake_main'
make: *** [makefile:1105: build/projects/windows/mame/gmake-mingw64-gcc/Makefile] Error 1
make: *** Waiting for unfinished jobs....

I used the following commandline:
Code
make -r -j7 NOWERROR=1 avx2=1 TOOLS=1 ARCHOPTS=-march=native

Any ideas?

Joined: Aug 2004
Posts: 1,458
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,458
Likes: 9
Probably shouldn't leave your surname showing there... just saying.

Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
Still no luck with this.

Joined: May 2009
Posts: 2,214
Likes: 382
J
Very Senior Member
OP Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
From which path are you invoking make?

Are you doing this from the MinGW command line? The forward slashes in that error message would seem to indicate that you're in some other type of shell.

Have you tried it without all of the non-standard things you're adding to the make invocation?

It seems like you're trying to do it in a way other than the officially documented method, so this is a "no warranty" situation.

Joined: Apr 2006
Posts: 812
Likes: 3
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 812
Likes: 3
On Ubuntu 20.04 I had to get help on getting the update tools for compiling MAME. Cesare Falco help me out on which ones need to be change.

sudo apt-get install git build-essential python libsdl2-dev libsdl2-ttf-dev libfontconfig-dev libpulse-dev qt5-default

to this

sudo apt-get install git build-essential python3-dev libsdl2-dev libsdl2-ttf-dev libfontconfig-dev libpulse-dev qtbase5-dev

Reason why.

E: Package 'python' has no installation candidate
E: Package 'qt5-default' has no installation candidate

Way too slow on compiling on my dad laptop. Intel core i5 with 6gb of memory. I tried the -j3 and it just crash the terminal. I just use make without it. Took over 5 hours.

So far no issue on running MAME. I just right click on the home/mame0246 and then bring up terminal. Type in mame and then hit enter to load it. Or just right click on mame file and then click on run to load it. Ether way.


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Joined: Apr 2006
Posts: 812
Likes: 3
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 812
Likes: 3
mame -j2 works fine. I tested this yesterday on Ubuntu. Just can't use the -j3.

My guess is that the 6GB of memory isn't good enough. Need 8GB on the laptop so it can keep going without the terminal crashes.


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
Page 42 of 44 1 2 40 41 42 43 44

Link Copied to Clipboard
Who's Online Now
5 members (Dodg, yugffuts, judge, AJR, Vag), 289 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,320
Posts121,923
Members5,074
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
Forum hosted by www.retrogamesformac.com