Linux cleanup pass
This commit is contained in:
parent
1730ffe44c
commit
90779db463
28
README.md
28
README.md
@ -16,28 +16,43 @@ Prototype C++ Discord bot, that supports 2 features
|
|||||||
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
```
|
||||||
|
workdir/
|
||||||
|
├── DPP/
|
||||||
|
├── libssl/
|
||||||
|
├── zlib/
|
||||||
|
├── libssl/
|
||||||
|
```
|
||||||
|
|
||||||
### Ubuntu Linux x64
|
### Ubuntu Linux x64 and arm64
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt install build-essential git cmake -y
|
sudo apt install build-essential git cmake -y
|
||||||
mkdir workdir && cd workdir
|
mkdir workdir && cd workdir
|
||||||
mkdir zlib libssl DPP poomer-discord sqlite3 && cd zlib
|
mkdir zlib libssl DPP poomer-discord sqlite3
|
||||||
git clone https://github.com/madler/zlib.git .
|
|
||||||
|
# Build zlib
|
||||||
|
cd zlib && git clone https://github.com/madler/zlib.git .
|
||||||
./configure --static
|
./configure --static
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
|
# Build OpenSSL
|
||||||
cd ../libssl && git clone https://github.com/openssl/openssl.git .
|
cd ../libssl && git clone https://github.com/openssl/openssl.git .
|
||||||
./Configure $([ "$(uname -m)" = "aarch64" ] && echo "linux-aarch64" || echo "linux-x86_64")
|
./Configure $([ "$(uname -m)" = "aarch64" ] && echo "linux-aarch64" || echo "linux-x86_64")
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
|
# Build DPP
|
||||||
cd ../DPP && git clone https://github.com/brainboxdotcc/DPP.git .
|
cd ../DPP && git clone https://github.com/brainboxdotcc/DPP.git .
|
||||||
#zlib wants an absolute path to help cmake find_package work, ssl requires explicit vars
|
#zlib wants an absolute path to help cmake find_package work, ssl requires explicit vars
|
||||||
cmake -B ./build \
|
cmake -B ./build -DCMAKE_PREFIX_PATH="$PWD/../zlib;$PWD/../libssl"
|
||||||
-DCMAKE_PREFIX_PATH="$PWD/../zlib;$PWD/../libssl"
|
|
||||||
cmake --build ./build -j$(nproc)
|
cmake --build ./build -j$(nproc)
|
||||||
|
|
||||||
|
# Build sqlite3
|
||||||
cd ../sqlite3
|
cd ../sqlite3
|
||||||
wget https://www.sqlite.org/2025/sqlite-autoconf-3510100.tar.gz
|
wget https://www.sqlite.org/2025/sqlite-autoconf-3510100.tar.gz
|
||||||
tar xzf sqlite-autoconf-3510100.tar.gz --strip-components=1
|
tar xzf sqlite-autoconf-3510100.tar.gz --strip-components=1
|
||||||
./configure --enable-static --disable-shared && make -j$(nproc)
|
./configure --enable-static --disable-shared && make -j$(nproc)
|
||||||
|
|
||||||
cd ../poomer-discord && git clone https://git.indoodle.com/oomer/poomer-discord.git .
|
cd ../poomer-discord && git clone https://git.indoodle.com/oomer/poomer-discord.git .
|
||||||
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
|
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
|
||||||
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
||||||
@ -87,6 +102,3 @@ curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
|
|||||||
curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
||||||
make all -j$(sysctl -n hw.ncpu)
|
make all -j$(sysctl -n hw.ncpu)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user