Skip to content

Commit 5cd21f5

Browse files
authored
Update Instructions (Docker Compile, Supported platforms, License year) (#1682)
Correct docker compile to load repository
1 parent eb09640 commit 5cd21f5

File tree

7 files changed

+60
-53
lines changed

7 files changed

+60
-53
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ The amount of "%" must match with following arguments
124124
If you want to use VSCode for development follow the steps.
125125
126126
- Install [VSCode](https://code.visualstudio.com/). On Ubuntu 16.04+ you can also use the [Snapcraft VSCode](https://snapcraft.io/code) package.
127-
- Linux: Install gdb `sudo apt-get install gdb`
128-
- Mac: ?
127+
- Install gdb:
128+
- Linux: `sudo apt-get install gdb`
129+
- Mac: `brew install gdb`
129130
- Open VSCode and click on _File_ -> _Open Workspace_ and select the file `hyperion.ng/.vscode/hyperion.code-workspace`
130131
- Install recommended extensions
131132
- If you installed the Task Explorer you can now use the defined vscode tasks to build Hyperion and configure cmake

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2014-2023 Hyperion Project
3+
Copyright (c) 2014-2024 Hyperion Project
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[![Forum](https://img.shields.io/website/https/hyperion-project.org.svg?label=Forum&down_color=red&down_message=offline&up_color=4bc51d&up_message=online&logo=homeadvisor&logoColor=white)](https://www.hyperion-project.org)
1111
[![Documentation](https://img.shields.io/website/https/docs.hyperion-project.org.svg?label=Documentation&down_color=red&down_message=offline&up_color=4bc51d&up_message=online&logo=read-the-docs)](https://docs.hyperion-project.org)
1212
[![Discord](https://img.shields.io/discord/785578322167463937?label=Discord&logo=discord&logoColor=white&color=4bc51d)](https://discord.gg/XtVTb3HEKS)
13+
[![Package-Repository](https://img.shields.io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zNDQgMi4zNyw2OC43MkwxNC44Nyw1My43MkwwLjM2LDQwQzAuMTE3LDM5LjcyNyAtMC4wMTcsMzkuMzc0IC0wLjAxNywzOS4wMDlDLTAuMDE3LDM4LjU3NSAwLjE3MiwzOC4xNjMgMC41LDM3Ljg4QzAuNTksMzcuODA4IDAuNjg3LDM3Ljc0NCAwLjc5LDM3LjY5TDIxLjczLDI1Ljg0QzIxLjgyNywyNy4yODcgMjIuMTM0LDI4LjcxMSAyMi42NCwzMC4wN0w1LjY5LDM5LjcxTDE3LjUyLDUwLjcxTDMyLjYxLDQzLjI0TDM1LjQ2LDQ2LjM1TDM1LjQzLDQ2LjM0Wk05OS41OSw1Ny4yOEw2MS4wNSw3Ny41TDY4LjU2LDkwLjgyTDEwOS4xMSw2OC44Mkw5OS41OSw1Ny4yOFoiIHN0eWxlPSJmaWxsOndoaXRlO2ZpbGwtcnVsZTpub256ZXJvOyIvPjwvc3ZnPg==)](https://releases.hyperion-project.org)
1314
![made-with-love](https://img.shields.io/badge/Made%20With-♥-ff0000.svg)
1415

1516
## About Hyperion
@@ -66,7 +67,7 @@ See [CompileHowto.md](doc/development/CompileHowto.md).
6667
See [Documentation](https://docs.hyperion-project.org/en/user/Installation.html) or on the [Release Repository](https://releases.hyperion-project.org).
6768

6869
## Download
69-
Releases available from the [Hyperion release page](https://github.com/hyperion-project/hyperion.ng/releases).
70+
GitHub Releases are available on the [Hyperion release page](https://github.com/hyperion-project/hyperion.ng/releases).
7071

7172
## Privacy Policy
7273
See [PRIVACY.md](PRIVACY.md).

bin/scripts/docker-compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ log "---> BASE_PATH = ${BASE_PATH}"
226226
CODE_PATH=${BASE_PATH};
227227

228228
# get Hyperion source, cleanup previous folder
229-
if [ ${BUILD_LOCAL} == 0 ]; then
229+
if [ ${BUILD_LOCAL} == false ]; then
230230
CODE_PATH="${CODE_PATH}/hyperion/"
231231

232232
echo "---> Downloading Hyperion source code from ${GIT_REPO_URL}"

doc/development/CompileHowto.md

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,54 @@
33
If you are using [Docker](https://www.docker.com/), you can compile Hyperion inside a docker container. This keeps your system clean and with a simple script it's easy to use. Supported is also cross compiling for Raspberry Pi (Debian Buster or higher). To compile Hyperion just execute one of the following commands.
44

55
The compiled binaries and packages will be available at the deploy folder next to the script.<br/>
6-
Note: call the script with `./docker-compile.sh -h` for more options.
76

8-
## Cross compilation on x86_64 for:
7+
> [!NOTE]
8+
> Call the script with `./docker-compile.sh --help` for more options.
99
10-
**x86_64 (Debian Buster):**
11-
```console
12-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i x86_64 -t buster
13-
```
14-
**x86_64 (Debian Bullseye):**
15-
```console
16-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i x86_64 -t bullseye
17-
```
18-
**x86_64 (Debian Bookworm):**
10+
## Cross compilation on amd64 (aka x86_64), sample commands
11+
12+
### Debian
13+
14+
**amd64 (Bookworm):**
1915
```console
20-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i x86_64 -t bookworm
16+
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh --name bookworm
2117
```
22-
**Raspberry Pi v1 & ZERO (Debian Buster)**
18+
**arm64 or Raspberry Pi 5 (Bookworm)**
2319
```console
24-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i armv6l -t buster
20+
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh --architecture arm64 --name bookworm
2521
```
26-
**Raspberry Pi v1 & ZERO (Debian Bullseye)**
22+
**Raspberry Pi 2/3/4 (Bookworm)**
2723
```console
28-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i armv6l -t bullseye
24+
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh --architecture arm/v7 --name bookworm
2925
```
30-
**Raspberry Pi v1 & ZERO (Debian Bookworm)**
26+
**Raspberry Pi v1 & ZERO (Bookworm)**
3127
```console
32-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i armv6l -t bookworm
28+
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh --architecture arm/v6 --name bookworm
3329
```
34-
**Raspberry Pi 2/3/4 (Debian Buster)**
30+
31+
### Ubuntu
32+
33+
**amd64 (Jammy):**
3534
```console
36-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i armv7l -t buster
35+
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh --name jammy
3736
```
38-
**Raspberry Pi 2/3/4 (Debian Bullseye)**
37+
38+
### Fedora
39+
40+
**amd64 (39):**
3941
```console
40-
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh -i armv7l -t bullseye
42+
wget -qN https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && chmod +x *.sh && ./docker-compile.sh --name 39
4143
```
4244

43-
## Cross compilation on x86_64 for developers
45+
## Cross compilation on amd64 for developers
4446
Using additional options you can cross compile locally
45-
-l: use a local hyperion source code directory rather than cloning from GitHub
46-
-c: do incremental compiles, Note: you need to keep the image and tag stable
47+
--local: use a local hyperion source code directory rather than cloning from GitHub
48+
--incremental: do incremental compiles, Note: you need to keep the image and tag stable
4749

48-
**Compile code in $HYPERION_HOME incrementally for Raspberry Pi 2/3/4 (Debian Bullseye)**
50+
**Compile code in $HYPERION_HOME incrementally for Raspberry Pi 2/3/4 (Debian Bookworm)**
4951
```console
5052
cd $HYPERION_HOME
51-
./bin/scripts/docker-compile.sh -l -c -i armv7l -t bullseye
53+
./bin/scripts/docker-compile.sh --local --incremental --architecture arm/v7 --name bookworm
5254
```
5355

5456
# The usual way
@@ -113,11 +115,11 @@ sudo dnf install python3-devel qt-devel qt5-qtbase-devel qt5-qtserialport-devel
113115
After installing the dependencies, you can continue with the compile instructions later on this page (the more detailed way..).
114116

115117
## OSX
116-
To install on OS X you either need Homebrew or Macport but Homebrew is the recommended way to install the packages. To use Homebrew XCode is required as well, use `brew doctor` to check your install.
118+
To install on OS X you either need [Homebrew](https://brew.sh/) or [Macport](https://www.macports.org/) but Homebrew is the recommended way to install the packages. To use Homebrew, XCode is required as well, use `brew doctor` to check your install.
117119

118120
First you need to install the dependencies:
119121
```console
120-
brew install qt5 python3 cmake libusb doxygen
122+
brew install git qt@5 python3 cmake libusb openssl@1.1
121123
```
122124

123125
## Windows
@@ -127,13 +129,13 @@ We assume a 64bit Windows 10. Install the following;
127129
- [Visual Studio 2022 Community Edition](https://visualstudio.microsoft.com/downloads/#visual-studio-community-2022)
128130
- Select 'Desktop development with C++'
129131
- On the right, just select `MSVC v143 VS 2022 C++ x64/x86-Buildtools` and latest `Windows 10 SDK`. Everything else is not needed.
130-
- [Win64 OpenSSL v1.1.1k](https://slproweb.com/products/Win32OpenSSL.html) ([direct link](https://slproweb.com/download/Win64OpenSSL-1_1_1k.exe))
132+
- [Win64 OpenSSL v1.1.1w](https://slproweb.com/products/Win32OpenSSL.html) ([direct link](https://slproweb.com/download/Win64OpenSSL-1_1_1w.exe))
131133
- [Python 3 (Windows x86-64 executable installer)](https://www.python.org/downloads/windows/) (Check: Add to PATH and Debug Symbols)
132134
- Open a console window and execute `pip install aqtinstall`.
133135
- Now we can download Qt to _C:\Qt_ `mkdir c:\Qt && aqt install -O c:\Qt 5.15.2 windows desktop win64_msvc2019_64`
134136
- QT6.2 requires the [Vulkan SDK](https://vulkan.lunarg.com/sdk/home) to be installed
135137
- [libjpeg-turbo SDK for Visual C++](https://sourceforge.net/projects/libjpeg-turbo/files/)
136-
- Download the latest 64bit installer (currently `libjpeg-turbo-2.1.3-vc64.exe`) and install to its default location `C:\libjpeg-turbo64`.
138+
- Download the latest 64bit installer (currently `libjpeg-turbo-3.0.1-vc64.exe`) and install to its default location `C:\libjpeg-turbo64`.
137139

138140
### Optional:
139141
- For DirectX9 grabber:
@@ -171,7 +173,7 @@ bin/hyperiond
171173
# webui is located on localhost:8090 or 8091
172174
```
173175

174-
In case you would like to build with a dedicated Qt version, Either supply ``QTDIR`` as ``-DQTDIR=<path>`` to cmake or set and environment variable ``QTDIR`` pointing to the Qt installation.
176+
In case you would like to build with a dedicated Qt version, Either supply ``QTDIR`` as ``-DQTDIR=<path>`` to CMake or set an environment variable ``QTDIR`` pointing to the Qt installation.
175177

176178
On Windows MSVC2022 set it via the CMakeSettings.json:
177179
```posh
@@ -180,7 +182,7 @@ On Windows MSVC2022 set it via the CMakeSettings.json:
180182
...
181183
"environments": [
182184
{
183-
"QTDIR": "C:/Qt/6.2.2/msvc2019_64/"
185+
"QTDIR": "C:/Qt/6.5.3/msvc2019_64/"
184186
}
185187
]
186188
},

0 commit comments

Comments
 (0)