-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error fontforge
compilation failed – need help
#347
Comments
Likewise, confirmed. |
... is returning nil
|
Anyone else having this issue? |
+1 I guess the problem is with fontforge version. Will try to downgrade fontforge version. |
Anyone knows how to downgrade fontforge? I try to build from source but unsuccessful |
I installed via the Homebrew method. Homebrew does not seem to have older versions of fontforge available, which poses a problem for downgrading. |
After digging a bit inside font.rb, we can see a seg fault when fontcustom is calling fontforge [1] 8436 segmentation fault fontforge -script .fontcustom-manifest.json
We did try to downgrade fontforge with brew, but we would not recommend go that way :/ . Older fontforge version are using libjpeg8d (so lib loading issue if you have 9b), and even older will have an issue with cmzq version. |
I think I've found a possible temporary solution which is working for me, not sure if it's working for anyone else though. So here's what I did: First I edited the formula using
and replaced the file's contents with this older version: Then I ran
and
With this older version of fontforge I'm now able to build my webfonts again. Thanks everybody who contributed to this thread and pointed me into the right direction! |
@gpluess thanks, worked for me as well! I just needed to run
as well and then ran into a libjpeg problem which I solved with this kind person's help - https://stackoverflow.com/a/45546980/6887881 Just if anyone's searching. |
Thanks for you replies. However i'm still getting error as follows after applying @gpluess script:
|
This solved the jpeg issues. Thanks @roh26it |
I'm still getting error after downgrade fontforge
|
@kmchen i found a solution for me, you can try this:
and gone! |
Hi! Here is our temporary workaround using brew only. Please note this should let you use as default the latest libjpeg version (9) for other tools, even if you may have to unlink/switch version during install steps ;) # Install fontcustom deps
brew tap bramstein/webfonttools
brew update
brew install woff2
# Install older fontforge version
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/d1dfe7b506da542c8828ebd775a1f4f943e55ed7/Formula/fontforge.rb
# Install jpeg 8
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/7f16e5aa9451ea391cbb7822a59d2bf702c5b834/Formula/jpeg.rb
# Install other fontcustom deps
brew install eot-utils
gem install fontcustom -v 2.0.0
# Link jpeg8
ln -s /usr/local/Cellar/jpeg/8d/lib/libjpeg.8.dylib /usr/local/opt/jpeg/lib/libjpeg.8.dylib |
I had an error that was similar to what OP was experiencing:
When getting this message, I had actually already installed woff2, but I found that I needed to run |
Thanks to @cz848 , it works!! |
Thanks @greencoppercompany ! |
@roh26it |
@greencoppercompany solution works for me. I've also manage to use latest fontforge version, without downgrading. Only change was linking jpeg.8 as jpeg.9 dylib. |
@greencoppercompany Thanks for the solution, but unfortunately No luck. Anyone who can help us, please contact [email protected] |
For those still getting fontforge compilation error, i was able to resolve it following this: #382 (comment) The only missing part was |
I installed fontcustom today on a new Mac following the instructions (using Homebrew). However, when trying to compile, I'm getting the following error:
I'm not familiar with the ruby or python ecosystem, so any help or hints will be much appreciated.
The text was updated successfully, but these errors were encountered: