Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=oHArfA11oITnOF8o5ev3oQ4akDQ7NV2JULFgQRMV6+Q=; b=VvVZ5rudTA1nFAR0dg5V2/JQgYGrBLJJ4+0DoFeaX5sEJ96sc0NdgWpv77nWPD9AqV fxsB+9viHr3Kd0xW4jxkgoeFSmgo3pT6oeBtIHsio4tx9mKPB9H9dHXLF/KkkOCU0i82 sTVJzuXSr7y7wGFCmDQjvEH3z75/nFLz3uWBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=BCOApgqHdKIpUAThcp9cF468n5D/WgslE5ROzz807M21C+YdRuDdbsXqGjsYdZjOwa sGfy7/nDoTuVj8n2os2KFy6+ZHM/sBYCKgvui26g3QG5PyRRpl9M26eGdKj9v3t7i7sX 6aLYDNzVUKfuAKJD/76lxFLJpZY1WecVmBDD4= MIME-Version: 1.0 In-Reply-To: <20090921.202824.28799666.garrigue at math.nagoya-u.ac.jp> References: <20090921.202824.28799666.garrigue@math.nagoya-u.ac.jp> Date: Mon, 21 Sep 2009 12:30:27 -0400 Message-ID: Subject: Re: [Lablgtk] Lablgtk2 and gtk-osx From: Aaron Bohannon To: Jacques Garrigue Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: lablgtk at yquem.inria.fr 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=3D1 -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 functi= on) 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 wrote: > From: Aaron Bohannon >> 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. =A0I have put the most relevant part of the config.log >> file below. =A0I am running OS X 10.6 on an Intel Core Duo 2 MacBook >> Pro. =A0Does anyone have an idea of what might be wrong? >> >> =A0- 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: > > =A0sudo 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 > > =A0sudo port -v install pango-devel +no_x11 +quartz > > This version works, but the appearance is a bit buggy. > > Hope this helps, > > =A0 =A0 Jacques > _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk