Simple guide to building the Godot-Torrent GDExtension from source.
# Clone repository
git clone --recursive https://github.com/NodotProject/godot-torrent.git
cd godot-torrent
# Install dependencies (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install build-essential scons cmake git \
libboost-all-dev libssl-dev pkg-config
# Build
./build_local.sh linux
# Verify
ls -lh addons/godot-torrent/bin/libgodot-torrent.so
# Install MinGW cross-compiler
sudo apt-get install mingw-w64
# Build
./build_local.sh windows
# Verify
ls -lh addons/godot-torrent/bin/libgodot-torrent.dll
# Install dependencies
brew install scons cmake boost openssl
# Build
./build_local.sh macos
# Verify
ls -lh addons/godot-torrent/bin/libgodot-torrent.dylib
git clone --recursive https://github.com/NodotProject/godot-torrent.git
cd godot-torrent
Important: Use --recursive
to clone submodules. If you forgot:
git submodule update --init --recursive
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install build-essential scons cmake git \
pkg-config libboost-all-dev libssl-dev
Fedora/RHEL:
sudo dnf install gcc-c++ scons cmake git pkgconfig \
boost-devel openssl-devel
macOS:
brew install scons cmake boost openssl
Windows: Use WSL2 and follow Linux instructions, or install MSYS2 and:
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake \
mingw-w64-x86_64-boost mingw-w64-x86_64-openssl python-scons git
# Linux
./build_local.sh linux
# Windows (cross-compile from Linux with MinGW)
sudo apt-get install mingw-w64
./build_local.sh windows
# macOS
./build_local.sh macos
ls -lh addons/godot-torrent/bin/
# Should see libgodot-torrent.{so,dll,dylib}
# Debug build (faster compilation, includes debug symbols)
scons platform=linux target=template_debug
# Release build (optimized)
scons platform=linux target=template_release
# Parallel build (use all CPU cores)
scons -j$(nproc)
# Clean build
scons --clean
“Boost not found”
# Ubuntu/Debian
sudo apt-get install libboost-all-dev
# macOS
brew install boost
“godot-cpp not found”
git submodule update --init --recursive
“Permission denied”
chmod +x build_local.sh run_tests.sh
Build fails
# Clean and rebuild
rm -rf godot-cpp/bin libtorrent/build
./build_local.sh linux
After building:
./run_tests.sh
Need help? Open an issue with your build output.