LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-12-2005, 04:42 PM   #1
trumpetdork
LQ Newbie
 
Registered: Apr 2005
Posts: 18

Rep: Reputation: 0
amarok1.2.3 install problem


I'm trying to install the amarok media library, version 1.2.3. The configure script produces the following:
Code:
checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt) not found. Please check your installation!
I downloaded and installed Qt 3.3.4 already, so why isn't is recognized? This is Fedora Core 3.
 
Old 04-12-2005, 05:20 PM   #2
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
Hi,

Did you install the QT development libraries as well?
 
Old 04-12-2005, 09:39 PM   #3
trumpetdork
LQ Newbie
 
Registered: Apr 2005
Posts: 18

Original Poster
Rep: Reputation: 0
I downloaded the following: http://freshmeat.net/redir/qt/8673/u...e-3.3.4.tar.gz

What else do I need? Where might these development libraries be?
 
Old 04-13-2005, 04:03 AM   #4
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
Hi,

Looks like you've built QT from source, so you should be OK (I was thinking you might have used a binary package, such as an RPM, in which case, the libraries tend to be distributed separately).

Where is QT installed? It's possible it isn't in your PATH, so can't be found. You can check your PATH variable by issuing -

Code:
echo $PATH
Then have a look and see where the QT libraries are installed. If they're not in one of the locations shown in your PATH, try adding the location to your PATH variable -

Code:
export PATH=$PATH:/path/to/qt
Then have a go at rebuilding amaroK.
 
Old 04-13-2005, 04:50 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
How did you build qt? did you enable thread support? where did you install it? did you set up your environment correctly after installation per the instructions? have the libraries been updated in the system cache?
 
Old 04-14-2005, 11:57 PM   #6
trumpetdork
LQ Newbie
 
Registered: Apr 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry for the delay in response, work's kept me busy.

I built QT using the configure script, then running make, then make install. I do not know how to configure it for thread support, I'm a linux newbie trying to hack my way through the foreign world as best as I can. I downloaded the Qt-Devel 3.3.3-8 RPM from the Web but was told a new version of the package was already installed. Where do I go from here?
 
Old 04-15-2005, 05:43 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
* Before you do anything below, note that you will have to remove the two qt installations on your system. Unless you know how to manipulate the environment, two qt installations in parallel will not work. The first thing you should try before the instructions below is to remove the qt's from your system and reinstall the rpm's from your install cd's ( both qt-xxx and qt-devel-xxx).
*


I mean how did you configure it ( exaclty what did you pass to configure). Some packages ( qt being one of the notorious ones) need to be built with certain options, they will still compile and install without these options but will be more or less worthless. Here is how I build my qt builds ( note that this is just how I do it, others may have differing opinions):

Code:
bash
export QTDIR=$PWD
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$PATH

./configure -prefix /opt/qt3 -qt-gif -system-libjpeg -system-libpng -system-zlib -system-libmng -thread -no-exceptions

make sub-tools
make install
note that if you plan on using qt to program with, you will want to do "make" instead of "make sub-tools". make sub-tools builds just the library ( which will shorten the build time, since all of the examples will not be built).

Finally, you need to add the qt lib directory (/opt/qt3/lib in the above example) to /etc/ld.so.conf and run ( as root ) ldconfig. The last thing, which is required, is to set the environmental variable QTDIR to point to the root of the qt installation ( /opt/qt3 in the above example). you can put this in your .bashrc in your home directory, or for system-wide put it in /etc/profile ( just add the line "export QTDIR=/opt/qt3" in the file). when you are done, either log out and back in or "source /etc/profile" to use the new changes. the command "echo $QTDIR" should output the line /opt/qt3 in the console.

Last edited by __J; 04-15-2005 at 05:47 AM.
 
Old 04-15-2005, 07:11 AM   #8
trumpetdork
LQ Newbie
 
Registered: Apr 2005
Posts: 18

Original Poster
Rep: Reputation: 0
The above sounds like something good to try, when I said I ran the configre script, I mean i only did ./configure with no options.

But before I do the above...I want to make sure that qt is completly purged from the system first. I ran a yum remove qt command which got rid of some stuff, but I don't know enough about it to ensure it is completly gone, esp since you say there are 2 installations of it on this system. Is there a way to list all packages installed on a system? I personally don't like the Add/Remove Program control panel because I can never find what I'm looking for in it. What's the best way to approach removing qt completly? I did not install it from CD -- anything I did with it was from the web.
 
Old 04-15-2005, 02:36 PM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
the reason I said you had two installations is because you installed one from source, and when you tried to install an rpm later it told you a newer version was already installed ( rpm does not know about source installs, and has no way of knowing that you indeed did install qt-3.3.4 from source so you must have had another rpm installed).

for rpm's:

Code:
rpm -qa <package name>
will search for and list a package if it is there. "rpm -e <package name>" will remove an rpm package.

for you source qt installation, that one definitely must be removed ( it has no thread support ( see the ./configure line in the above post), without thread support kde or any kde application cannot use it). If you still have the source directory around, cd back into it and do "make uninstall" to uninstall it.

If you still have your install cd's/dvd laying around I'd recommend installing the qt and qt-devel off of those before compiling it yourself ( either way is fine, it'll just save you alot of time), or use yum to get and install it, just make sure the rpms are FC3 rpms.
 
  


Reply



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
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Slack 10.1 Install Problem(During Package Install) terdbird Slackware - Installation 2 04-22-2005 02:18 PM
install problem k1ll3r_x Linux - Hardware 6 04-18-2005 10:50 AM
problem after problem with kopete 0.8.4 install starking Linux - Software 0 08-13-2004 08:11 AM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 01:14 PM

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

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