1 | This document explains how to compile and install SMPlayer.
|
---|
2 |
|
---|
3 | Compiling SMPlayer should be easy. It only depends on Qt 4.
|
---|
4 |
|
---|
5 |
|
---|
6 | 1) How to make a deb package
|
---|
7 | 2) How to make a rpm package
|
---|
8 | 3) Generic compilation
|
---|
9 | 4) Changing installation path
|
---|
10 | 5) How to compile in Windows
|
---|
11 |
|
---|
12 |
|
---|
13 | 1) How to make a deb package
|
---|
14 | ----------------------------
|
---|
15 | Be sure you have installed the following packages: libqt4-dev, zlib1g-dev,
|
---|
16 | fakeroot, build-essential, devscripts, debhelper and g++.
|
---|
17 |
|
---|
18 | sudo apt-get install libqt4-dev zlib1g-dev fakeroot build-essential devscripts debhelper g++
|
---|
19 |
|
---|
20 | (Packages to compile with Qt5: qtbase5-dev qt5-qmake qt5-default qtscript5-dev
|
---|
21 | qttools5-dev-tools qtbase5-private-dev libqt5webkit5-dev)
|
---|
22 |
|
---|
23 | Now run ./create_deb.sh
|
---|
24 |
|
---|
25 |
|
---|
26 | 2) How to make a rpm package
|
---|
27 | ----------------------------
|
---|
28 | Building a rpm package is not easy. Better get a binary package from
|
---|
29 | this repository:
|
---|
30 | https://software.opensuse.org/download.html?project=home%3Asmplayerdev&package=smplayer
|
---|
31 |
|
---|
32 |
|
---|
33 | 3) Generic compilation
|
---|
34 | ----------------------
|
---|
35 | (obsolete)
|
---|
36 |
|
---|
37 |
|
---|
38 | 4) Changing installation path
|
---|
39 | -----------------------------
|
---|
40 | By default smplayer will be installed in /usr/local. You can change it by
|
---|
41 | using PREFIX and DESTDIR.
|
---|
42 |
|
---|
43 | Examples:
|
---|
44 | make PREFIX=/usr
|
---|
45 | make PREFIX=/usr install
|
---|
46 |
|
---|
47 | That would install smplayer under /usr.
|
---|
48 |
|
---|
49 | DESTDIR will be useful for package maintainers.
|
---|
50 |
|
---|
51 | make PREFIX=/usr
|
---|
52 | make PREFIX=/usr DESTDIR=/tmp/ install
|
---|
53 |
|
---|
54 | That would compile smplayer for /usr but in fact it will be installed in
|
---|
55 | /tmp/usr/
|
---|
56 |
|
---|
57 |
|
---|
58 | 5) How to compile in Windows
|
---|
59 | ----------------------------
|
---|
60 | (obsolete)
|
---|