Building and testing¶
Building¶
You need CMake 3.31 or later, plus Xcode's command line tools on macOS, Visual Studio 2022 (or its Build Tools) with the C++ workload on Windows, or clang and YUP's Linux packages on Linux. On Ubuntu or Debian:
sudo apt install clang ninja-build libasound2-dev libjack-jackd2-dev libcurl4-openssl-dev libfreetype6-dev libfontconfig1-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxkbcommon-dev libgl1-mesa-dev libegl1-mesa-dev
git clone --recurse-submodules https://github.com/jbaylies/JamTabaYUP.git
cd JamTabaYUP && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
For a universal macOS build, add -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64".
On Windows, configure with -G "Visual Studio 17 2022" -A x64 and build with
cmake --build build --config Release --parallel.
The first configure downloads YUP's dependencies (SDL, the plugin SDKs).
Builds install the VST3 and CLAP plugins (and the LV2 on Linux) into your
per-user plugin folders;
pass -DJAMTABA_INSTALL_PLUGINS=OFF to skip that.
Layout¶
| folder | contents |
|---|---|
source/engine |
The NINJAM client with no GUI: protocol, connection thread, Vorbis, the real-time audio engine. |
source/plugin |
The audio processor, the session model, saved settings. |
source/ui |
The window: server browser, jam room, widgets. |
tools/ninjam_cli |
A command-line client and self-tests. |
tools/test-server |
A config for a local NINJAM server. |
scripts |
Release packaging. |
docs |
This manual. |
PORTING_PLAN.md describes the design and the state of each part.
Testing the engine¶
ninjam_cli runs the engine with a simulated audio device:
build/ninjam_cli selftest
build/ninjam_cli servers
For full sessions, build Cockos ninjamsrv
(source, ninjam/server) and run
it from tools/test-server with ninjamsrv-test.cfg. Then connect two
clients, one sending a tone and one checking it hears it:
build/ninjam_cli connect localhost:20490 --name alice --tone 440 --seconds 30
build/ninjam_cli connect localhost:20490 --name bob --no-transmit --seconds 25 --expect-tone 440
To show the room browser and globe with made-up rooms, point
JAMTABA_SERVER_LIST at a local list such as
tools/test-server/servers-sample.json. The globe's land data is generated by
tools/world/make_world_data.py from Natural Earth.
To open the standalone app straight into a room, set JAMTABA_CONNECT (and
optionally JAMTABA_NAME) before launching it:
JAMTABA_CONNECT=localhost:20490 JAMTABA_NAME=me build/JamTabaYUP.app/Contents/MacOS/JamTabaYUP
Releases¶
Releases are built locally, on macOS, Windows and Linux:
scripts/package_release.shon the Mac.scripts\package_release.ps1on Windows.- Copy the Windows
build-release\stagefolder tobuild-release/win-stageon the Mac. scripts/package_release_linux.shon x86_64 Linux, on Ubuntu 22.04 so the release runs on glibc 2.35 and later. Copy itsbuild-release/linux-x86_64andbuild-release/linux-x86_64-stagefolders to the Mac.scripts/make_release_zips.shwrites the zips and the Linux.tar.gztobuild-release/dist.
The manual¶
The manual is built with MkDocs and the Material
theme, from docs/ and mkdocs.yml:
pip install mkdocs mkdocs-material && mkdocs serve
mkdocs gh-deploy publishes it to the gh-pages branch.