mirror of
https://github.com/ptitSeb/box86.git
synced 2025-05-08 21:08:57 +08:00
[DOCS] Change organisation of COMPILE.md
This commit is contained in:
parent
fc0b51f3b8
commit
9354744f68
@ -1,45 +1,21 @@
|
||||
Compiling/Installing
|
||||
----
|
||||
|
||||
#### Debian-based Linux
|
||||
You can use the [Pi-Apps-Coders apt repository](https://github.com/Pi-Apps-Coders/box86-debs) to install precompiled box86 debs, updated every 24 hours.
|
||||
If you don't want to compile box86 yourself and prefer to use third-party pre-build version, go to the [end of the document](#pre-build-packages) for alternatives.
|
||||
|
||||
```
|
||||
# check if .list file already exists
|
||||
if [ -f /etc/apt/sources.list.d/box86.list ]; then
|
||||
sudo rm -f /etc/apt/sources.list.d/box86.list || exit 1
|
||||
fi
|
||||
# check if .sources file already exists
|
||||
if [ -f /etc/apt/sources.list.d/box86.sources ]; then
|
||||
sudo rm -f /etc/apt/sources.list.d/box86.sources || exit 1
|
||||
fi
|
||||
# download gpg key from specified url
|
||||
if [ -f /usr/share/keyrings/box86-archive-keyring.gpg ]; then
|
||||
sudo rm -f /usr/share/keyrings/box86-archive-keyring.gpg
|
||||
fi
|
||||
sudo mkdir -p /usr/share/keyrings
|
||||
wget -qO- "https://pi-apps-coders.github.io/box86-debs/KEY.gpg" | sudo gpg --dearmor -o /usr/share/keyrings/box86-archive-keyring.gpg
|
||||
# create .sources file
|
||||
echo "Types: deb
|
||||
URIs: https://Pi-Apps-Coders.github.io/box86-debs/debian
|
||||
Suites: ./
|
||||
Signed-By: /usr/share/keyrings/box86-archive-keyring.gpg" | sudo tee /etc/apt/sources.list.d/box86.sources >/dev/null
|
||||
You can also generate your own debian package using the [instructions below](https://github.com/ptitSeb/box86/blob/master/docs/COMPILE.md#debian-packaging).
|
||||
|
||||
Important note, if you are using a 64bits OS, you need to have multi-arch enabled, with armhf support, for box86 to works. On Debian/Ubuntu/Armbian OS, you need to do:
|
||||
|
||||
```bash
|
||||
sudo dpkg --add-architecture armhf && sudo apt-get update
|
||||
sudo apt-get install libc6:armhf -y
|
||||
```
|
||||
|
||||
On a 32bit OS, run the following additional commands
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt install box86-generic-arm -y
|
||||
```
|
||||
And of course you will need to install much more library to be able to run software and games (like X11, mesa, SDL, pulseaudio...)
|
||||
|
||||
On a 64bit OS, run the following additional commands
|
||||
```
|
||||
sudo dpkg --add-architecture armhf
|
||||
sudo apt update
|
||||
sudo apt install box86-generic-arm:armhf -y
|
||||
```
|
||||
|
||||
Alternatively, you can generate your own package using the [instructions below](https://github.com/ptitSeb/box86/blob/master/docs/COMPILE.md#debian-packaging).
|
||||
## Per-platform compiling instructions
|
||||
----
|
||||
|
||||
#### for Pandora
|
||||
|
||||
@ -212,7 +188,7 @@ If you are not building from a git clone (for example, downloading a release sou
|
||||
|
||||
----
|
||||
|
||||
Testing
|
||||
## Testing
|
||||
----
|
||||
A few tests are included with box86.
|
||||
|
||||
@ -228,7 +204,46 @@ NVIDIA doesn't provide armhf libraries for their GPU drivers at this time. There
|
||||
|
||||
----
|
||||
|
||||
Debian Packaging
|
||||
## Debian Packaging
|
||||
----
|
||||
Box86 can also be packaged into a .deb file ***using the source code zip from the releases page*** with `DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage -us -uc -nc`. Configure any additional cmake options you might want in `debian/rules`.
|
||||
|
||||
## Pre-build packages
|
||||
----
|
||||
#### Debian-based Linux
|
||||
You can use the [Pi-Apps-Coders apt repository](https://github.com/Pi-Apps-Coders/box86-debs) to install precompiled box86 debs, updated every 24 hours.
|
||||
|
||||
```
|
||||
# check if .list file already exists
|
||||
if [ -f /etc/apt/sources.list.d/box86.list ]; then
|
||||
sudo rm -f /etc/apt/sources.list.d/box86.list || exit 1
|
||||
fi
|
||||
# check if .sources file already exists
|
||||
if [ -f /etc/apt/sources.list.d/box86.sources ]; then
|
||||
sudo rm -f /etc/apt/sources.list.d/box86.sources || exit 1
|
||||
fi
|
||||
# download gpg key from specified url
|
||||
if [ -f /usr/share/keyrings/box86-archive-keyring.gpg ]; then
|
||||
sudo rm -f /usr/share/keyrings/box86-archive-keyring.gpg
|
||||
fi
|
||||
sudo mkdir -p /usr/share/keyrings
|
||||
wget -qO- "https://pi-apps-coders.github.io/box86-debs/KEY.gpg" | sudo gpg --dearmor -o /usr/share/keyrings/box86-archive-keyring.gpg
|
||||
# create .sources file
|
||||
echo "Types: deb
|
||||
URIs: https://Pi-Apps-Coders.github.io/box86-debs/debian
|
||||
Suites: ./
|
||||
Signed-By: /usr/share/keyrings/box86-archive-keyring.gpg" | sudo tee /etc/apt/sources.list.d/box86.sources >/dev/null
|
||||
```
|
||||
|
||||
On a 32bit OS, run the following additional commands
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt install box86-generic-arm -y
|
||||
```
|
||||
|
||||
On a 64bit OS, run the following additional commands
|
||||
```
|
||||
sudo dpkg --add-architecture armhf
|
||||
sudo apt update
|
||||
sudo apt install box86-generic-arm:armhf -y
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user