forked from tora-tool/tora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.WINDOWS
136 lines (112 loc) · 5.38 KB
/
README.WINDOWS
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
There is also a Mingw32 Fedora 11 Cross Compile build
- see the README file in the win32-cross directory,
which also contains utility scripts for that build.
Content:
- Building with MSVC - CMake
- Building Windows installer.
#
# Building with MSVC - CMake (+ See README.CMAKE)
#
All information below assumes D:\DEVEL as the base directory, and
D:\DEVEL\tora3 as tora checkout.
1. Download and install "Microsoft Visual Studio 2013 Express" (or higher)
1a. (Optional) Download and install "Microsoft DirectX SDK (June 2010)"
1b. (Optional) Download and install "Microsoft Windows SDK v7.1".
If you have Windows SDK 7.1 use it's command prompt.
1c. Download and install Git for Windows (https://git-for-windows.github.io/), into D:\DEVEL (or somewhere *without* spaces in the PATH)
========================== QT 4 Version ========================================
2. All related steps are done in the "Visual Studio Command Prompt"
I have MS Visual Studio 2013 Express. (Or Windows SDK 7.1 command prompt).
3. Download and install Active state Perl
4. Download and unzip OpenSSL-<ver>.tgz
4a. Build OpenSSL as described here: http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC
4b. set environment qt32.bat (or qt64.bat)
4b. perl Configure VC-WIN32 --prefix=D:\Devel\OpenSSL
4c. ms\do_ms
4d. nmake -f ms\ntdll.mak
4e. nmake -f ms\ntdll.mak install
5. Download and unzip Boost headers. The is no need to compile anything. Only few headers are needed.
6. Download and unzip Qt4 source version for Windows. (Version 4.8.5)
6a. Build OpenSSL as described here: http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC
6b. Configure QT: configure.exe -debug-and-release -fast -openssl -webkit -nomake examples -nomake demos -system-proxies -stl
6c. Compile QT: nmake (and wait)
7. Install Oracle client - instant or standard one. (set env. variable ORACLE_HOME)
8. (Optional) Download and install Postgresql including development packages.
It's a part of the default install - just check its component.
NOTE: Install it to the path *without* spaces in its name - Qt has
problems with compilation in the case of space.
URL: http://www.enterprisedb.com/products/pgdownload.do#windows
Seems that this installer doesn't prompt for any paths/etc.
Be sure and disable postgres service after install if you won't be running the server itself
9. (Optional) Download and install MySQL including development packages.
It's a part of default installer - just check its component.
NOTE: Install it to the path *without* space in its name - Qt has
problems with compilation in the case of space.
URL: http://dev.mysql.com/downloads/mysql/5.1.html#win32
I am testing with the 5.1.37 MSI installer, not the 'Essentials' one
10. Compile QT DB drivers for MySQL and PostgresSQL as described here: http://qt-project.org/doc/qt-4.8/sql-driver.html
========================== QT 5 Version ========================================
2. Download&Install binaries for MSVC
2a. set env variable QTDIR in MSVC command prompt
================================================================================
11. Download and install cmake from www.cmake.org. Into D:\DEVEL (*without* spaces in the PATH)
12. Check and set paths
- QTDIR
- CMAKE
- Doxygen (Optional)
- OpenSSL
- Nasm (Optional)
- Perl
- DirectX SDK (Optional)
- Windows SDK 7.1 (Optional)
- Tortoise SVN (svn.exe is needed while building)
- MSVC
13. Compile Tora in a GUI.
cd d:\devel\tora3
cmake-gui
- Where is the source core: d:\devel\tora3
- Where to build the binaries: d:\devel\tora3
- Add Entry: Name: BOOST_ROOT
Type: "Path"
Value" "D:/DEVEL/boost_1_58_0"
- Add Entry: Name: CMAKE_BUILD_TYPE
Value: either "Debug", "Release" or "RelWithDebInfo"
- Toggle WANT_INTERNAL_QSCINTILLA to Y.
- Toggle WANT_INTERNAL_LOKI to Y.
- Click Configure/Generate, set generator to Visual Studio 2013 (or Visual Studio 2013 64bit)
13b. Open Visual Studio 2013 and import solution tora.sln
13c. Compile projects tora poracle
14. Compile Tora in command prompt
mkdir d:\devel\tora3\debug
cd d:\devel\tora3\debug
cmake -DBOOST_ROOT=D:/DEVEL/boost_1_58_0 -DWANT_INTERNAL_QSCINTILLA=1 -DWANT_INTERNAL_LOKI=1 -DCMAKE_BUILD_TYPE=Debug -G "NMake Makefiles" ..
nmake
#
# Testing
#
Above build will generate into the tora-build\RELEASE dir. Copy the various dll files from Qt, Postgres, MySQL
installs into that dir as well:
MSVC 2013 Runtime libs(optional)
msvcp120.dll
msvcr120.dll
QT4 Libs:
QtCore4.dll QtGui4.dll QtHelp4.dll QtNetwork4.dll QtSql4.dll QtXml4.dll (put into root)
qsqlmysqld4.dll qsqlpsql4.dll qsqlodbc4.dll (put into plugins subdir)
QT5 Libs:
cd src/RelWithDebInfo
%QTDIR%/bin/windeployqt tora.exe
Tora Libs:
poracle.dll
trotl.dll
Then you should be able to run tora.exe from that dir. This can be used to test prior to packaging.
#
# Building Windows installer.
#
MSI
1. Download and install Wix from
http://wixtoolset.org/
2. Execute the packager
cd package
make_msi.bat (resp. make_msi64.bat, make_msi64_qt5.bat)
Please report any bugs should you find them as this port is still in the
experimental stage.