Well, I hung out on the #machomebrew freenode channel for a bit and discovered that if I told vimb's compiler "cc" (which resolves to clang on my mac) to use the language objective-c, then I could get a little further in the build process.
Here's the diff to use objective-c: ``` diff --git a/config.mk b/config.mk index 50d89ca..e6fbdcc 100644 --- a/config.mk +++ b/config.mk @@ -52,6 +52,7 @@ CFLAGS ?= -Wall -pipe -Wno-overlength-strings -Werror=format-security -Wno-type # normal compiler flags CFLAGS += $(shell pkg-config --cflags $(LIBS)) CFLAGS += -std=c99 +CFLAGS += -x objective-c CFLAGS += ${CPPFLAGS} LDFLAGS += ${LIBFLAGS} ``` I'm now hung up on teaching the compiler where to find the glib headers. ``` > make ... cc arh.o In file included from arh.c:24: In file included from ./arh.h:27: In file included from ./main.h:36: ./hsts.h:26:10: fatal error: 'glib-object.h' file not found #include <glib-object.h> ``` I get this error even though pkg-config seems to know all about where to find the glib headers. In fact, glib-object.h is found in the first directory listed below: ``` > pkg-config --cflags --libs glib-2.0 -I/usr/local/Cellar/glib/2.46.1_1/include/glib-2.0 -I/usr/local/Cellar/glib/2.46.1_1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -L/usr/local/Cellar/glib/2.46.1_1/lib -L/usr/local/opt/gettext/lib -lglib-2.0 -lintl ``` I'll keep trying. On Wed, Nov 4, 2015 at 12:05 PM, Patrick Redmond <plredm...@gmail.com> wrote: > On Sun, Nov 1, 2015 at 2:17 PM, Daniel Carl <danielc...@gmx.de> wrote: >> >> > From: "Patrick Redmond" <plredm...@gmail.com> >> > Has anyone tried and/or succeeded to build vimb on mac osx? >> > >> > The webkit headers on OSX seem to have Objective-C in them, which breaks >> > compilation. >> According to https://github.com/fanglingsu/vimb/issues/67 Lingnan Dai has >> compiled vimb on retina macbook, not sure which version of the OS he uses, >> but I think this should work. > I followed up with Lingnan, and he was running vimb on ArchLinux in a > virtual machine on OSX. He recommended avoiding using the OSX webkit > package altogether, which matches my original hunch, and I'll take > those questions over to the homebrew mailing list. > > So the question of how to compile on OSX remains mysterious! :D ------------------------------------------------------------------------------ _______________________________________________ vimb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vimb-users