gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
164 stars 31 forks source link

Can't build latest version #18

Closed bkeepers closed 10 years ago

bkeepers commented 10 years ago

I can't get the the latest (dad001c7426c920d9d33bc415c6d74fc84413ca0) to compile:

$ rake compile
mkdir -p tmp/x86_64-darwin13.0.0/mathematical/2.0.0
cd tmp/x86_64-darwin13.0.0/mathematical/2.0.0
/opt/boxen/rbenv/versions/2.0.0-github6/bin/ruby -I. ../../../../ext/mathematical/extconf.rb
checking for main() in -lxml2... yes
checking for libxml/tree.h in /usr/include/libxml2,/usr/local/include/libxml2... yes
checking for libxml/parser.h in /usr/include/libxml2,/usr/local/include/libxml2... yes
checking for libxml/xpath.h in /usr/include/libxml2,/usr/local/include/libxml2... yes
checking for libxml/xpathInternals.h in /usr/include/libxml2,/usr/local/include/libxml2... yes
checking for main() in -lpangocairo-1.0... no
Package xcb-shm was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-shm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-shm', required by 'cairo', not found
Package xcb-shm was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-shm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-shm', required by 'cairo', not found
creating Makefile
cd -
cd tmp/x86_64-darwin13.0.0/mathematical/2.0.0
make
compiling ../../../../ext/mathematical/lasemrender.c
In file included from ../../../../ext/mathematical/lasemrender.c:26:
In file included from ../../../../ext/mathematical/lsm.h:27:
../../../../ext/mathematical/lsmtypes.h:27:10: fatal error: 'glib-object.h' file not found
#include <glib-object.h>
         ^
1 error generated.
make: *** [lasemrender.o] Error 1
rake aborted!
Command failed with status (2): [make...]

Tasks: TOP => compile => compile:x86_64-darwin13.0.0 => compile:mathematical:x86_64-darwin13.0.0 => copy:mathematical:x86_64-darwin13.0.0:2.0.0 => tmp/x86_64-darwin13.0.0/mathematical/2.0.0/mathematical.bundle
(See full trace by running task with --trace)