LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-27-2005, 03:52 PM   #1
xbill311x
Member
 
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Rep: Reputation: 15
kplayer ./configure error


Hi all,

I was trying to install kplayer on my machine and I got this error:

checking for Qt... configure: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!


So I downloaded and installed qt-x11-free-3.1.2 (at least I'm pretty sure installed properly, no error messages to speak of) and when I try to ./configure kplayer again, it still gives me the same error.

While I am a Linux newbie, it's very possble that I am doing something wrong (haha). Perhaps I have I need to edit a config file or relocate a directory, or something of that nature. Tried to fix the problem before I asked, but to no avail.

Any suggestions?

Thanks all,

Bill
 
Old 03-27-2005, 05:36 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
there are a few possibilities here, how did you configure and install qt ( what commands did you use, it's one of those packages that needs the right commands to function).

a couple of other possibilities are you built qt without thread support ( bad), or you haven't exported the necessary environmental variables for the system to pick up qt ( namely QTDIR needs to point back to the qt installation root).
 
Old 03-27-2005, 08:39 PM   #3
xbill311x
Member
 
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Original Poster
Rep: Reputation: 15
Hi, __J,

Well, before I did anything, I created the .profile file with the following:

QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

as the INSTALL readme said. Then I put the file in my home directory and in root's home directory, as I wasn't sure which "home" directory it was referring to.

Then I renamed the directory containing the qt files (qt-3.1.2) to "qt" and put it in usr/local.

I then issued the following:

.configure

make

make install

I didn't think I had done everything correctly, but I didn't get any error messages until I actually tried to ./configure kplayer and got the same error message as before.

Here were a couple things in the INSTALL readme that I didn't understand, that may have made a difference:

On AIX set LIBPATH and on HP-UX set SHLIB_PATH instead of LD_LIBRARY_PATH.

and

At this point you have binaries created in $QTDIR (eg. $QTDIR/lib/
contains libqt.so). If, however, you would like to have your Qt
installed in a non-local installation you can run configure with
options splitting Qt into different areas for example:

./configure -libdir /usr/local/lib -bindir /usr/local/bin -headerdir /usr/local/include/qt

I hope I have been thorough enough. If you want, I can post the whole readme, it not that long.

As far as thread support, I'm starting to think that maybe I didn't. Sorry I'm such a newbie . Anyway, let me know what you think, and I appriciate your help.

Thanks,

Bill
 
Old 03-27-2005, 10:45 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you will need more than that for kde to be able to use qt. something like this ( in the qt source directory):

Code:
bash
export QTDIR=$PWD
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export $PATH=$QTDIR/bin:$PATH
./configure -prefix /opt/qt-3 -qt-gif -system-libmng -system-libjpeg -system-libpng -thread -no-exceptions
make ( or "make sub-tools" if you want to build just the libraries, and skip building all of the examples and such ( this saves alot of time, if you are not interested in using qt for development and just want to use it, use the make sub-tools command))
make install
If you are not making an rpm, I'd install it in /opt instead of /usr/local ( removal/upgrade later on will be much easier)

then, as root open up /etc/profile and add these lines somewhere in the file:
Code:
export QTDIR=/opt/qt-3
export PATH=/opt/qt-3/bin:$PATH
then, lastly, add /opt/qt-3/lib to /etc/ld.so.conf and run ldconfig ( as root) and you should be good.

heres a little more in depth how-to:
http://lfs.osuosl.org/blfs/view/stable/x/lib.html#qt
 
Old 03-27-2005, 10:55 PM   #5
xbill311x
Member
 
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Original Poster
Rep: Reputation: 15
Hey, man, thanks alot. I appriciate it. Let me absorb everything and I'll let you know if it works. Still a newbie, so it might take me a while, lol.

Thanks again,

Bill

 
  


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
configure kplayer jupiter3437 Linux - Software 3 08-29-2005 05:39 PM
Play a VCD with Kplayer lmanwarren Linux - Software 2 04-20-2005 03:02 AM
im trying to install kplayer and i get an error... gbdavidx Slackware 3 11-12-2004 03:44 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
installing kplayer-0.3.1 in redhat 9 tuxfood Linux - Software 1 10-11-2003 02:57 AM

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

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