Skip to content
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

MacOSX Install issues #1

Closed
grantdelozier opened this issue May 6, 2017 · 3 comments
Closed

MacOSX Install issues #1

grantdelozier opened this issue May 6, 2017 · 3 comments

Comments

@grantdelozier
Copy link

I'm having issues installing this on MacOSX 10.11.6, even with the special install directions

When installing I use paths to the newest versions of freetype and libpng installed via homebrew.

./configure --with-libpng-library=/usr/local/Cellar/libpng/1.6.29/lib/  --with-libpng-includes=/usr/local/Cellar/libpng/1.6.29/include/ --with-freetype2-library=/usr/local/Cellar/freetype/2.7.1/lib/ --with-freetype2-includes=/usr/local/Cellar/freetype/2.7.1/include/freetype2/
make

This works, but with a few errors

configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating goo/Makefile
config.status: creating fofi/Makefile
config.status: creating splash/Makefile
config.status: creating xpdf/Makefile
config.status: creating aconf.h
config.status: aconf.h is unchanged
configure: WARNING: Couldn't find X
configure: WARNING: Couldn't find Motif
configure: WARNING: -- You will be able to compile pdftops, pdftotext,
        pdfinfo, pdffonts, pdfdetach, and pdfimages, but not xpdf
        or pdftoppm

When I attempt to run pdftojson I see the following error about freetype versions

xpdf/pdftojson <input.pdf> <output.json>
dyld: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
  Referenced from: /Users/grant/devel/pdftojson/xpdf/pdftojson
  Reason: Incompatible library version: pdftojson requires version 20.0.0 or later, but libfreetype.6.dylib provides version 19.0.0
Trace/BPT trap: 5
@grantdelozier
Copy link
Author

What confuses me about the freetype version numbers is that they seem completely off -- everything that I can find suggests 2.7.1 is the newest version, but the error is suggesting 20.0.0 is required.

@grantdelozier
Copy link
Author

grantdelozier commented May 6, 2017

It seems like the program is reverting to a default freetype install, despite being configured with the specific newer version.

I was able to fix the errors by removing all other competing versions of freetype and libpng (previously installed via macports). I then re-installed all necessary brew packages:

brew install libpng
brew install freetype
brew install openmotif
brew cask install xquartz

And then re-ran the install

./configure --with-libpng-library=/usr/local/Cellar/libpng/1.6.29/lib/  --with-libpng-includes=/usr/local/Cellar/libpng/1.6.29/include/ --with-freetype2-library=/usr/local/Cellar/freetype/2.7.1/lib/ --with-freetype2-includes=/usr/local/Cellar/freetype/2.7.1/include/freetype2/
make

Now everything seems to work!

@ldenoue
Copy link
Owner

ldenoue commented May 7, 2017

Great, your messages will be useful for others on Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants