LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-16-2005, 08:03 AM   #1
yekrahs
Member
 
Registered: Aug 2005
Location: England
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86

Rep: Reputation: 15
Where are my GTK /QT libraries?? (Problems Compiling)


I've had problems compiling a couple of programs. One for GTK, and one for QT. I have a fairly standard SUSE 10.0 install, so I don't know what's gone wrong here.
I got this message when compiling the first one (both card games, btw) :

Quote:
checking for gtk-config... no
checking for GTK - version >= 1.2.0... 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.
configure: error: Cannot find GTK: Is gtk-config in path?
I'd have thought that my GTK version would be new enough... SUSE 10.0 isn't that old yet, is it?

My GTK packages. Is there something else I need installed, or what?
Quote:
linux@linux:/ rpm -qa | grep gtk
gtk2-engines-2.6.5-5
gtk-sharp-gapi-1.0.10-6
gtk2-doc-2.8.3-4
gtkdoc-1.4-3
gtk-1.2.10-888
gtk-engines-0.12-965
gtkspell-2.0.11-5
python-gtk-2.8.0-3
gtksourceview-1.4.1-2
gtkglarea-1.2.2-895
gtk2-devel-2.8.3-4
gtk-qt-engine-0.6cvs20050229-11
dbus-1-gtk-0.35.2-8
gtk-sharp-1.0.10-6
gtk-sharp2-1.9.5-9
gtkmm2-2.2.12-12
gtk-sharp2-gapi-1.9.5-9
libgtkhtml3.1_11-3.1.18.0.200407302001-0.snap.ximian.9.1
gtk2-2.8.3-4
gtklp-1.0g-2
gtk2-themes-0.1-639
libgtkhtml-2.6.3-9
gtkhtml2-3.8.0-3
gtkmm24-2.8.0-2



PROGRAM #2:

Compiling hearts, got:

Quote:
checking for Qt... configure: error: Qt (snapshot >= Qt 2.1 beta2) (libraries) not found. Please check your installation!

...I thought I had QT libraries installed! Surely my version is >= 2.1 beta2?

Quote:
My QT packages:
linux@linux:/ rpm -qa | grep qt
qt3-mysql-3.3.4-28
yast2-qt-2.12.12-2
dbus-1-qt-0.35.2-8
qt3-devel-3.3.4-28
gtk-qt-engine-0.6cvs20050229-11
qt3-devel-tools-3.3.4-28
qt3-3.3.4-28



Thanks for your help

Last edited by yekrahs; 12-16-2005 at 08:08 AM.
 
Old 12-16-2005, 08:19 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Maybe you need to provide a prefix to ./configure. What do you want to compile?
 
Old 12-16-2005, 10:08 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
for the gtk problem you need to install the development packages for gtk 1.x (its not the same as gtk2). For hearts you neeed qt 2, but I am not sure if its worth installing.
 
Old 12-17-2005, 08:42 AM   #4
yekrahs
Member
 
Registered: Aug 2005
Location: England
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Maybe you need to provide a prefix to ./configure
Any suggestions?

Quote:
for the gtk problem you need to install the development packages for gtk 1.x (its not the same as gtk2). For hearts you neeed qt 2, but I am not sure if its worth installing.
I thought when it said that e.g.
version >= 1.2.0
that as I have a higher version that 1.2.0 it would be ok. Why do I need earlier versions of software? Surely qt and gtk should be backward compatible.


Would installing gtk1 installment packages & qt2 mess up my existing gtk & qt packages?
(Why would installing qt 2 not be worth it?)

Last edited by yekrahs; 12-17-2005 at 08:47 AM.
 
Old 12-17-2005, 05:08 PM   #5
MadCowDzz
Member
 
Registered: May 2003
Location: Canada
Distribution: Ubuntu, Suse 10
Posts: 58

Rep: Reputation: 15
Regarding QT...

By chance, are you using a 64bit processor?
I've had similar problems, you can read some posts in my similar thread

Last edited by MadCowDzz; 12-17-2005 at 06:48 PM.
 
Old 12-17-2005, 05:56 PM   #6
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Rep: Reputation: 30
To compile it is best to install:

kdelibs3-devel

If you do a rpm -qa kdelib* you can verify that they are not installed then install them through YaST or by using whatever you use.
 
Old 12-19-2005, 08:33 AM   #7
yekrahs
Member
 
Registered: Aug 2005
Location: England
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86

Original Poster
Rep: Reputation: 15
Unfortunately, my computer: just 32 bit (And an old one, at that).

I will try looking for kdelibs3-devel, gtk 1.x & qt 2

However, as I said before, will it mess up existing gtk / qt stuff on my computer? Does anyone else know why qt 2 is not worth it?

Last edited by yekrahs; 12-19-2005 at 08:38 AM.
 
Old 12-19-2005, 12:07 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by reddazz
for the gtk problem you need to install the development packages for gtk 1.x (its not the same as gtk2). For hearts you neeed qt 2, but I am not sure if its worth installing.
Like I said gtk 1.x is not the same as gtk 2.x, so they can coexist on any system. I've tried compiling hearts using qt3 and it configures fine but the build does not work fine on Suse 10. If I get it to work, I'll let you know.
 
Old 12-20-2005, 06:53 AM   #9
yekrahs
Member
 
