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

Unable to install in OSX El Capitan #59

Closed frarees closed 8 years ago

frarees commented 8 years ago

Using brew to install deps:

cairo 1.15.2_1
cmake 3.6.1
gdk-pixbuf 2.34.0
gettext 0.19.8.1
glib 2.48.1
pango 1.40.1

Tried through gem 1.5.12. Then tried from sources (e22f0ac). Followed build from source instructions. Both fail at the same step:

In file included from ../../../../ext/mathematical/lasem_overrides.c:3:
In file included from ../../../../ext/mathematical/lasem_overrides.h:4:
In file included from /usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib.h:30:
In file included from /usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib/galloca.h:32:
/usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib/gtypes.h:422:3: error: 
      '_GStaticAssertCompileTimeAssertion_0' declared as an array with a
      negative size
  G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib/gmacros.h:232:103: note: 
      expanded from macro 'G_STATIC_ASSERT'
  ...(_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GN...
                                                        ^~~~~~~~~~~~~~~
1 error generated.
make: *** [lasem_overrides.o] Error 1
gjtorikian commented 8 years ago

Wondering if you can try

brew switch glib 2.46.2 
brew switch gdk-pixbuf 2.32.3
brew switch pango 1.38.1
brew switch harfbuzz 1.2.7

I think newer versions of dependencies broke something.