LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   troubles with GTK (atk install?) (https://www.linuxquestions.org/questions/linux-newbie-8/troubles-with-gtk-atk-install-715711/)

planetplosion 03-31-2009 03:48 AM

troubles with GTK (atk install?)
 
I'm getting this error when I configure gtk:

Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atk' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

I have the atk source but don't know how to install it. along with pango and cairo as well.

thanks in advance

weibullguy 03-31-2009 05:55 AM

Why don't you use your package manager to install GTK+? That will take care of the necessary dependencies for you. If you told us what distro you were using, someone could tell you the exact command to use to install GTK+ using your package manager.

planetplosion 03-31-2009 02:36 PM

I'm using Ubuntu 8.10.

weibullguy 03-31-2009 05:16 PM

If you're using Ubuntu, you're using the GNOME DE. If you're using the GNOME DE, you already have GTK+, and its dependencies, installed. I'm not a *buntu user, but the command would be something along the lines of apt-get install libgtk2.0-0, I think.

Why are you trying to install GTK+ from source? Installing ATK, Pango, and Cairo are straight forward. For ATK
Code:

./configure --prefix=/usr &&
make && su -c 'make install'

For Cairo
Code:

./configure --prefix=/usr &&
make && su -c 'make install'

For Pango
Code:

./configure --prefix=/usr --sysconfdir=/etc &&
make && su -c 'make install'

Then GTK+
Code:

./configure --prefix=/usr --sysconfdir=/etc &&
make && su -c 'make install' &&
su -c 'install -v -m755 -d /usr/share/doc/gtk+-2.16.0/{faq,tutorial}' &&
su -c 'cp -v -R docs/faq/html/* /usr/share/doc/gtk+-2.16.0/faq' &&
su -c 'cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-2.16.0/tutorial'


planetplosion 03-31-2009 08:37 PM

That's sort of the problem.. maybe I have the wrong source for atk, but it says the configure file doesn't exist. In the atk source folder it is just a bunch of folders with some additional class.stuff files.. So I didn't see any configure file.

weibullguy 03-31-2009 09:53 PM

I don't know what version of GTK+ you're trying to build, but here are the URL for the stuff I am using:

http://cairographics.org/releases/cairo-1.8.6.tar.gz
http://ftp.gnome.org/pub/gnome/sourc...1.22.4.tar.bz2
http://ftp.gnome.org/pub/gnome/sourc...1.26.0.tar.bz2
http://ftp.gnome.org/pub/gnome/sourc...2.16.0.tar.bz2

Here are the URL for recommended GTK+ dependencies:

http://www.ijg.org/files/jpegsrc.v6b.tar.gz
http://downloads.sourceforge.net/lib...1.2.35.tar.bz2
http://libtiff.maptools.org/dl/tiff-3.8.2.tar.gz
http://www.ece.uvic.ca/~mdadams/jasp...er-1.900.1.zip

Here is a patch to add animated png (apng) support to libpng (apng is required for Firefox3 in case you plant to use it):

http://svn.cross-lfs.org/svn/repos/p...5-apng-1.patch


All times are GMT -5. The time now is 11:31 PM.