source: smplayer/trunk/Install.txt@ 119

Last change on this file since 119 was 106, checked in by Silvan Scherrer, 15 years ago

smplayer: 0.6.9

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