Re: Lablgtk2 and gtk-osx
Aaron Bohannon <[email protected]> Mon, 21 Sep 2009 12:30:27 -0400
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Am I supposed to be able to also install lablgtk2 using macports? After doing the the steps you described for gtk2 and pango-devel, I get the error below when installing lablgtk2. - Aaron ocamlc.opt -c -ccopt '-DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -DORBIT2=1 -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/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/libpng12 -I/opt/local/include/libglade-2.0 -I/opt/local/include/libxml2 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gail-1.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/gnome-keyring-1 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-activation-2.0 -imacros ml_domain.h -O' ml_gdk.c ml_gdk.c:30:22: error: gdk/gdkx.h: No such file or directory ml_gdk.c: In function 'ml_GDK_WINDOW_XWINDOW': ml_gdk.c:264: warning: implicit declaration of function 'GDK_WINDOW_XWINDOW' ml_gdk.c: In function 'ml_gdk_property_get': ml_gdk.c:499: error: 'AnyPropertyType' undeclared (first use in this function) ml_gdk.c:499: error: (Each undeclared identifier is reported only once ml_gdk.c:499: error: for each function it appears in.) make[1]: *** [ml_gdk.o] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [world] Error 2 On Mon, Sep 21, 2009 at 7:28 AM, Jacques Garrigue <[email protected]> wrote: > From: Aaron Bohannon <[email protected]> >> I read that it is possible to install Lablgtk2 with gtk-osx: >> http://yquem.inria.fr/pipermail/lablgtk/2009-January/000265.html >> I set my PKG_CONFIG_PATH as described, but the configure script of >> Lablgtk2 fails. I have put the most relevant part of the config.log >> file below. I am running OS X 10.6 on an Intel Core Duo 2 MacBook >> Pro. Does anyone have an idea of what might be wrong? >> >> - Aaron > > [...] >> ld: warning: in >> /Library/Frameworks/Gtk.framework/Resources/dev/lib/libGtk.dylib, file >> is not of required architecture > > This looks like the standard problem with 10.6: your probably > installed a version of Gtk-OSX compiled for 10.5, using the default > 32bit compilation. In 10.6, the default is 64bit. > If your ocaml is also 32bit, you can try to add -m32 to your compiler > flags by hand, and have everything 32bit. However, this is probably > going to bring you problems at some point in the future. > If you compiled ocaml on 10.6, then by default it is 64bit, and you > need 64bit versions for all your libraries. > A simple way to build Gtk-OSX is to use macports. > The incantation to compile gtk is then: > > sudo port -v install gtk2 +no_x11 +quartz > > There is however a pitfall: the normal version of pango doesn't > compile on 64bit, due to some missing calls in cairo/64bit. > So you actually need also > > sudo port -v install pango-devel +no_x11 +quartz > > This version works, but the appearance is a bit buggy. > > Hope this helps, > > Jacques >