LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2002, 08:10 PM   #1
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Rep: Reputation: 0
Question Qt problem


I have a system with Linux kernel 2.4.19 + KDE3 + Qt3.
I am trying to install a software caitoo download manager.
While ./configure, I get the error -

'Qt >= 1.42 (libraries) not found. Please check your installation.'

though I have Qt 3 installed on my system. The config.log says -

'/usr/bin/qt3/lib -lqt not found'

Similarly, I get 'Qt >= 2.22 not found' for Geheimnis (gpg) software.

Where can I get these Qt libraries? Can these older version co-exist with Qt 3 without creating problems? And how to install them?

I had somewhat simlar problem with libstdc++....so.2 file, which I could rectify be creating a soft link to libstdc++....so.10.o file. Can something similar available for the current problem?

Please advice.

Regards.
 
Old 09-03-2002, 12:23 AM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
maybe your' qt packages are installed somewhere other than where configure is looking for them. run "updatedb" then "locate qt | less" (or something similar) to see where they are. If you type (you probably know this) ./configure --help, you might be able to set where to look for certain libraries. Remember, ./configure is defaulted to prefix=/usr/local.

I probably didn't help much, but i figured i'd try... good carma ;-)

Good Luck
 
Old 09-03-2002, 02:50 AM   #3
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
Have you set these enviroment variables?
Quote:
QTDIR=/usr/lib/qt3
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
Replace /usr/lib/qt3 by YOUR qt3 path.

To see where is qt3 type:
Quote:
whereis qt3
Good luck
Hfawzy
 
Old 09-04-2002, 08:49 AM   #4
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Original Poster
Rep: Reputation: 0
Tried all the above suggestions. But they did not work.

Qt3 is properly set to /usr/lib/qt3, confirmed by whereis qt3.
Also added various paths as suggested.
Used 'updatedb' as well as 'locate qt | less'.

Getting the same error.

Can I install these older qt versions without creating any problems to Qt3?

Regards.
 
Old 09-04-2002, 09:08 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, all three versions of the toolkit should be able to exist side by side, and thats almost definitely the problem you are havign here. as qt evolved it's API changed very dramatically, and as such programs designed for qt1 haven't a hope in hell with working wtihj qt2 or qt3

try to install the rpms with "rpm -ivh qtwhatever.rpm"
 
Old 09-04-2002, 10:23 AM   #6
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Original Poster
Rep: Reputation: 0
Tried to search the net for qt-1.42 & qt-2.22 without success.

Any sites from where I can download these libraries (rpm)?
 
Old 09-04-2002, 10:33 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
rpmfind.net of course, you'll probably want to search for qt and qt2 though. and if compiling from sources in future, it's the devel pacakges as well
 
Old 09-05-2002, 08:49 AM   #8
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Original Poster
Rep: Reputation: 0
downloaded qt-1.42-1rh51.i386.rpm (only available) from rpmfind.net.

when tried to install, gives dependency problem for -
libstdc++.so.2.8 needed by qt-1.42.......

tried to symlink available libstdc++.so.2.10.o as 2.8, but it didn't work.

any suggestions on how to proceed?

regards.
 
Old 09-05-2002, 03:38 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Qt 1.42 is VERY old. Try the 2.x version... One more trick with your QT3:
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARYPATH
and try to run configure
 
Old 09-06-2002, 09:04 AM   #10
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Original Poster
Rep: Reputation: 0
got the QT 1.42 problem solved by installing libstdc++.so.2.8 rpm package, but now facing kde error.

Getting 'Can not compile a small kde application - kde headers not found' error.

Now, I have kde headers installed in opt/kde3/include directory.
Which headers are being requested here?

please help.

regards.
 
Old 09-06-2002, 09:33 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Try to add an option to specify KDE headers, if I remember correctly it's
./configure --with-kde-includes=/opt/kde3/include
Chack ./configure --help for details in the program you're trying to compile.
 
Old 09-10-2002, 02:53 AM   #12
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks all of you. Finally I could install caitoo software along with qt-1.44. I had to compile the qt-1.44 source and everything fell into place right away.

On similar basis, I am trying to install Geheimnis software which is a GUI to GnuPG. It requires Qt >= 2.2.2, so I downloaded Qt2 source qt2-2.3.1-3.src.rpm from www.rpmfind.net and installed.
Now my machine has qt (qt-1.44 in usr/local/qt), qt2 (qt-2.3.1 in
usr/local/qt2), and qt3 (qt-3.0.4 in usr/lib/qt3). Also I have KDE3 headers/libs in /opt/kde3 - include and lib respectively.

./configure could find the Qt >= 2.2.2. It picked up KDE default paths and proceeded to create makefile. I had to provide qt3 paths though, using --with-extra-includes= and --with-extra-libs = for using few files like qtptrlist.h only available under qt3.

Now, while running make I get the following error message -

make all-recursive
make[1]: Entering directory `/root/geheimnis-1.98/geheimnis'
Making all in geheimnis
make[2]: Entering directory `/root/geheimnis-1.98/geheimnis/geheimnis'
Making all in .
make[3]: Entering directory `/root/geheimnis-1.98/geheimnis/geheimnis'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/local/qt2/include
-I/usr/X11R6/include -I/usr/lib/qt3/include -O2 -fno-exceptions
-fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -O2 -mcpu=i386
-fno-strength-reduce -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST
-DKDE_NO_COMPAT -DKDE_NO_COMPAT_H -frtti -c main.cpp
main.cpp: In function `int main(int, char **)':
main.cpp:118: aggregate `class KApplication app' has incomplete type and
cannot be initialized
main.cpp:137: `kapp' undeclared (first use this function)
main.cpp:137: (Each undeclared identifier is reported only once
main.cpp:137: for each function it appears in.)
main.cpp:209: warning: control reaches end of non-void function `main(int,
char **)'
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/root/geheimnis-1.98/geheimnis/geheimnis'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/geheimnis-1.98/geheimnis/geheimnis'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/geheimnis-1.98/geheimnis'
make: *** [all-recursive-am] Error 2

How can I rectify this error? Is it because of the multiple Qt versions?
Please advice.

Regards.
 
Old 09-10-2002, 01:54 PM   #13
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
When a program needs QT3, make sure all variables (like QTDIR) are set to QT3.
 
Old 09-12-2002, 12:57 AM   #14
radhx
LQ Newbie
 
Registered: Sep 2002
Location: Mumbai, INDIA.
Distribution: Debian GNU/Linux 2.6.11 - coLinux 0.6.3
Posts: 8

Original Poster
Rep: Reputation: 0
Checked the QTDIR, LD_LIBRARY_PATH, MANPATH, PATH... etc. All are pointing to qt3 except KDEDIR.

After installing qt1.44 and qt2.31, now KDEDIR points to -
KDEDIR=/usr

The profile in etc directory rightly point to KDEDIR=/opt/kde3.
But after the bootup, it is always KDEDIR=/usr
Also, whereis does not show /opt/kde3 as it used to previously.

Where is it being setup? so I can rectify it.

I tried to find out where it is being set, but with no luck.
So I manually changed the KDEDIR from root console, and tried to run ./configure abd make. But it again gave the same error again.

Please advice.

Regards.
 
Old 09-12-2002, 05:33 AM   #15
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
are qt apps not built with
qmake
?
i played around with qt for a while and never tried
make
i donīt know - but u might try
cheers, jens
 
  


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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:41 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