LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-21-2005, 02:33 AM   #1
Daddywags
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora Core 1
Posts: 5

Rep: Reputation: 0
GTK install: Pango Problems


Hello everyone!
I've been bashing my way through a nightmarish installation of GTK, in the hopes of eventually being able to run the newest version of the GIMP. GTK seems to require pango, glib, and atk. I think I've managed to install glib successfully, but pango is giving me issues. using ./configure, I've managed to make it configure successfully.

However, when I type "make," the process is suspiciously short, and ends with a bunch of errors. I'm about as newbie as they come, so I have no idea whatsoever what this error message means, or what I'm supposed to do about it. Has anyone seen anything like this?

[root@lq-d0124 pango-1.8.0]# make
make all-recursive
make[1]: Entering directory `/usr/local/bin/pango-1.8.0'
Making all in pango
make[2]: Entering directory `/usr/local/bin/pango-1.8.0/pango'
( cd . && glib-mkenums \
--fhead "#ifndef __PANGO_ENUM_TYPES_H__\n#define __PANGO_ENUM_TYPES_H__ \n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define PANGO_TYPE_@ENUMSH ORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __PANGO_ENUM_TYPES_H__ */" \
pango.h pango-attributes.h pango-break.h pango-context.h pango-coverage.h pango -engine.h pango-font.h pango-fontmap.h pango-fontset.h pango-glyph.h pango-glyph-item.h pango-item.h pango-layout.h pango-modules.h pango-renderer.h pango-script.h pango-tabs .h pango-types.h pango-utils.h pangofc-font.h pangofc-fontmap.h ) > tmp-pango-enum-type s.h \
&& (cmp -s tmp-pango-enum-types.h pango-enum-types.h || cp tmp-pango-enum-types.h pango -enum-types.h ) \
&& rm -f tmp-pango-enum-types.h \
&& echo timestamp > s-enum-types-h
( cd . && glib-mkenums \
--fhead "#include <pango.h>" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register _static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
pango.h pango-attributes.h pango-break.h pango-context.h pango-coverage.h pango -engine.h pango-font.h pango-fontmap.h pango-fontset.h pango-glyph.h pango-glyph-item.h pango-item.h pango-layout.h pango-modules.h pango-renderer.h pango-script.h pango-tabs .h pango-types.h pango-utils.h pangofc-font.h pangofc-fontmap.h ) > tmp-pango-enum-type s.c \
&& (cmp -s tmp-pango-enum-types.c pango-enum-types.c || cp tmp-pango-enum-types.c pango -enum-types.c ) \
&& rm -f tmp-pango-enum-types.c \
&& echo timestamp > s-enum-types-c
make all-recursive
make[3]: Entering directory `/usr/local/bin/pango-1.8.0/pango'
Making all in opentype
make[4]: Entering directory `/usr/local/bin/pango-1.8.0/pango/opentype'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOM AIN=\"Pango\" -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DG_DIS ABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I../..//usr/local/bin/glib-2.6.4 -I.. /..//usr/local/bin/glib-2.6.4/. -I../..//usr/local/bin/glib-2.6.4/./glib -I/usr/local /include/freetype2 -I/usr/local/include -I../.. -g -O2 -Wall -MT ftxopen.lo -MD -MP -MF ".deps/ftxopen.Tpo" \
-c -o ftxopen.lo `test -f 'ftxopen.c' || echo './'`ftxopen.c; \
then mv -f ".deps/ftxopen.Tpo" ".deps/ftxopen.Plo"; \
else rm -f ".deps/ftxopen.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_ENGINE -DS YSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I../..//usr/local/bin/glib-2.6.4 -I../..//usr/local/bin/glib-2.6.4/. -I../.. //usr/local/bin/glib-2.6.4/./glib -I/usr/local/include/freetype2 -I/usr/local/include - I../.. -g -O2 -Wall -MT ftxopen.lo -MD -MP -MF .deps/ftxopen.Tpo -c ftxopen.c -fPIC -D PIC -o .libs/ftxopen.o
In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:17:18: glib.h: No such file or directory
In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:23: error: syntax error before "typedef"
In file included from ftxopen.h:286,
from ftxopen.c:18:
ftxgdef.h:52: error: syntax error before "struct"
make[4]: *** [ftxopen.lo] Error 1
make[4]: Leaving directory `/usr/local/bin/pango-1.8.0/pango/opentype'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/bin/pango-1.8.0/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/bin/pango-1.8.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/bin/pango-1.8.0'
make: *** [all] Error 2

Any help you generous people out there can give me will be greatly appreciated!

Thanks!
 
Old 04-21-2005, 04:16 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
exactly how did you install glib:

-I../..//usr/local/bin/glib-2.6.4 -I../..//usr/local/bin/glib-2.6.4/. -I../.. //usr/local/bin/glib-2.6.4/./glib?

also, note that ./configure, make, make install will not get you by for very long ( especially on libraries, which should be installed from where they were originally installed). note also that you'll either have to keep these source directories around or make packages of them if you want to remove them later.
 
Old 04-27-2005, 01:48 AM   #3
acrao80
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
help a newbie for pango and atk

hi
could u pls explain how to install the glib propeprly as per ur earlier mail.
i have installed all the libraries (following) in the path /usr/tools/gtkada

atk-1.9.0 , glib-2.6.2 , gtk+-2.6.5 , GtkAda-2.0.0, jpeg-6b , libpng, pango-1.8.0, pkgconfig-0.15.0 , tiff-v3.6.1, zlib

i have installed the glib using " ./configure --prefix=/usr/tools/gtkada "command and then "make" and "make install"
which didnt give any problems .

but when i tried to 'make' the pango it gives error



In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:17:18: glib.h: No such file or directory
In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:23: syntax error before "typedef"
In file included from ftxopen.h:286,
from ftxopen.c:18:
ftxgdef.h:52: syntax error before "struct"
make[4]: *** [ftxopen.lo] Error 1
make[4]: Leaving directory `/usr/tools/gtkada/pango-1.8.0/pango/opentype'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/tools/gtkada/pango-1.8.0/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/tools/gtkada/pango-1.8.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tools/gtkada/pango-1.8.0'
make: *** [all] Error 2

