PDA

View Full Version : GTK+ Problems



Skyler
February 25th, 2007, 12:00 AM
Hi,
I'm trying to install GTK+ on my Edgy system. I've gotten as far as trying to compile cairo. It says it can't find freetype and fontconfig, despite the fact that apt-get tells me that they are already installed. Can anyone tell me what's going on?

po0f
February 25th, 2007, 12:34 AM
Skyler,

GTK+ 2.0 is already installed on your system, you just need the header files:


$ sudo apt-get install libgtk2.0-dev

[EDIT]

Forgot "install" in the above command.

lnostdal
February 25th, 2007, 02:03 AM
http://nostdal.org/~lars/writings/ contains some writings showing you how to get started with GTK+/Glade (ubuntu-programming3.pdf) and general Ubuntu development

Skyler
February 25th, 2007, 03:02 AM
The program I'm trying to compile says this when I run ./configure:



checking for GTK+ - version >= 2.2.1... 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.
checking for gtk-config... no
checking for gtk12-config... no
checking for gtk13-config... no
checking for GTK - version >= 1.2.5... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.

lnostdal
February 25th, 2007, 03:08 AM
uhm, what are you compiling?

Skyler
February 25th, 2007, 04:10 AM
It's a turn based strategy game called FreeCiv.

yabbadabbadont
February 25th, 2007, 04:36 AM
FreeCiv is in the repositories. (at least it is in dapper) If you are trying to build a newer version than that available in the repos, you can probably get most, if not all, of the build dependencies by running, "sudo apt-get build-dep freeciv".

lnostdal
February 25th, 2007, 04:39 AM
why do you want to compile that? it's already available in the repos for you to install automatically

use synaptic or aptitude to install software under Ubuntu .. here's how to do it with aptitude from the terminal:


sudo aptitude install freeciv

(see https://help.ubuntu.com/6.10/ubuntu/desktopguide/C/add-applications.html and https://help.ubuntu.com/community/SynapticHowto )

Skyler
February 25th, 2007, 01:59 PM
Oh... okay... thank you.