LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kplayer ./configure error (https://www.linuxquestions.org/questions/linux-software-2/kplayer-configure-error-306747/)

xbill311x 03-27-2005 03:52 PM

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

__J 03-27-2005 05:36 PM

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).

xbill311x 03-27-2005 08:39 PM

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

__J 03-27-2005 10:45 PM

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

xbill311x 03-27-2005 10:55 PM

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

:)


All times are GMT -5. The time now is 01:33 AM.