for atk while "make " , error is

../atk/atkobject.h:486: syntax error before "AtkState"
../atk/atkobject.h:489: syntax error before "gpointer"
../atk/atkobject.h:491: syntax error before "gchar"
../atk/atkobject.h:491: warning: type defaults to `int' in declaration of `atk_role_get_name'
../atk/atkobject.h:491: warning: data definition has no type or storage class
../atk/atkobject.h:492: warning: type defaults to `int' in declaration of `gchar'
../atk/atkobject.h:492: syntax error before '*' token
../atk/atkobject.h:498: `atk_object_add_relationship' declared as function returning a function
../atk/atkobject.h:501: `atk_object_remove_relationship' declared as function returning a function
../atk/atkobject.h:502: syntax error before "gchar"
../atk/atkobject.h:502: warning: type defaults to `int' in declaration of `atk_role_get_localized_name'
../atk/atkobject.h:502: warning: data definition has no type or storage class
In file included from atkaction.c:20:
atkaction.h:51: syntax error before "GTypeInterface"
atkaction.h:51: warning: no semicolon at end of struct or union
atkaction.h:54: syntax error before "gint"
atkaction.h:54: `do_action' declared as function returning a function
atkaction.h:55: syntax error before '*' token
atkaction.h:55: warning: type defaults to `int' in declaration of `gint'
atkaction.h:55: `gint' declared as function returning a function
atkaction.h:55: warning: data definition has no type or storage class
atkaction.h:56: syntax error before "gchar"

lot of them in fact!!

my env settings are
LD_LIBRARY_PATH=/usr/local/lib:/usr/tools/gtkada/lib



PKG_CONFIG_PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/usr/tools/GtkAda-2.0.0:/usr/tools/gtk+-2.6.5:/usr/tools/gtkada/lib/pkgconfig:/usr/tools/gtkada/glib-2.6.2:/usr/tools/gtkada/atk-1.9.0:/usr/tools/gtkada/pango-1.8.0:/usr/tools/gtkada/gtk+-2.6.5

CPPFLAGS=-I/usr/tools/gtkada/include

LDFLAGS=-L/usr/tools/gtkada/lib

LD_LIBRARY_PATH=/usr/tools/gtkada/lib

PATH=$PATH:/usr/tools/gtkada/bin


please help i am a newbie and been trying to install it from past two days

HELP WOULD BE HIGHLY APPRECIATED!!!
 
Old 04-27-2005, 02:08 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
PKG_CONFIG_PATH=/root/bin:/usr/tools/GtkAda-2.0.0:/usr/tool.........
this is from your above output, condensed down a little. PKG_CONFIG_PATH needs to end with directories named pkgconfig, for example:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/tools/GtkAda-2.0.0/lib/pkgconfig:/usr/local/lib/pkgconfig

should help you out.

you can remove the LD_LIBRARY_PATH, CFLAGS, and LDFLAGS as pkgconfig will set these up automatically once you correct your PKG_CONFIG_PATH env. variable.
 
Old 04-27-2005, 04:37 AM   #5
acrao80
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
hi thanks for ur suggestion
and it did work

the gtk and other libs compiled and installed properly
but the gtkada that i tried installing gave some errors

hence i trying to install a different version of gtk (previous was 2.6.5 now installing 2.6.4)
 
Old 04-27-2005, 04:49 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what errors did it give? remember when installing to non-standard locations ( like /usr/tools/GtkAda) everything environment wise will have to be set up manually.
 
Old 04-27-2005, 05:32 AM   #7
acrao80
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
while doing "make" for gtkada ,the error it gave was

cd lib-obj; gcc -c -g -O2 -Wall -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/tools/gtkada/include/gtk-2.0 -I/usr/tools/gtkada/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/tools/gtkada/include/atk-1.0 -I/usr/tools/gtkada/include/pango-1.0 -I/usr/include/freetype2 -I.. -fPIC ../misc_extra.c
../misc_extra.c: In function `ada_gtk_combo_box_get_button':
../misc_extra.c:210: structure has no member named `button'
../misc_extra.c: In function `ada_gtk_combo_box_get_arrow':
../misc_extra.c:215: structure has no member named `arrow'
../misc_extra.c: In function `ada_gtk_combo_box_get_frame':
../misc_extra.c:220: structure has no member named `frame'
make[1]: *** [lib-obj/misc_extra.o] Error 1
make[1]: Leaving directory `/usr/tools/gtkada/GtkAda-2.0.0/src'
make: *** [all] Error 2


