forked from nW44b/qstit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
62 lines (46 loc) · 2.39 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
+++++++++++++++++++++++++
INSTALLATION INSTRUCTIONS
+++++++++++++++++++++++++
These are instructions for compiling Qstit from the source code.
If you just want to use the program, easier methods are available, please see our webpage:
http://subtitles.nova-cinema.org
*******
Linux
*******
[Tested on Ubuntu and derivatives like Lubuntu, Xubuntu, Linux Mint...]
- Install the packages "libqt4-dev" (that includes the needed Qt libraries) and "build-essential", by typing the following command in a terminal:
$ sudo apt-get install libqt4-dev build-essential
- Open a terminal in the 'src' folder of the sources and type the following commands:
$ qmake && make
An executable file named "qstit" is created. Double-click it to start the program.
- If you want Qstit to appear in the list of applications on your system, install it by typing:
$ sudo make install
To display the application icon correctly, you will also need to update the icon cache:
$ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor/
(for Ubuntu at least)
*********
Windows
*********
[Tested on Xp, Vista and 7]
Install the necessary tools (you can use Visual Studio, but we provide instructions for MinGW):
- You will first need to install MinGW, but note that in order to run with the latest version of Qt4, you will need an older version of MinGW (the one with GCC 4.4). It can be found in their archive or on various forums...
The latest installer from the MinGW website probably won't work correctly.
- Once you have the right version of MinGw installed, you can download and install the Qt librairies. Get version 4 (Qstit doesn't work with Qt5 yet) from the www.qt-project.org website. Choose the version for MinGW.
- Download the sources, and in the 'src' folder, run the following commands:
qmake
mingw32-make
- You can create a BAT file to execute the commands and make sure the environment variables are correctly defined for the paths of Qt and MinGW. Here is a simple model, copy and paste this in a simple text file name with the .bat extension, then run it to compile Qstit. You will need to change the PATH according to your system.
########################################
@echo off
echo Qstit make
echo ----------
set QTDIR=C:\Qt\4.8.4
set PATH=%PATH%;C:\Qt\4.8.4\bin
set PATH=%PATH%;C:\MinGW\bin
set PATH=%PATH%;%SystemRoot%\system32
set QMAKESPEC=win32-g++
qmake
mingw32-make
echo - Done -
pause
#########################################