diff --git a/README.md b/README.md index 4a92144..e46d336 100644 --- a/README.md +++ b/README.md @@ -16,28 +16,43 @@ Prototype C++ Discord bot, that supports 2 features ## Build +``` +workdir/ +├── DPP/ +├── libssl/ +├── zlib/ +├── libssl/ +``` -### Ubuntu Linux x64 +### Ubuntu Linux x64 and arm64 ``` sudo apt install build-essential git cmake -y mkdir workdir && cd workdir -mkdir zlib libssl DPP poomer-discord sqlite3 && cd zlib -git clone https://github.com/madler/zlib.git . +mkdir zlib libssl DPP poomer-discord sqlite3 + +# Build zlib +cd zlib && git clone https://github.com/madler/zlib.git . ./configure --static make -j$(nproc) + +# Build OpenSSL cd ../libssl && git clone https://github.com/openssl/openssl.git . ./Configure $([ "$(uname -m)" = "aarch64" ] && echo "linux-aarch64" || echo "linux-x86_64") make -j$(nproc) + +# Build DPP 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 -cmake -B ./build \ - -DCMAKE_PREFIX_PATH="$PWD/../zlib;$PWD/../libssl" +cmake -B ./build -DCMAKE_PREFIX_PATH="$PWD/../zlib;$PWD/../libssl" cmake --build ./build -j$(nproc) + +# Build sqlite3 cd ../sqlite3 wget https://www.sqlite.org/2025/sqlite-autoconf-3510100.tar.gz tar xzf sqlite-autoconf-3510100.tar.gz --strip-components=1 ./configure --enable-static --disable-shared && make -j$(nproc) + 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_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 make all -j$(sysctl -n hw.ncpu) ``` - - -