Registered: Aug 2005
Location: England
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
If I get it to work, I'll let you know.
Thanks v much: I couldn't get qt2 to install.

As for installing gtk1, I did an rpm search for it and could only find a "gtk1-compat-devel" package. (Is this the right one to install for gkt1 compatibility?)

Anyway, it wouldn't install as there was a conflict with a glibc package. Should I jsut forget it? I might look for java euchre, if such a thing is out there.
 
Old 12-20-2005, 06:58 AM   #10
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
As for installing gtk1, I did an rpm search for it and could only find a "gtk1-compat-devel" package.
I guess this is just a spelling error. The gtk1 package is called "gtk-1.2.10-888" and the respective devel package "gtk-devel-1.2.10-893" (Interestingly, it seems that my devel version is newer).

Last edited by abisko00; 12-20-2005 at 07:00 AM.
 
Old 12-20-2005, 08:18 AM   #11
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
Quote:
checking for Qt... configure: error: Qt (snapshot >= Qt 2.1 beta2) (libraries) not found. Please check your installation!
Would you mind telling us what are those program(s) that you are trying to install?

(and links please)
 
Old 12-20-2005, 09:36 AM   #12
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Tried to reproduce your error in the hearts compilation. Couldn't!
No complains about the qt version. My setup concering qt is identical to yours. However, the compilation failed:
Code:
player.h:88: warning: ‘class Player::Receiver’ has virtual functions but non-virtual destructor
../common/general/circular_iterator.h: In member function ‘circular_iterator<It>& circular_iterator<It>::operator+=(typename std::iterator_traits<_Iterator>::difference_type)’:
../common/general/circular_iterator.h:140: error: expected `;' before ‘d’
../common/general/circular_iterator.h:141: error: ‘d’ was not declared in this scope
../common/general/circular_iterator.h:145: error: ‘d’ was not declared in this scope
Didn't do any further research yet.
 
Old 12-21-2005, 06:13 AM   #13
yekrahs
Member
 
Registered: Aug 2005
Location: England
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Would you mind telling us what are those program(s) that you are trying to install?
(and links please)
Euchre and Hearts (I like card games)
http://freshmeat.net/projects/hearts/
http://freshmeat.net/projects/euchre/

I realise just looking at them now that they're both quite old now... Euchre hasn't been updated since 2003

Quote:
I guess this is just a spelling error. The gtk1 package is called "gtk-1.2.10-888" and the respective devel package "gtk-devel-1.2.10-893"
Thanks for that. Couldn't find them when I did an rpm search.

Quote:
Tried to reproduce your error in the hearts compilation. Couldn't!
Strange. Well, if you have any success...

Thanks
(And a v. Merry Christmas to everyone).

Last edited by yekrahs; 12-21-2005 at 06:27 AM.
 
Old 12-21-2005, 08:17 AM   #14
johnnydepp74
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Cannnot find gtk-devel-1.2x, gtk-config not found

Hi,

I also have the same problem when I tried installing PuTTy where they prompt me:
"..../bin/sh: gtk-config not found.."

I did an "rpm -q gtk" and it shows as:
gtk-1.2.10-888

but I still cannot find any "gtk-devel-1.2x" package under YAST.

I am using Suse 10.0, any kind souls out there using Suse 10.0 have managed to find the development rpm, can share with me.

Gracias.

Rgds
Johnny
 
Old 12-21-2005, 10:57 AM   #15
yekrahs
Member
 
Registered: Aug 2005
Location: England
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86

Original Poster
Rep: Reputation: 15
Well I got gtk-1.2.10-888 and gtk-devel-1.2.10-893 installed, (it configured ok) but got this error when I tried to make:
linux:/usr/euchre-0.7 # make
make all-recursive
make[1]: Entering directory `/usr/euchre-0.7'

Quote:
Making all in macros
make[2]: Entering directory `/usr/euchre-0.7/macros'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/euchre-0.7/macros'
Making all in src
make[2]: Entering directory `/usr/euchre-0.7/src'
Making all in lib
make[3]: Entering directory `/usr/euchre-0.7/src/lib'
c++ -DHAVE_CONFIG_H -I. -I/usr/euchre-0.7/src/lib -I../.. -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -g -O2 -c Card.cpp
In file included from /usr/include/c++/4.0.2/backward/iostream.h:31,
from Card.cpp:24:
/usr/include/c++/4.0.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
Card.hpp:27: error: using typedef-name ƒ€˜std:streamƒ€™ after ƒ€˜classƒ€™
/usr/include/c++/4.0.2/iosfwd:139: error: ƒ€˜std:streamƒ€™ has a previous declaration here
make[3]: *** [Card.o] Error 1
make[3]: Leaving directory `/usr/euchre-0.7/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/euchre-0.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/euchre-0.7'
make: *** [all-recursive-am] Error 2
any ideas?
 
  


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
How to properly install Gtk libraries for compiling franznietzsche Programming 5 04-28-2005 07:02 AM
Problems with GTK and libXML when compiling HELP! britishnemesis Linux - Software 2 02-18-2005 01:27 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
Having problems with compiling gtk, nicotine? try this domo2505 Linux - Software 13 05-16-2004 02:24 PM
Problems Compiling GTK C++ Source Code drdroid Programming 17 04-10-2004 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration