Modding, Mission Design, and Coding > Cross-Platform Development

Freetype on macOS

(1/2) > >>

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: ---cliff.gordon:~  $ ~/Knossos/bin/FSO-20.1.0-20200206/macosx/
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/
  Reason: image not found
Abort trap: 6

--- End code ---

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?

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?

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?

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: ---/Users/Shared/Relocated Items/Security/usr/X11/bin/freetype-config
/Users/Shared/Relocated Items/Security/usr/X11/lib/libfreetype.6.dylib

--- End code ---

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.

 :) Hi! this works for me:

brew install freetype
brew link --overwrite freetype

I have mac os big sur and free space build 19.

Good luck!


[0] Message Index

[#] Next page

Go to full version