Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#122762 10/01/23 03:04 AM
Joined: Sep 2000
Posts: 249
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 249
Trying to run MAME 0.259 gives me an SDL error

dyld[73553]: Symbol not found: _SDL_CloseAudio
Referenced from: <4A0E5581-6197-35A2-9F7B-837624939CE2> /Users/will/MAME/mame
Expected in: <no uuid> unknown
zsh: abort ./mame dkong

I'm running macOS Ventura 13.6, compiled with Clang 15.0.0, SDL2-2.28.1


=will=
Joined: Mar 2001
Posts: 17,142
Likes: 164
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,142
Likes: 164
That's weird, I'm definitely not seeing that (Clang 15.0.0, SDL2 2.28.1, on Sonoma 14.1 beta).

Joined: May 1999
Posts: 613
Likes: 1
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
This won't help your situation, will, but I'm getting another error with a self-compiled version of MAME 0.259 (I made no changes whatsoever to the source):

dyld[27360]: Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
Referenced from: <811A08ED-B2EB-3010-B006-9ACEC11B2156> /Applications/Emulation/MAME/MAME
Reason: no LC_RPATH's found

I downloaded a pre-compiled version that works just fine, though.

Clang: 15.0
SDL: 2.28.3
macOS: 14.0

Last edited by Carbon; 10/01/23 09:46 AM.
Joined: Sep 2000
Posts: 249
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 249
Tested on another Mac running macOS 14.0, Clang 15.0.0, SDL 2.0.14, similar error

dyld[15723]: Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
Referenced from: <4CAD55D8-E0C1-3C88-BFD9-6E55E1F75EF9> /Volumes/storage/mame0259s/mame
Reason: no LC_RPATH's found
zsh: abort ./mame dkong


=will=
Joined: Sep 2000
Posts: 249
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 249
Updated my other Mac to Sonoma 14.1, same issue.

Carbon where did you find a precompiled version?


=will=
Joined: Mar 2001
Posts: 17,142
Likes: 164
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,142
Likes: 164
Ok. I might have to update the directions to use the Homebrew version of SDL2, which definitely works fine.

If you have Homebrew installed already, "brew install sdl2" and rebuild MAME with USE_LIBSDL=1 (and REGENIE=1 so the change takes effect) and MAME will use it instead of the framework. That has the bonus that a "brew update / brew upgrade" will upgrade SDL2 for you.

Joined: May 1999
Posts: 613
Likes: 1
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
Originally Posted by will
Updated my other Mac to Sonoma 14.1, same issue.

Carbon where did you find a precompiled version?

Here

Joined: Sep 2000
Posts: 249
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 249
I don't have or know what Homebrew is. I've never needed it before. So is this a source code bug? Do we know what's causing this? It's happening with multiple computers and version of macOS.


=will=
Joined: May 1999
Posts: 613
Likes: 1
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
Originally Posted by R. Belmont
Ok. I might have to update the directions to use the Homebrew version of SDL2, which definitely works fine.

If you have Homebrew installed already, "brew install sdl2" and rebuild MAME with USE_LIBSDL=1 (and REGENIE=1 so the change takes effect) and MAME will use it instead of the framework. That has the bonus that a "brew update / brew upgrade" will upgrade SDL2 for you.

Using your instructions I was able to compile a working executable of MAME 0.259 (I already had Homebrew installed).

Last edited by Carbon; 10/01/23 03:18 PM.
Joined: Mar 2001
Posts: 17,142
Likes: 164
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,142
Likes: 164
Originally Posted by will
I don't have or know what Homebrew is. I've never needed it before. So is this a source code bug? Do we know what's causing this? It's happening with multiple computers and version of macOS.

I don't know - I didn't change anything, and I've been building with the Homebrew version of SDL2 for a while. I'll certainly try and figure out what's going on with the framework version though.

Joined: Mar 2001
Posts: 17,142
Likes: 164
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,142
Likes: 164
I've verified the error with the Framework version of SDL2. I'm going to try 0.258 to see if it's something that got changed on our end without me knowing or if it's something SDL or Apple changed.

Joined: Sep 2000
Posts: 249
W
will Offline OP
Senior Member
OP Offline
Senior Member
W
Joined: Sep 2000
Posts: 249
Thanks RB! Honestly I didn't know there were any framework alternatives.

Last edited by will; 10/01/23 04:38 PM.

=will=
Joined: Mar 2001
Posts: 17,142
Likes: 164
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,142
Likes: 164

Page 1 of 2 1 2

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (1 invisible), 85 guests, and 4 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,281
Posts121,425
Members5,064
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