PDA

View Full Version : Problem while compiling GTK+



Yuanlong
08-02-2004, 05:44 AM
I'm keep getting this error message when I try to compile GTK+ with #./configure

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


Anyone can give me a clue on how to solve this?
Sorry if I sound noob.

Stephen
08-02-2004, 12:58 PM
I'm keep getting this error message when I try to compile GTK+ with #./configure

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


Anyone can give me a clue on how to solve this?
Sorry if I sound noob.


Do you have the -dev package installed for them.



>$ apt-cache policy libglib2.0-dev
libglib2.0-dev:
Installed: 2.4.4-1
Candidate: 2.4.4-1
Version Table:
2.4.5-1 0
600 http://ftp.de.debian.org unstable/main Packages
*** 2.4.4-1 0
990 http://ftp.de.debian.org testing/main Packages
100 /var/lib/dpkg/status

>$ apt-cache policy libatk1.0-dev
libatk1a.0-dev:
Installed: (none)
Candidate: 1.6.1-2
Version Table:
1.6.1-2.1 0
600 http://ftp.de.debian.org unstable/main Packages
1.6.1-2 0
990 http://ftp.de.debian.org testing/main Packages

>$ apt-cache policy libpango1.0-dev
libpango1.0-dev:
Installed: (none)
Candidate: 1.4.0-4
Version Table:
1.5.0-2 0
1 http://ftp.debian.org ../project/experimental/main Packages
1.4.0-4 0
990 http://ftp.de.debian.org testing/main Packages
600 http://ftp.de.debian.org unstable/main Packages



BTW I found all these package names by using apt-cache search package_missing you usually always need the -dev files for compiling. Also when you are missing a file(s) ( eg. it spits out an error telling you that it cannot find a certain file not just the entire library ) during a compile it is also handy to have installed apt-file then you would apt-file update and apt-file search some_library.so.1 to find which package it is in then you can install it and restart the compile.

Yuanlong
08-02-2004, 01:18 PM
Ermm I'm a total newbie to linux(just started last week), so I don't really understand how to do with the apt-file part.

btw here are the result returned back when I check it

yuanlong@Zhang:~$ apt-cache policy libglib2.0-dev
libglib2.0-dev:
Installed: 2.2.3-1
Candidate: 2.2.3-1
Version Table:
*** 2.2.3-1 0
100 /var/lib/dpkg/status
yuanlong@Zhang:~$ apt-cache policy libatk1.0-dev
libatk1.0-dev:
Installed: (none)
Candidate: (none)
Version Table:
yuanlong@Zhang:~$ apt-cache policy libpango1.0-dev
libpango1.0-dev:
Installed: (none)
Candidate: (none)
Version Table:


I guess it means that I don't have those -dev package installed. Could you guide me where or how to get those -dev package? Thanks

Yuanlong
08-02-2004, 01:20 PM
Ermm I'm a total newbie to linux(just started last week), so I don't really understand how to do with the apt-file part.

btw here are the result returned back when I check it

yuanlong@Zhang:~$ apt-cache policy libglib2.0-dev
libglib2.0-dev:
Installed: 2.2.3-1
Candidate: 2.2.3-1
Version Table:
*** 2.2.3-1 0
100 /var/lib/dpkg/status
yuanlong@Zhang:~$ apt-cache policy libatk1.0-dev
libatk1.0-dev:
Installed: (none)
Candidate: (none)
Version Table:
yuanlong@Zhang:~$ apt-cache policy libpango1.0-dev
libpango1.0-dev:
Installed: (none)
Candidate: (none)
Version Table:


I guess it means that I don't have those -dev package installed. Could you guide me where or how to get those -dev package? Thanks

mzilikazi
08-02-2004, 01:38 PM
export PKG_CONFIG_PATH=/usr/lib/pkgconfig

Then try compiling. This must be done in the same terminal window!

Yuanlong
08-02-2004, 04:00 PM
export PKG_CONFIG_PATH=/usr/lib/pkgconfig

Then try compiling. This must be done in the same terminal window!

Ermm sorry for this very noob question but how do I compile? Which of these command is to compile it?

#./configure
#make
#make install

Thanks

mzilikazi
08-02-2004, 07:30 PM
Ermm sorry for this very noob question but how do I compile? Which of these command is to compile it?

#./configure
#make
#make install

Thanks

All of them. ;)

Yuanlong
08-03-2004, 01:08 AM
The same error still comes out when I try to compile. :(

mzilikazi
08-03-2004, 01:33 AM
Well first of all have you installed the apps that Stephen mentioned?

apt-get update && apt-get install libatk1.0-dev libpango1.0-dev

Also gtk is in Debian so not really sure why you're compiling it.

apt-get install libgtk2.0-0

Yuanlong
08-03-2004, 02:06 AM
I know that there is already a gtk inside knoppix but the problem is whenever I try to compile Gaim-0.80(knoppix use version 0.77), it keep giving me this msg

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.


btw thanks for the 2 command. I got it solved already.

Compiling the gtk+ now and later will try it with gaim again.
Thanks all.

Yuanlong
08-03-2004, 02:27 AM
I manage to pass the ./configure after all the -dev package installed but then I am still getting error which using make or make install.

/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H"
make[3]: *** [gdkasync.lo] Error 1
make[3]: Leaving directory `/mnt/hdb2/linux/gtk+-2.4.4/gdk/x11'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/mnt/hdb2/linux/gtk+-2.4.4/gdk'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/mnt/hdb2/linux/gtk+-2.4.4/gdk'
make: *** [install-recursive] Error 1


btw I have tried apt-get install libgtk2.0-0, it downloaded and install nicely. But my gaim compilation is still giving me the same error.

Stephen
08-03-2004, 02:29 AM
I know that there is already a gtk inside knoppix but the problem is whenever I try to compile Gaim-0.80(knoppix use version 0.77), it keep giving me this msg

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build Gaim; please make sure you have the GTK+
*** development headers installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.


btw thanks for the 2 command. I got it solved already.

Compiling the gtk+ now and later will try it with gaim again.
Thanks all.


Gaim .80 is already packaged in Debian as well so you simply install it no need to compile.



[HappyTux:/home/stephen]# apt-cache search gaim
gaim - multi-protocol instant messaging client

[HappyTux:/home/stephen]# apt-cache policy gaim
gaim:
Installed: (none)
Candidate: 1:0.80-3
Version Table:
1:0.80-3 0
990 http://ftp.de.debian.org testing/main Packages
600 http://ftp.de.debian.org unstable/main Packages

Yuanlong
08-03-2004, 02:57 AM
sorry to be noob again but how do i install it? I've try apt-get install gaim0.80-3 but it won't work.

shah
08-03-2004, 05:05 AM
There is no gaim 0.80 debian package, there's only debian gaim 0.77. The problem is gaim 0.77 no longer can log into yahoo.
I had similar problem loooong time ago. After I upgrade my distro then the gtk error vanished.
Now I am able to compile gaim 0.80 and using it.

Durand Hicks
08-03-2004, 05:23 AM
Gaim .80 is in debian unstable. As root, try
apt-get -s install -t unstable gaim to see if it will install without a problem. Remove the -s to go ahead and install if the output shows no problems.

HTH,

Durand

Yuanlong
08-03-2004, 11:01 AM
Gaim .80 is in debian unstable. As root, try
apt-get -s install -t unstable gaim to see if it will install without a problem. Remove the -s to go ahead and install if the output shows no problems.

HTH,

Durand

Thanks everyone, I finally got my gaim 0.80 installed(yahoo msger back :D) but the GTK+ error is still there whenever I try to compile anything.