-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL-Notio-OSX
99 lines (73 loc) · 3.15 KB
/
INSTALL-Notio-OSX
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
+++++++++++++++++++++++++++++
+ WINDOWS BUILD WALKTHROUGH +
+ NOTIO +
+++++++++++++++++++++++++++++
Michael Beaulieu
Nov 2021
Version 1.7
Instructions to build the Notio version of Golden Cheetah.
1. Requirements
===============
1.1 Update OSX
--------------
Make sure MacOS is up-to-date.
1.2 R Library
-------------
Install the latest R library version that can be found https://cran.r-project.org
1.3 Xcode
---------
Install Xcode from the App Store and make sure it is up-to-date.
1.4 Brew (optional)
--------
Install package manager.
https://brew.sh
Or directly run this command in terminal app.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1.5 Qt
------
Download the online installer from https://www.qt.io. Select the open source
version of Qt.
Install Qt in /usr/shared/Qt.
Install the version 5.15.2.
Developer and Designer Tools
- Select the tool Qt installer framework 4.1.
- Select CMake.
- Select Ninja
1.6 Algorithms library
----------------------
Get the package file NotioAlgo-x.x.x-macos.zip from our repository and extract the content
in the folder "/usr/local/lib".
https://github.com/notio-technologies/NotioAlgo
Update the gcconfig.pri, in the NotioAlgo section, by setting the path of NOTIOALGO_INSTALL.
1.7 Node.js and Create-dmg
--------------------------
Install Node.js 8.0 or newer preferably LTS version.
https://nodejs.org/en/
In command line, update npm with "sudo npm install npm".
Install "create-dmg" with "sudo npm install -g create-dmg --unsafe-perm=true"
2. Configure and build Golden Cheetah
======================================
Before opening the project with Qt, you'll need to copy the file
build.pro.shared.osx 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.
In Qt Creator menu, go to Preferences... -> 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.
Open the project.
- Go in the Project section.
- For each build configuration, disable the option Shadow build.
- You can modify the Parallel jobs parameter, from the Build Steps section, to
use the number of cores for the compilation process.
- For each build configuration, add "/usr/local/bin" to the PATH variable in the
Build Environment section.
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.