I had a lot of problems with pdf2svg since it was giving me a seg fault. What I did at the end was:
Instaling as follows:
cairo is too old, increase version
pango, remove ENV.x11
poppler --with-glib, remove ENV.x11, increase version to 0.20.0
gdk-pixbuf
atk
gtk+
pdf2svg
I want to share and also backup some procedures which could be useful and I have done over and over again. They are focused to mac and linux as environments for developing computer science. From time to time, I could also publish some other kind of stuff ..
Saturday, May 12, 2012
Friday, May 11, 2012
About gtk+ homebrew formula
Link the hombrew cairo/include/cairo dir to /opt/X11/include/cairo. Then edit the formula and add
# NEW START
ENV.append 'LDFLAGS', '-L/usr/local/Cellar/cairo/1.10.2/lib'
ENV.append 'CPPFLAGS', '-I/usr/local/Cellar/cairo/1.10.2/include'
# NEW END
# NEW START
ENV.append 'LDFLAGS', '-L/usr/local/Cellar/cairo/1.10.2/lib'
ENV.append 'CPPFLAGS', '-I/usr/local/Cellar/cairo/1.10.2/include'
# NEW END
About htop-osx homebrew formula
This formula does not work if you have installed a newer libtool. The solution is to add
system "autoreconf -i"
to the formula, after the system autogen.sh call, before the configure.
system "autoreconf -i"
to the formula, after the system autogen.sh call, before the configure.
About poppler homebrew formula
In order to compile successfully the homebrew poppler formula, it is necessary to:
- move/rename the old cairo directorry, /opt/X11/include/cairo , which is used by default by the poppler formula.
- Install cairo with homebrew.
- Since the previous is a keg only formula, follow the instructions at the end of the installation, adding
ENV.append 'LDFLAGS', '-L/usr/local/Cellar/cairo/1.10.2/lib'
ENV.append 'CPPFLAGS', '-I/usr/local/Cellar/cairo/1.10.2/include'
inside install function before configure
- Install it.
- move/rename the old cairo directorry, /opt/X11/include/cairo , which is used by default by the poppler formula.
- Install cairo with homebrew.
- Since the previous is a keg only formula, follow the instructions at the end of the installation, adding
ENV.append 'LDFLAGS', '-L/usr/local/Cellar/cairo/1.10.2/lib'
ENV.append 'CPPFLAGS', '-I/usr/local/Cellar/cairo/1.10.2/include'
inside install function before configure
- Install it.
Subscribe to:
Posts (Atom)