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,098
Likes: 153
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,098
Likes: 153
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: 604
Likes: 1
Senior Member
Online Content
Senior Member
Joined: May 1999
Posts: 604
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,098
Likes: 153
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,098
Likes: 153
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: 604
Likes: 1
Senior Member
Online Content
Senior Member
Joined: May 1999
Posts: 604
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: 604
Likes: 1
Senior Member
Online Content
Senior Member
Joined: May 1999
Posts: 604
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,098
Likes: 153
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,098
Likes: 153
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.

Page 1 of 2 1 2

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (1 invisible), 52 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,240
Posts120,958
Members5,061
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