-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL-Notio-WIN32
130 lines (97 loc) · 4.6 KB
/
INSTALL-Notio-WIN32
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
+++++++++++++++++++++++++++++
+ WINDOWS BUILD WALKTHROUGH +
+ NOTIO +
+++++++++++++++++++++++++++++
Michael Beaulieu
Nov 2021
Version 1.9
Instructions to build the Notio version of Golden Cheetah on Windows. It was
done on Windows 10 but it could be done on other version of Windows.
1. Requirements
===============
1.1 R Library
-------------
Install the latest R library that can be found https://cran.r-project.org
Set an Environment variable R_HOME = {R_INSTALL_PATH}\R-x.x.x
Add to PATH %R_HOME%\bin\x64
1.2 Win flex bison
------------------
Download the package win_flex_bison version 2.5.18 that can be found at
https://sourceforge.net/projects/winflexbison/?source=directory
Create on the c:\ the folder Dependencies\win_flex_bison
Extract the files to C:\Dependencies\win_flex_bison
Note: If you put your files else where, you'll need to modify the path in the
file gcconfig.pri
In Windows Defender, the file win_flex might be flag as a Trojan. Simply authorize
the file in Windows Defender when it will ask for an action on your part.
1.3 Windows 10 SDK
------------------
Download the latest Windows SDK from Microsoft.
https://developer.microsoft.com/en-us/windows/downloads
Click on the Windows Standalone SDK link on the website.
You'll need to modify the path to the SDK in the file gcconfig.pri.
1.4 Qt
------
Download the online installer from https://www.qt.io. Select the open source
version of Qt.
Within the installer, install the version 5.12.10.
- Select the tool Qt Creator CDB debugger support
- Debugging Tools for Windows.
- Select the tool Qt installer framework 4.1.
- Select CMake.
- Select Ninja.
- Select the tool OpenSSL 1.1.1j Toolkit (including sources).
Setup environment.
- Add the environment variable QT_HOME that will point to the main install folder. Ex: C:\Qt
- Add to PATH the value %QT_HOME%\Tools\OpenSSL\Win_x64\bin
1.5 Visual Studio Community 2017
--------------------------------
Install Visual studio available at
https://visualstudio.microsoft.com/fr/vs/older-downloads/
Qt OpenSSL libraries need Visual Studio 2010 redistributable package.
Follow the link and download the file.
https://visualstudio.microsoft.com/fr/vs/older-downloads/
Rename the executable vcredist_msvc2010_x64.exe
Go to your Qt install folder and put the file into the subfolder "vcredist".
1.6 NSIS
--------
Install the tool NSIS that can be found http://nsis.sourceforge.net/Main_Page
1.7 Git
-------
Install the version control system software Git 64bit.
https://git-scm.com/download/win
1.8 Algorithms library
----------------------
Get the package file NotioAlgo-x.x.x-win64.zip from our repository and extract the content
in the folder "C:\Dependencies\".
https://github.com/notio-technologies/NotioAlgo
Note: If you put your files else where, you'll need to modify the path in the
file gcconfig.pri
2. Configure and build Golden Cheetah
======================================
Before opening the project with Qt, you'll need to copy the file
build.pro.shared.windows into the working directory and rename it build.pro.shared
Also, copy the file gcconfig.pri.in and rename it gcconfig.pri. Edit the file as
mentioned in the sections above.
Open the file gcconfig.pri in the folder "src". Update the paths of WINKIT_INSTALL,
QMAKE_LEX, QMAKE_YACC and NOTIOALGO_INSTALL if necessary.
In Qt Creator, go in Tools -> Options -> Build & Run.
Go in the General tab
- Select Current Directory for the project directory.
- Select Save all files before build.
- Select Always build before deploying it.
- Disable Always deploy project before running it.
- Select Use jom instead of nmake.
Open the project.
- Go in the Project section.
- For each build configuration, disable the option Shadow build.
- You can modify the arguments of the Make Step, from the Build Steps section, by
adding "-j 8" to use 8 cores for building. Depending on the computer, it might be a
higher value. For example, "-j 16" if you have 16 cores available.
You are now ready to build.
The build directory is the Bin folder in the main directory.
To be able to release an installer for Golden Cheetah, you must be in release
configuration. After building the project, do a Deploy All from the Build menu.
IMPORTANT: When switching from one configuration to another, execute "Run qmake"
========== from the Build menu. It will ensure that the environment will be in
the right configuration.