forked from bluecherrydvr/bluecherry-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD-WINDOWS.txt
69 lines (52 loc) · 2.18 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
REQUIREMENTS
To compile bluecherry-client on Windows install following applications and libraries:
* Qt libraries 4.8.4 for Windows (VS 2010)
http://releases.qt-project.org/qt4/source/qt-win-opensource-4.8.4-vs2010.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
* libav for Windows
http://win32.libav.org/releases/libav-9.7-win32.7z
unpack under C:\bluecherry\deps\libav
* msinttypes
http://msinttypes.googlecode.com/files/msinttypes-r26.zip
unpack only inttypes.h under C:\bluecherry\deps\msinttypes
* OpenSSL for Windows
http://slproweb.com/download/Win32OpenSSL_Light-1_0_1e.exe
install libraries to OpenSLL dir
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.4 to system (Add -> C:\Qt\4.8.4\bin\qmake.exe)
- click Apply
- select Kits tab (Build & Run -> Kits)
- click Add and fill out form:
* Name: Qt 4.8.4
* Device type: Desktop
* Device: Run locally (default for Desktop)
* Compiler: Microsoft Visual C++ Compiler 10.0 (x86)
* Qt version: Qt 4.8.4
- click OK
CONFIGURING bluecherry-client
Import bluecherry-client to Qt Creator:
- copy windows-user.cmake to user.cmake file
- adjusts paths in user.cmake file, only WIN32_MSINTTYPES_DIR and WIN32_LIBAV_DIR should be adjusted
- 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.