On Feb 6, 2005, at 12:59 AM, Randall L. Rathbun wrote:
On Saturday 2005 February 05 10:28 pm, Randall L. Rathbun wrote:checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -Wl,--export-dynamic -L/usr/local/lib
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
-lglib-2.0
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+.
found out why this isn't working. Previous installs of pango from the rpm
package directly by Red Hat placed the pango library into /usr/lib, not
/usr/local/lib
after removing pango from this location, it built okay, and gtk configure did
not burp
When I bootstrap pygtk on OS X, I rebuild the whole Gtk universe. It is particularly annoying.
I have scripts for it (although I should probably switch to SCons). Bootstrap proceeds in 3 phases.
The first phase installs the latest python into my development area (normally /home/devel). I then set the PATH variable to execute anything in /home/devel/bin first.
The second phase installs a version of pkg-config and glib into /home/devel. I then manually tweak the glib-2.0.pc to include the area which has the system versions of things like libintl and libiconv. Finally, I copy the local versions of xft.pc, xcursor.pc and fontconfig.pc into /home/devel/lib/pkgconfig. Now, the local pkgconfig can see almost all of the required libraries to built the full Gtk suite.
Finally, I build the atk, pango, gtk triumvirate. Gtk requires that you add the place for libtiff, libjpeg, etc. into the environment. For OS X, it winds up being:
export CPPFLAGS="-I/Users/sw/include" export CFLAGS="-I/Users/sw/include" export CXXFLAGS="-I/Users/sw/include" export LDFLAGS="-L/Users/sw/lib"
At that point, the combination of environment variables and the local pkgconfig should pick up everything you need.
And this annoying dance is required because open source developers have the same attitude as Windows developers. "All the world is the same as my machine."
Bah, -a
<Scripts attached, hopefully>
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
