forked from bluecherrydvr/bluecherry-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD-WINDOWS.txt
74 lines (56 loc) · 2.36 KB
/
BUILD-WINDOWS.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
REQUIREMENTS
To compile bluecherry-client on Windows install following applications and libraries:
* Qt libraries 4.8.6 for Windows (VS 2010)
http://download.qt.io/archive/qt/4.8/4.8.6/qt-opensource-windows-x86-vs2010-4.8.6.exe
* Qt Creator 2.6.2 for Windows
http://releases.qt-project.org/qtcreator/2.6.2/qt-creator-windows-opensource-2.6.2.exe
* CMake 2.8 for Windows
http://www.cmake.org/files/v2.8/cmake-2.8.10.2-win32-x86.exe
* Microsoft Visual Studio 2010 Express Edition (C++)
http://www.microsoft.com/visualstudio/eng#products/visual-studio-2010-express
* Microsoft Visual Studio 2010 Service Pack 1
http://www.microsoft.com/en-us/download/details.aspx?id=23691
* FFMpeg
http://ffmpeg.zeranoe.com/builds/
suitable latest version
* msinttypes
http://msinttypes.googlecode.com/files/msinttypes-r26.zip
unpack only inttypes.h under C:\bluecherry\deps\msinttypes
* OpenSSL
download latest OpenSSL version (1.0.2g at this moment) from
https://openssl.org
unpack sources and build according to instructions in file INSTALL.W32
"perl Configure VC-WIN32 --prefix=prefix"
* SDL 2.0.4
dowload headers and library files from http://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip
CONFIGURING Qt Creator
Run Qt Creator and configure Qt Kit:
- open Options window (Tools -> Options...)
- select Qt Versions tab (Build & Run -> Qt Versions)
- add Qt 4.8.6 to system (Add -> C:\Qt\4.8.6\bin\qmake.exe)
- click Apply
- select Kits tab (Build & Run -> Kits)
- click Add and fill out form:
* Name: Qt 4.8.6
* Device type: Desktop
* Device: Run locally (default for Desktop)
* Compiler: Microsoft Visual C++ Compiler 10.0 (x86)
* Qt version: Qt 4.8.6
- click OK
CONFIGURING bluecherry-client
Import bluecherry-client to Qt Creator:
- copy windows-user.cmake to user.cmake file
- adjust paths in user.cmake file: WIN32_MSINTTYPES_DIR, WIN32_LIBAV_DIR, WIN32_BREAKPAD_SRC_DIR, WIN32_OPENSSL_DIR, etc
- open CMakeLists.txt file (File -> Open File or Project...)
- click Next
- select C:\Program Files (x86)\CMake 2.8\bin\cmake.exe
- click Next
- enter -DCMAKE_BUILD_TYPE=Release for release build or -DCMAKE_BUILD_TYPE=Debug for Debug build
- select NMake Generator
- click Run CMake
- click Finish
BUILDING bluecherry-client
Press Ctrl+B from Qt Creator to build.
EXECUTING bluecherry-client
Select bluecherry-client from Run Toolbar.
Press Ctrl+R from Qt Creator to execute.