Author Topic: Freetype on macOS  (Read 940 times)

0 Members and 1 Guest are viewing this topic.

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Been trying to run more recent mac builds for some time, upgraded to Catalina but none of them have been working.  When trying to run the most recent build in Knossos or just doubleclicking it in the folder, a debug log doesn't even get created.  Running the binary manually in terminal though, I see this:

Code: [Select]
cliff.gordon:~  $ ~/Knossos/bin/FSO-20.1.0-20200206/macosx/fs2_open_20_1_0_20200206_aa0a1ae_x64.app/Contents/MacOS/fs2_open_20_1_0_20200206_aa0a1ae_x64
dyld: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
  Referenced from: /Users/cliff.gordon/Knossos/bin/FSO-20.1.0-20200206/macosx/fs2_open_20_1_0_20200206_aa0a1ae_x64.app/Contents/MacOS/fs2_open_20_1_0_20200206_aa0a1ae_x64
  Reason: image not found
Abort trap: 6

The error goes away when I install freetype with Homebrew, but I feel like there is probably something misconfigured in the cmake setup that is not bringing this library into the app somehow, either by static linking or copying the library into the .app?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline m!m

  • 211
When I did my research into FreeType it said that the runtime libraries would be included in the OS by default. Is this a recent incompatibility?

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
It is possible that Catalina is the first to remove them, but the location it is looking for them is not the usual directory for things that come with macOS.  But I assume they are present in the build server somehow?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

  

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Looks like it was removed not explicitly, but due to the path it was installed being locked down now.  I don't know what was responsible for them being installed before, whether it was there on the OS by default, or just installed by a previous Xcode version, but now when I look across the filesystem for 'freetype', I only find these, besides those bundled with specific apps:

Code: [Select]
/Users/Shared/Relocated Items/Security/usr/X11/bin/freetype-config
/Users/Shared/Relocated Items/Security/usr/X11/lib/libfreetype.6.dylib

Many other libs and such were moved as well.  I don't know if there's a simple process to get these libs back somehow, I have recently installed an Xcode update that doesn't seem to have done anything for me.  Gimp, VLC, PyCharm, and DbVisualizer all seem to bundle the dylib inside the app, wondering if it would be smarter to just do that ourselves now.  Would then also be nice if we included that in the prebuilt libs I think, so devs wouldn't need to install it from Brew either.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays