Installing Fontcrunch

Hi,
I’m trying to install Fontcrunch, but it doesn’t work (error log attached) …
What am I doing wrong?
Thanks!
Christoph

Comments

  • Jack JenningsJack Jennings Posts: 151
    edited June 2015
    I got it to compile after installing the (old?) gcc-4.2. If you have homebrew installed (http://brew.sh), you can run brew install apple-gcc42 and then try again.
  • Thanks, Jack!
    Feels a bit closer now, nevertheless:
    running install
    running bdist_egg
    running egg_info
    creating FontCrunch.egg-info
    writing FontCrunch.egg-info/PKG-INFO
    writing top-level names to FontCrunch.egg-info/top_level.txt
    writing dependency_links to FontCrunch.egg-info/dependency_links.txt
    writing manifest file 'FontCrunch.egg-info/SOURCES.txt'
    reading manifest file 'FontCrunch.egg-info/SOURCES.txt'
    writing manifest file 'FontCrunch.egg-info/SOURCES.txt'
    installing library code to build/bdist.macosx-10.6-intel/egg
    running install_lib
    running build_py
    creating build
    creating build/lib.macosx-10.6-intel-2.7
    creating build/lib.macosx-10.6-intel-2.7/fontcrunch
    copying fontcrunch/__init__.py -> build/lib.macosx-10.6-intel-2.7/fontcrunch
    copying fontcrunch/quadopt.py -> build/lib.macosx-10.6-intel-2.7/fontcrunch
    copying fontcrunch/fontcrunch.py -> build/lib.macosx-10.6-intel-2.7/fontcrunch
    running build_ext
    building 'fontcrunch._quadopt' extension
    swigging fontcrunch/quadopt.i to fontcrunch/quadopt_wrap.cpp
    swig -python -c++ -modern -o fontcrunch/quadopt_wrap.cpp fontcrunch/quadopt.i
    creating build/temp.macosx-10.6-intel-2.7
    creating build/temp.macosx-10.6-intel-2.7/fontcrunch
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c fontcrunch/quadopt_wrap.cpp -o build/temp.macosx-10.6-intel-2.7/fontcrunch/quadopt_wrap.o -std=c++0x -O3
    cc1plus: error: unrecognized command line option "-std=c++0x"
    cc1plus: error: unrecognized command line option "-std=c++0x"
    fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: /var/tmp//ccoRqF3e.out
    error: command 'gcc-4.2' failed with exit status 1

  • Jens KutilekJens Kutilek Posts: 338
    Hi Christoph,

    I still think the different compilers may be the problem. I tried it on my 10.9 machine with XCode 6.2 installed, where "cc" (Apple LLVM version 6.0 (clang-600.0.57)) is used as compiler and it works without problem.

    I have copied the compiled files into the attached zip archive, I think they should run on your system. The egg folder goes into site-packages, and the font-crunch.py script into /usr/local/bin. Probably you also need to add a line to the easy-install.pth file in your site-packages folder, as shown in the screenshot.
  • edited June 2015
    Thanks, Jenser! :-*
Sign In or Register to comment.