Welcome, Guest! Log In | Create Account

Building on Linux

From smplayer

Jump to: navigation, search

This document explains how to compile and install SMPlayer.

Compiling SMPlayer should be easy. It only depends on Qt. Since version 0.6.4 it can only be compiled with Qt 4.3 or greater.

Contents

How to make a deb package

Be sure you have installed the following packages: libqt4-dev, zlib1g-dev, fakeroot, build-essential, devscripts, debhelper and g++. Now run ./create_deb.sh

How to make a rpm package

Run rpmbuild -tb smplayer-0.6.x.tar.bz2 You'll find the rpm pachage under /usr/src/packages/RPMS/i586/

Take a look at this document to know how to create a rpm from the SVN sources: http://smplayer.berlios.de/forums/viewtopic.php?id=188

Generic compilation

You need at least Qt 4.3 to compile SMPlayer. It won't work with an older version.

Be sure you have installed the Qt 4 development package. Its name may be qt4-devel, libqt4-dev or similar.

Uncompress the source code, open a console and enter in the smplayer-0.6.x directory.

Type "make".

If everything is ok now you can install it with make install. That will install SMPlayer in /usr/local.

If make fails, it's probably because the Qt 3 qmake has been used instead of the Qt 4 one. It seems that some distros have renamed that tool to qmake-qt4. Others may have installed in another directory. Look at the contents of the qt4-devel package (or whatever its name is) and find out where it is.

Now type something like this (just examples):

make QMAKE=qmake-qt4

or

make QMAKE=/usr/share/qt4/bin/qmake

Changing installation path

By default SMPayer will be installed in /usr/local. You can change it by using PREFIX and DESTDIR.

Examples:

make PREFIX=/usr
make PREFIX=/usr install

That would install SMPlayer under /usr.

DESTDIR will be useful for package maintainers.

make PREFIX=/usr
make PREFIX=/usr DESTDIR=/tmp/ install

That would compile smplayer for /usr but in fact it will be installed in /tmp/usr/.