Where are my GTK /QT libraries?? (Problems Compiling)
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86
Rep:
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?
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.
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86
Original Poster
Rep:
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?)
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.
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86
Original Poster
Rep:
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.
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).
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
Distribution: SUSE 10.0, LiMP (Linux Multimedia Player)
Posts: 86
Original Poster
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.