Log in

No account? Create an account
LogJam [entries|archive|friends|userinfo]

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

There must be an easier way, surely? [May. 25th, 2003|09:23 pm]


[Current Mood |frustratedfrustrated]
[Current Music |No no no - Deep Purple]

I can't build logjam because it can't find gtkspell;
I can't build gtkspell because it can't find gtk+;
I can't build gtk+ because of pango-related errors, I think.

I've put extracts of the make output in my LJ, here.

Any help gratefully accepted!

From: compwiz
2003-05-25 06:38 pm (UTC)
pango is one of the dependencies for gtk 2.x. If you wish to build all of those from scratch (I'm sure there are easier ways of doing it), you have to make sure to satisfy all of the build dependencies, especially with regards to versions.
(Reply) (Thread)
[User Picture]From: henman
2003-05-25 07:08 pm (UTC)
If you wish to build all of those from scratch

No, I'd much rather have a simple install - I'm only building everything as I work backwards through the dependencies and discover it's all DIY.
(Reply) (Parent) (Thread)
[User Picture]From: henman
2003-05-25 07:37 pm (UTC)

Pango 'make' errors

(make going OK until ...)
Making all in examples
make[2]: Entering directory `/rpm/pango-1.2.1/examples'
/bin/sh ../libtool --mode=link c++  -g -O2 -L/opt/gtk/lib -o pango-viewer  viewer-qt.o ../pango/libpangox-1.0.la ../pango/libpango-1.0.la  -L/usr/lib/qt2/lib -lqt  moc_viewer-qt.o
c++ -g -O2 -o .libs/pango-viewer viewer-qt.o moc_viewer-qt.o  -L/opt/gtk/lib ../pango/.libs/libpangox-1.0.so /rpm/pango-1.2.1/pango/.libs/libpango-1.0.so -L/usr/X11R6/lib -lX11 ../pango/.libs/libpango-1.0.so /opt/gtk/lib/libgobject-2.0.so /opt/gtk/lib/libgmodule-2.0.so -ldl /opt/gtk/lib/libglib-2.0.so -L/usr/lib/qt2/lib -lqt -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/gtk/lib
viewer-qt.o(.text+0xe): In function `ViewerPara::ViewerPara[not-in-charge](_PangoContext*, QString const&)':
/usr/lib/qt2/include/qarray.h:57: undefined reference to `QGArray::QGArray[not-in-charge]()'
viewer-qt.o(.text+0x22): In function `ViewerPara::ViewerPara[not-in-charge](_PangoContext*, QString const&)':
/usr/lib/qt2/include/qcstring.h:269: undefined reference to `QString::utf8() const'
(more Qt-related errors/warnings)

But I installed Qt RPMs from the RH9 CDs:
[root@desktop root]# rpm -q -a | grep -i qt
[root@desktop root]# 

(Reply) (Parent) (Thread)
From: evan
2003-05-25 09:37 pm (UTC)

Re: Pango 'make' errors

You don't really need Qt to build pango; it just uses Qt in one of its examples (to show that pango isn't tied to GTK... it's a shame that Qt uses their own solution anyway).
There should be a configure switch like --without-examples that will let you get around that. Or you need to install some Qt dev package, I guess... I dunno, I don't know much about Qt.
(Reply) (Parent) (Thread)
[User Picture]From: henman
2003-05-26 03:47 am (UTC)

Now on to GTK+ 'make' errors

./configure --without-qt

Looks like pango built OK - thanks for that ... on to the next step ... gtk+ make has problems in X11 section:
Making all in x11
make[3]: Entering directory `/rpm/LJ/gtk+-2.2.1/gdk/x11'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/opt/gtk/include/glib-2.0 -I/opt/gtk/lib/glib-2.0/include -I../..//opt/gtk/lib/pkgconfig/. -I/usr/X11R6/include -I/usr/include/freetype2
 -g -O2 -Wall -c gdkcolor-x11.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/opt/gtk/include/glib-2.0 -I/opt/gtk/lib/glib-2.0/include -I../..//opt/gtk/lib/pkgconfig/. -I/usr/X11R6/include -I/usr/include/freetype2 -g -O2 -Wall -c gdkcolor-x11.c  -fPIC -DPIC -o gdkcolor-x11.lo
In file included from ../../gdk/gdkcolor.h:4,
                 from gdkcolor-x11.c:29:
../../gdk/gdktypes.h:33:25: pango/pango.h: No such file or directory
In file included from ../../gdk/gdkwindow.h:4,
                 from ../../gdk/gdkinternals.h:30,
                 from gdkcolor-x11.c:30:
../../gdk/gdkdrawable.h:93: parse error before "PangoFont"
../../gdk/gdkdrawable.h:311: parse error before "PangoFont"
../../gdk/gdkdrawable.h:319: parse error before "PangoLayoutLine"
../../gdk/gdkdrawable.h:324: parse error before "PangoLayout"
../../gdk/gdkdrawable.h:330: parse error before "PangoLayoutLine"
../../gdk/gdkdrawable.h:337: parse error before "PangoLayout"
In file included from ../../gdk/gdkprivate.h:32,
                 from ../../gdk/gdkinternals.h:31,
                 from gdkcolor-x11.c:30: 

(another page or so of Pango-related errors/warnings)
(Reply) (Parent) (Thread)
From: evan
2003-05-26 04:34 am (UTC)

Re: Now on to GTK+ 'make' errors

Hm, I dunno. It looks like it's getting the pango include path wrong. Maybe the configure failed to detect pango, or maybe it's caching some older value of the setting?

I know I managed to build much of GTK on windows, so I know it's possible... but it is pretty complicated. This may be helpful.
(Reply) (Parent) (Thread)
[User Picture]From: henman
2003-05-27 01:33 pm (UTC)

Re: Now on to GTK+ 'make' errors

I checked the environment variables were set as per that page & re-ran configure ... same errors.

I'm going to see if there's a GTK community ... all I want is a working LJ client! If I can get my PDA and digital camera working in a matter of minutes, why is this so painful? :(

(Reply) (Parent) (Thread)
From: evan
2003-05-27 03:45 pm (UTC)

Re: Now on to GTK+ 'make' errors

There is a GTK community, but I'm the only member of it. :)

As some other people have said, GTK is pretty difficult to build. It's best if you can get it from the source of your distribution.
(Reply) (Parent) (Thread)
[User Picture]From: henman
2003-05-28 05:15 pm (UTC)

Re: Now on to GTK+ 'make' errors

I'm running RedHat 9 (shrike), so I've installed gtk+-1.2.10-25.i386.rpm from the CD - but I need gtk+-2*, don't I?

(Reply) (Parent) (Thread)
From: lazarus834
2004-01-04 07:59 pm (UTC)
I had logjam working fine on my redhat installation, but when I upgraded to mandrake I couldn't configure logjam correctly either. I'm using KDE, not gnome, and I installed the libraries that were requested, and I can see clearly that they are on my computer, but for some reason the install process of urpmi which got me those libraries did not create a .pc file in /usr/lib/pkgconfig, which is how pkg-config knows that the library is installed, and that's how the logjam configure script determines whether it is installed

So I did some RTFMing on pkg-config, and created a .pc file manually for gtkhtml which looks like this:


Name: libgtkhtml
Description: libGtkHtml version 3.0
Version: 3.0_2-3.0.8-1mdk.i586
Libs: -L${libdir} -lgtkhtml-3.0

After that, it was able to find libgtkhtml. What I'd like to know is, why did i have to create this file manually? Does urpmi not work correctly with pkg-config?
(Reply) (Thread)