LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-01-2002, 08:28 PM   #1
niklasw19
LQ Newbie
 
Registered: Mar 2002
Location: Brooklyn, NY, US
Distribution: SuSE 9.3
Posts: 4

Rep: Reputation: 0
qt-libs not found


Hi!

I have a problem with the qt-libs when I try to configure makefiles
that requires qt, the following is output from a configure script:

checking for Qt... configure: error: Qt (>= Qt 2.2.2)
(library qt) not found. Please check your installation!

I'm using Mandrake 8.2 Beta3.
 
Old 03-12-2002, 01:03 PM   #2
djoao
LQ Newbie
 
Registered: Mar 2002
Location: Zimbabwe
Distribution: Slackware 8.0
Posts: 3

Rep: Reputation: 0
The qt library/toolkit does not vome standard with most distributions. I do not know whether Mandrake bundles it. From the error message it appears that you do not have qt installed. I suggest you visit:

www.trolltech.com/developer/download/qt-x11.html

for a free edition (provided under GPL) of qt. Hope this solves your problem. Have a good day.
 
Old 03-15-2002, 01:16 AM   #3
Rohit
LQ Newbie
 
Registered: Mar 2002
Posts: 6

Rep: Reputation: 0
qt is installed /usr/lib/qt3 or qt2 ... set your QTDIR path to this one.
 
Old 05-02-2003, 11:02 AM   #4
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
how would I go about changing the QTDIR path?
 
Old 05-03-2003, 08:58 AM   #5
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
In some distro's the QTDIR is already set, and you should be OK.
In other distro's this isn't done (Debian for example).

You can set it yourself by first finding out where Qt is installed (look at the directories Rohit's mentiones, or for Debian it's /usr/share/qt). Then set QTDIR to this directory with:

export QTDIR=/usr/share/qt

And then try running ./configure && make again.
 
Old 05-04-2003, 12:30 PM   #6
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
but would setting QTDIR to find the qt2 libraries prevent qt3 programs from running?
 
Old 05-04-2003, 06:20 PM   #7
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
No.
It's only needed when you compile the program. When you exit the shell the QTDIR environment variable is lost anyway, thus undoing all of it's effect.
Except for the executable that you configured/compiled with the QTDIR set, which will "remember" where to find the Qt2 lib's.

Last edited by Hko; 05-04-2003 at 06:22 PM.
 
Old 05-06-2003, 11:20 AM   #8
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
I found the qt2 libraries under /usr/lib/qt2/lib

I entered export QTDIR=/usr/lib/qt2/lib

I switched to the directory where I have the program, and entered ./configure

Same error. I guess I have the wrong Qt.

These are the files in the qt2 directory:
libqt-mt.so.2 libqt.so.2 libqutil.so.1
libqt-mt.so.2.3 libqt.so.2.3 libqutil.so.1.0
libqt-mt.so.2.3.1 libqt.so.2.3.1 libqutil.so.1.0.0
 
Old 05-07-2003, 07:18 PM   #9
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Try:
Code:
export QTDIR=/usr/lib/qt2
(without "/lib")
 
Old 09-11-2003, 04:47 PM   #10
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
that didn't work either. i can't say i'm a big fan of Qt.
 
Old 09-11-2003, 08:36 PM   #11
ujotne
LQ Newbie
 
Registered: Sep 2003
Posts: 13

Rep: Reputation: 0
Make sure that the QTDIR path is activated after you added
QTDIR=/usr/lib/qt3
export $QTDIR
to the .bashrc file in your home directory. To check that you do indeed have a QTDIR environment variable type
echo $QTDIR
You should then see
/usr/lib/qt3
The .bashrc file is read when you open a new shell, so when you open a new shell the QTDIR will be set. If you log out of KDE and inn again and type
echo $QTDIR
you will also see that the QTDIR env. var is set.

Good luck.
 
Old 11-22-2003, 01:12 PM   #12
lukescott
LQ Newbie
 
Registered: Nov 2003
Location: Seattle
Distribution: SuSE 9
Posts: 1

Rep: Reputation: 0
QT Libs not found

I'm getting the same problems, but in SuSE 9. have you found an answer yet?
 
Old 11-24-2003, 04:17 PM   #13
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
I was told that I needed to install the Qt Development Libraries (qt-devel, I think) in order to compile any application that uses Qt. I haven't had time to mess with it though. You might try to download and install those, then try to compile the application again.
 
  


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
KDE Libs not found jonlake Linux - Software 9 02-06-2005 02:57 PM
chroot and shared libs not being found. netstv Linux - General 3 11-05-2004 12:36 PM
Packages not found (xorg-x11-libs) fgoyti Linux - Newbie 4 07-18-2004 11:40 PM
Problem installing DCTC (Qt libs not found). brynjarh Linux - Newbie 1 05-25-2004 06:44 PM
serious trouble : slow program loading + ld libs not found etc www.rzr.free.fr Linux - Software 1 01-17-2004 07:24 PM


All times are GMT -5. The time now is 08:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration