Cannot build anymore on Mac OSX
Robert C. Helling
helling at atdotde.de
Sat Jan 19 07:13:34 PST 2013
after a git pull origin, subsurface does not build anymore for me on Mac OS Lion. I get
th-nb-tmpmbp02:subsurface Robert.Helling$ PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" make
gcc -Wall -Wno-pointer-sign -g -I/opt/local/include -I/opt/local/include/libxml2 -DHAVE_OSM_GPS_MAP -DMAC_INTEGRATION -D_REENTRANT -I/opt/local/include/gtkmacintegration -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng15 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng15 -c macos.c
macos.c:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
macos.c: In function ‘subsurface_icon_name’:
macos.c:133: warning: implicit declaration of function ‘gtkosx_application_get_resource_path’
macos.c:133: warning: format ‘%s’ expects type ‘char *’, but argument 6 has type ‘int’
macos.c: In function ‘subsurface_gettext_domainpath’:
macos.c:157: warning: initialization makes pointer from integer without a cast
macos.c: In function ‘subsurface_ui_setup’:
macos.c:178: error: ‘osx_app’ undeclared (first use in this function)
macos.c:178: error: (Each undeclared identifier is reported only once
macos.c:178: error: for each function it appears in.)
macos.c:178: error: ‘GTKOSX_TYPE_APPLICATION’ undeclared (first use in this function)
macos.c:180: warning: implicit declaration of function ‘gtkosx_application_set_menu_bar’
macos.c:189: warning: implicit declaration of function ‘gtkosx_application_insert_app_menu_item’
macos.c:202: warning: implicit declaration of function ‘gtkosx_application_set_use_quartz_accelerators’
macos.c:206: warning: implicit declaration of function ‘gtkosx_application_ready’
make: *** [macos.o] Error 1
git blame macos.c for line 9 says
91d6d124 (Dirk Hohndel 2013-01-17 10:52:30 -0800 9) static GtkosxApplication *osx_app;
and git log macos.c
Update gtk-osx-integration to version 2 of the API
In order to be able to work with Gtk3 introspection all the APIs had to be
renamed. Instead of quartz_application... and gtk_osxapplication... all the API
functions are now name gtkosx_application...
This will break the build for people who haven't upgraded to the latest - but
supporting both would be unspeakably ugly.
Signed-off-by: Dirk Hohndel <dirk at hohndel.org>
So, that seems to be a fair description.
sudo port upgrade outdated
didn't help. On the webpage it says I should do
sudo port install gtk2 +no_x11 +quartz -x11 libusb gtk-osx-application automake autoconf libtool
but that gives an error immediately. Thus I tried
sudo port install gtk2 +no_x11 -quartz +x11 libusb gtk-osx-application automake autoconf libtool
that looked better (it does a lot of installing for several minutes) but eventually fails upon installing py27-pygtk.
So I did
but the error messages there seem to indicate that package is broken. Now I am lost. And of course, subsurface still does not build.
Maybe I am stupid, but could somebody please indicate what I am missing?
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
More information about the subsurface