forked from qwinff/qwinff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
91 lines (66 loc) · 3.41 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Building and Installing QWinFF
==============================
QWinFF uses the Qt Toolkit as its graphical interface. You must install
QtSDK 4.4.3 or greater to build QWinFF. Currently supported platforms are
GNU/Linux and Microsoft Windows.
QWinFF depends on several external programs at runtime. Currently these
programs are:
- ffmpeg (required)
- ffprobe (required)
- ffplay (optional, for previewing audio/video cutting)
- sox (optional, for adjusting audio speed)
Building on GNU/Linux
---------------------
The build dependencies of QWinFF are listed as follows:
- QtSDK 4.4.3 or later
- libnotify (only when compiling with `USE_LIBNOTIFY=1`)
Decompress the source code; open a terminal and enter the directory.
Type `make`.
If everything is ok, you may type "make install" to install it.
This will install QWinFF in `/usr/`.
If `make` fails, it's probably because the Qt3 toolchain is used instead of
the Qt4 one.
Try to type something like this (just examples):
make QMAKE=qmake-qt4 LRELEASE=lrelease-qt4
or
make QMAKE=/usr/share/qt4/bin/qmake LRELEASE=/usr/share/qt4/bin/lrelease
### Changing Installation Path
By default, QWinFF will be installed to `/usr/`. You can change it by setting
`PREFIX`. For example, the following command will install QWinFF in
`/usr/local/`:
make PREFIX=/usr/local
make PREFIX=/usr/local install
Please make sure that `PREFIX` in `make` and `make install` are the same.
### Compiling with libnotify
*libnotify* is a library that sends desktop notifications. Most GNU/Linux
distributions include it by default, and many applications make use of it to
notify the user of some events. To compile QWinFF with libnotify, set
`USE_LIBNOTIFY=1` when invoking `make` like `make USE_LIBNOTIFY=1`. QWinFF will
use libnotify to send notifications if it has been built like this.
If libnotify is not used at compile-time, QWinFF will try to use *notify-send*,
which is a command-line interface to libnotify. If notify-send is available on
the system, it will be used to send notifications. Otherwise, QWinFF will
fallback to using Qt MessageBox.
Note that libnotify 0.7+ is not compatible with its older versions
(0.5.x, 0.6.x). QWinFF will compile with both APIs, but if you compile
it with libnotify 0.7, it will only work with libnotify runtime 0.7,
and vice versa.
Building on Windows
-------------------
The following packages are required to build QWinFF on Windows.
- Qt4 SDK with MinGW
- cygwin
First, install *Qt4 SDK* and *cygwin*, and add the paths containing executables
of Qt tools and cygwin executables to `PATH`. Extract the source code to a
directory and switch to it. Click on `windows_build.bat` to build. (or
`windows_build_portable.bat` which will build QWinFF as a portable application)
If the build was successful, the output files will be copied to
`windows_release\`. (or `windows_release_portable\` for portable version)
Copy necessary Qt DLLs to `windows_release\` If you are using the official
QtSDK, the DLLs are probably `QtCore4.dll`, `QtGui4.dll`, `QtNetwork4.dll`
`libgcc_s_dw2-1.dll`, `libstdc++-6.dll` and `mingwm10.dll`. These files can be
found in `<QtSDK>\Desktop\Qt\4.x.x\mingw\bin`. Download runtime dependencies
(`ffmpeg.exe`, `ffprobe.exe`, etc.) and placed them in `windows_release\tools`.
Now you can execute QWinFF by clicking on the executable file.
The NSIS script `qwinff.nsi` in `windows_release\` can be used to create an
installer. (see http://nsis.sourceforge.net)