KPLAYER - HOW TO COMPILE ON MANDRAKE 10
KPlayer is comfortable media player based on MPlayer. It's "comfortable" because many options can be set from nice and easy-to-use user interface.
I thing interface is so friendly, that explaining its functions makes no sense. Just in case, note you can toggle between fullscreen and window mode with CTRL + F (not with F only). This information comes in handy, if you click on fullscreen icon and then don't know how to get back.
Installation
KPlayer is based on mplayer. So its installation and functionality is necessary.
New version 0.5 of KPlayer will be released soon, but currently it is still under development, witch means you probably don't find RPM package. If you read this text with some lapse of time, it's maybe already available. I suggest to use it. Your system will be clean and you will not bother with compilation.
Compilation
For those who always want the latest version, or those who cannot find package.
- Getting source code:
- Download it from homepage and decompress the archive tar -xvzf filename, or
- download from CVS folloving this manual. It means connect to internet and type
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/kplayer login, press [Enter] instead of password and then
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/kplayer co kplayer
- Change to directory where you stored decompressed sources and type ./configure --prefix=/usr [Enter]. --prefix=/usr to NOT install into /usr/local directory, which is default value, but in Mandrakelinux is KDE right in /usr.
- Now you probably get bunch of error messages. For example: Qt... configure: error: Qt (>= Qt 3.1.0) (headers and libraries) not found. Please check your installation!. KPlayer is integrated to KDE, so you need devel packages. It perhaps will be libqt3-devel, libarts1-devel, libkdecore4-devel, libkdemultimedia1-common-devel, libkdemultimedia1-noatun-devel, and maybe some others. Problems with dependencies will handle urpmi, or rpmDrake. I had to install autoconf2.5-2.59-3mdk too.
- So, install the devel packages, if needed, and type again ./configure --prefix=/usr [Enter]. If you get some other errors, install required packages and so round and round. What you want to see is: Good - your configure finished. Start make now.
- Next part is compilation itself with the help of make [Enter]. On Mandrake 10 it will probably fails with error libtool: link: cannot find the library `/usr/X11R6/lib/libGL.la'. Library libGL.la simply isn't in place, where script expects. It can be easy solved with symbolic link. As root type ln -s /usr/lib/libGL.la /usr/X11R6/lib/libGL.la. Then again: make [Enter].
- If make finishes without errors, you can install files to right directories. Become root and type make install [Enter]. If you want to keep your system clean, use checkinstall instead of make install. It can create the RPM package, which you can normaly install.
- That's it. Login as ordinary user, type kplayer [Enter] and you can play with KPlayer.
Links:
Version of this document:
- 24.05.2004 - first version