i checked google for the same.in one of the forums a person had got the same error
and after trying a diffrerent version of gtk he did not have any problem
so i am downloading gtk version 2.6.4

i have deleted the directory of gtk2.6.5 from the /usr/tools/gtkada
would that be ok??
 
Old 04-27-2005, 05:38 AM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
if you still have the source from gtk-2.6.5 go back into it and do "make uninstall", but you should be fine
 
Old 04-27-2005, 05:59 AM   #9
acrao80
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
hi, i have done the (that is after deleting the earlier version and installed the new version 2.6.4)

but still the same error persists

cd lib-obj; gcc -c -g -O2 -Wall -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/tools/gtkada/include/gtk-2.0 -I/usr/tools/gtkada/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/tools/gtkada/include/atk-1.0 -I/usr/tools/gtkada/include/pango-1.0 -I/usr/include/freetype2 -I.. -fPIC ../misc_extra.c
../misc_extra.c: In function `ada_gtk_combo_box_get_button':
../misc_extra.c:210: structure has no member named `button'
../misc_extra.c: In function `ada_gtk_combo_box_get_arrow':
../misc_extra.c:215: structure has no member named `arrow'
../misc_extra.c: In function `ada_gtk_combo_box_get_frame':
../misc_extra.c:220: structure has no member named `frame'
make[1]: *** [lib-obj/misc_extra.o] Error 1
make[1]: Leaving directory `/usr/tools/gtkada/GtkAda-2.0.0/src'
make: *** [all] Error 2


can u pls help out again!!
 
Old 04-27-2005, 08:57 AM   #10
acrao80
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
its done

after installing a new version of gtkada

thanks a lot for ur help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Gtk and Pango elvalith Linux - Software 7 08-04-2005 05:12 AM
Help!!! How to install GLib, GTK, ATK and Pango, just to get Firefox running. LOL RJARRRPCGP Linux - Newbie 7 11-20-2004 05:42 PM
GTK+2.5.0 and Pango 1.4.1 linkage problems.... SyBEX Linux - Software 10 10-29-2004 01:09 PM
Trying to install gtk: pango 1.4.0 error kidicarus Linux - Software 3 06-30-2004 10:31 AM
Gtk+ and Pango problems rundjuling Linux - Software 8 05-17-2004 01:15 PM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration