Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 11-24-2003, 03:54 AM   #1
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Attempting to compile software - GTK+ problems

Hi all,

I am trying to compile a program (sisctrl, the runtime XFree configurator for the sis_drv.o driver, by Thomas Winischhofer). I am having dependency difficulties. The configure script complains that GTK+ >= 2.0 must be installed. Yet I did install the libgtk rpm (and the -devel package too).

When I investigate the config.log, I find it is trying to #include <gtk/gtk.h>

I look in /usr/include, and find that Mandrake has given me a directory called gtk-2.0 (confusingly there is also one called gtk-1.2) and within that folder is are two directories, gtk and gdk. Inside this folder (/usr/include/gtk-2.0/gtk) there seem to be all the header files I need, so I thought maybe I'll fix the problem my creating a pair of links:

(in /usr/include):

# ln -s gtk-2.0/gtk gtk
# ln -s gtk-2.0/gdk gdk

but the configure script still complains that GTK+ is not installed correctly. The config.log has not changed (and I did delete it before running configure again).

Anybody encountered this kind of trouble (with Mandrake, 9.1 to be specific) and fixed it? It seems that Mandrake are putting their files in non-standard places, is that correct? How can I work around this?

Thanks in advance.
Old 11-24-2003, 10:28 AM   #2
Registered: Nov 2003
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
I simply downloaded the latest versions of Glib, GTK, ATK, and Pango. You'll need the bison and flex packages (get them in the rpmdrake interface). Use --prefix=/usr for everything, and it works out perfectly.

Once bison and flex are installed (you'll need the cds, of course), just extract glib, gtk, atk and pango. Glib needs to be installed first, a simple './configure --prefix=/usr' works fine here, make && make install. The same procedure follows for the others in this order: ATK, Pango, GTK. The files are at

Of course, there may be another solution, but this is what I did, and it worked.
Old 11-24-2003, 12:59 PM   #3
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Original Poster
Rep: Reputation: 30
Wonderful, that worked a treat. Thanks!


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
Error when attempting to compile kernel SMurf7 Debian 3 04-05-2005 05:31 PM
GTK compile problems AnimaSola Linux - Software 13 07-14-2004 07:30 PM
gtk+2.4.4 compile problems AnimaSola Linux - Software 0 07-13-2004 08:49 PM
errors attempting to compile nvaudio module lasalsademuerte Slackware 2 12-02-2003 05:43 PM
Problems wirh compile - GTK falcon56215 Linux - Software 3 11-07-2003 04:10 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:16 PM.

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