intfiction.org

The Interactive Fiction Community Forum
It is currently Wed Aug 23, 2017 4:57 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Tue Oct 11, 2016 11:54 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5426
Quote:
The libraries need to be copied into Gargoyle.app/Contents/Frameworks, then library references from other libraries and executables have to be fixed.


That's what I'm doing. See https://github.com/erkyrath/garglk/blob ... yle_osx.sh .

I added a special case for /usr/local/opt/sdl/lib/libSDL-1.2.0.dylib because that's not showing up as a reference to /usr/local/lib/libSDL-1.2.0.dylib . (Yes, those are identical files.) However, I guess I did it wrong.

Quote:
It's also important to pass the "version-min" option in the link step or it won't work.


That's set.

Code:
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.9
      sdk 10.12


Top
 Profile Send private message  
 
PostPosted: Tue Oct 11, 2016 12:01 pm 
Offline

Joined: Mon Oct 10, 2016 11:54 pm
Posts: 11
I'm an idiot! I forgot that since Homebrew 1.0 some packages are installed to "/usr/local/opt" and others into "/usr/local/lib". I think *all* libraries are available on "/usr/local/opt" but I'm not certain (and can't check right now)


Top
 Profile Send private message  
 
PostPosted: Tue Oct 11, 2016 12:03 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5426
otool -L says that *most* of the dylibs in the binaries are set up in this damnfool way (not /usr/local/lib), so I need to fix it up a lot more.

Sorry. Do not attempt to use this build until further notice.


Top
 Profile Send private message  
 
PostPosted: Tue Oct 11, 2016 12:08 pm 
Offline

Joined: Mon Oct 10, 2016 11:54 pm
Posts: 11
Yes. I'm not sure what possessed the Homebrew people from splitting them up like that. Something about "bottles" and "kegs" I don't fully understand.

I mean, in my install SDL is in "/usr/local/lib" while yours is "/usr/local/opt". Makes no sense.

One more tool I use is the Activity Monitor. Click the process name then the info button/icon. In the dialog click the "Open Files" tab and you'll see all the libraries the program is using and where they're being loaded from. There's probably a way to do this from the terminal but I don't know it.


Top
 Profile Send private message  
 
PostPosted: Tue Oct 11, 2016 12:24 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5426
It's particularly annoying that the compiles are done with -L/usr/local/lib and there *is a file* /usr/local/lib/libSDL-1.2.0.dylib but that's not what the binary winds up naming.

I will go over the script again, but not tonight.


Top
 Profile Send private message  
 
PostPosted: Wed Oct 12, 2016 2:36 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5426
Okay, I think I covered all the gaps this time. Try it again.

http://eblong.com/zarf/tmp/gargoyle-201 ... ch.mac.dmg

(The build script is now thoroughly uglified. If the project winds up adopting it, I am seriously burning it to the ground and rewriting in Python.)


Top
 Profile Send private message  
 
PostPosted: Wed Oct 12, 2016 3:04 pm 
Offline

Joined: Sun Apr 18, 2010 3:58 pm
Posts: 728
It started on my El Capitan machine.

_________________
At Choice of Games, we sell long-form choice-based interactive fiction games. We're looking for writers, paid in advance.


Top
 Profile Send private message  
 
PostPosted: Wed Oct 12, 2016 3:04 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5426
Yay!


Top
 Profile Send private message  
 
PostPosted: Wed Oct 12, 2016 3:19 pm 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 1519
Works on my Sierra too.

_________________
BlogTextureVorple


Top
 Profile Send private message  
 
PostPosted: Wed Oct 12, 2016 8:05 pm 
Offline

Joined: Mon Oct 10, 2016 11:54 pm
Posts: 11
Just one more confirmation, macOS Sierra. Thank you for the quick response.

dfabulich wrote:
It started on my El Capitan machine.


I suppose this means macOS doesn't check the libraries' VERSION_MIN entry, only the main executables. Good to know.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group