source: smplayer/trunk/Install.txt@ 175

Last change on this file since 175 was 139, checked in by Silvan Scherrer, 13 years ago

SMPlayer: update trunk to 0.8.2

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