[106] | 1 | This document explains how to compile and install smplayer.
|
---|
| 2 |
|
---|
| 3 | Compiling smplayer should be easy. It only depends on Qt. Since version 0.6.4
|
---|
| 4 | it can only be compiled with Qt 4.3 or greater.
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | 1) How to make a deb package
|
---|
| 8 | 2) How to make a rpm package
|
---|
| 9 | 3) Generic compilation
|
---|
| 10 | 4) Changing installation path
|
---|
| 11 | 5) How to compile in Windows
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | 1) How to make a deb package
|
---|
| 15 | ----------------------------
|
---|
| 16 | Be sure you have installed the following packages: libqt4-dev, zlib1g-dev,
|
---|
| 17 | fakeroot, build-essential, devscripts, debhelper and g++.
|
---|
| 18 | Now run ./create_deb.sh
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | 2) How to make a rpm package
|
---|
| 22 | ----------------------------
|
---|
| 23 | Run rpmbuild -tb smplayer-0.6.x.tar.bz2
|
---|
| 24 | You'll find the rpm pachage under /usr/src/packages/RPMS/i586/
|
---|
| 25 |
|
---|
| 26 | Take a look at this document to know how to create a rpm from the SVN sources:
|
---|
| 27 | http://smplayer.berlios.de/forums/viewtopic.php?id=188
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | 3) Generic compilation
|
---|
| 31 | ----------------------
|
---|
| 32 | You need at least Qt 4.3 to compile smplayer. It won't work with an older
|
---|
| 33 | version.
|
---|
| 34 |
|
---|
| 35 | Be sure you have installed the Qt 4 development package. Its name maybe
|
---|
| 36 | qt4-devel, libqt4-dev or similar.
|
---|
| 37 |
|
---|
| 38 | Uncompress the source code, open a console and enter in the
|
---|
| 39 | smplayer-0.6.x directory.
|
---|
| 40 |
|
---|
| 41 | Type "make".
|
---|
| 42 |
|
---|
| 43 | If everything is ok now you can install it with "make install".
|
---|
| 44 | That will install smplayer in /usr/local.
|
---|
| 45 |
|
---|
| 46 | If "make" fails, it's probably because the Qt 3 qmake has been used instead of
|
---|
| 47 | the Qt 4 one. It seems that some distros have renamed that tool to qmake-qt4.
|
---|
| 48 | Others may have installed in another directory.
|
---|
| 49 | Look at the contents of the qt4-devel package (or whatever its name is) and
|
---|
| 50 | find out where it is.
|
---|
| 51 |
|
---|
| 52 | Now type something like this (just examples):
|
---|
| 53 | make QMAKE=qmake-qt4
|
---|
| 54 | or
|
---|
| 55 | make QMAKE=/usr/share/qt4/bin/qmake
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | 4) Changing installation path
|
---|
| 59 | -----------------------------
|
---|
| 60 | By default smplayer will be installed in /usr/local. You can change it by
|
---|
| 61 | using PREFIX and DESTDIR.
|
---|
| 62 |
|
---|
| 63 | Examples:
|
---|
| 64 | make PREFIX=/usr
|
---|
| 65 | make PREFIX=/usr install
|
---|
| 66 |
|
---|
| 67 | That would install smplayer under /usr.
|
---|
| 68 |
|
---|
| 69 | DESTDIR will be useful for package maintainers.
|
---|
| 70 |
|
---|
| 71 | make PREFIX=/usr
|
---|
| 72 | make PREFIX=/usr DESTDIR=/tmp/ install
|
---|
| 73 |
|
---|
| 74 | That would compile smplayer for /usr but in fact it will be installed in
|
---|
| 75 | /tmp/usr/
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | 5) How to compile in Windows
|
---|
| 79 | ----------------------------
|
---|
| 80 | First you need to download and install Qt (OpenSource edition) in your
|
---|
| 81 | computer. You can get a package with installer from
|
---|
| 82 | http://trolltech.com/developer/downloads/qt/windows
|
---|
| 83 |
|
---|
| 84 | During the installation it will ask you for a compiler. Simply let the
|
---|
| 85 | Qt installer to download and install MinGW.
|
---|
| 86 |
|
---|
| 87 | Now we're ready to compile smplayer (or any other Qt application).
|
---|
| 88 | Download the sources (either the *.tar.gz or from the svn) and
|
---|
| 89 | uncompress them for example in C:\smplayer.
|
---|
| 90 |
|
---|
| 91 | The next step is to open the Qt console: select the option "Qt 4.3.x
|
---|
| 92 | Command Prompt" that you'll find under the Qt menu.
|
---|
| 93 |
|
---|
| 94 | That'll open a DOS-like window. Type the following commands:
|
---|
| 95 |
|
---|
| 96 | cd c:\smplayer
|
---|
| 97 | compile_windows.bat
|
---|
| 98 |
|
---|
| 99 | Compiling will start. That'll take a few minutes.
|
---|
| 100 |
|
---|
| 101 | After that you'll get the new compiled smplayer.exe under
|
---|
| 102 | c:\smplayer\src\release subdirectory.
|
---|
| 103 |
|
---|
| 104 | You'll see that if you try to open it by double clicking on it, it won't
|
---|
| 105 | work because it can find the Qt dlls. I assume you already have smplayer
|
---|
| 106 | properly installed in some place, just copy the new smplayer.exe to that
|
---|
| 107 | directory, replacing the old one. Now it will work
|
---|
| 108 |
|
---|
| 109 | You may also need to copy the updated translation files (*.qm) from the
|
---|
| 110 | translations subdirectory.
|
---|
| 111 |
|
---|
| 112 | Note: please see this document to know how to compile with Qxt support:
|
---|
| 113 | http://smplayer.berlios.de/forums/viewtopic.php?pid=1737#p1737
|
---|