![]() |
MantisBase v0.4.9
|
Use MantisBase as a prebuilt C++ library in your own application — no submodule, no waiting on a full source build. This guide covers downloading the package, wiring it into your build, and running your app.
Building from source or embedding via submodule instead? See the Embedding Guide. For the server binary or Docker, see the Installation Guide.
Each GitHub release ships one C++ dev package per OS (shared library only, no static archives):
| File | Contents |
|---|---|
| mantisbase_<tag>-linux-cpp-dev.zip | libmantisbase.so for x86-64 (libs/x86) and aarch64 (libs/arm) + Linux headers |
| mantisbase_<tag>-windows-cpp-dev.zip | libmantisbase.dll (+ import lib) for x86-64 (libs/x86) and ARM64 (libs/arm) + Windows headers |
| mantisbase_<tag>-darwin-cpp-dev.zip | libmantisbase.dylib for Intel (libs/x86) and Apple Silicon (libs/arm) + macOS headers |
Download from GitHub Releases and unzip, e.g. into mantisbase-linux-cpp-dev/. Every package contains:
Each include/ tree is complete for its OS — use only the package matching your platform. Generated headers (soci-config.h, wolfSSL options.h) differ per OS and are already matched to the shipped binaries.
Linux — the shared library needs its system dependencies at build and run time:
(Runtime packages on Debian/Ubuntu are libpq5 and libuuid1.)
Windows (MinGW) — no extra packages. The socket/RPC/IP-helper/crypto system libraries (ws2_32, rpcrt4, iphlpapi, crypt32) are linked automatically.
macOS — the shared library needs its system dependencies at build and run time:
Toolchain — C++20 compiler (GCC/MinGW 13+, Apple Clang 15+) and CMake 3.22+.
A version can be requested: find_package(MantisBase 0.4 REQUIRED).
The right libs/<arch>/ binary is picked automatically for your CPU.
Linux — make sure the .so is findable at runtime (via rpath or LD_LIBRARY_PATH):
Windows (MinGW) — keep libmantisbase.dll next to your .exe at runtime:
macOS — make sure the .dylib is findable at runtime (via rpath):
MantisBase::create() returns a std::unique_ptr<MantisBase> that you own; run() starts the HTTP server (blocking). Lifecycle details live in the Embedding Guide.
| Symptom | Cause / fix |
|---|---|
| MantisBase dev package does not support '<system>' | You unzipped the wrong OS package — download the -linux-cpp-dev, -windows-cpp-dev or -darwin-cpp-dev zip matching your machine. |
| MantisBase shared library not found: '.../libs/<arch>/...' | No binary for your CPU in this package (e.g. 32-bit). Check libs/ for shipped architectures, or build from source. |
| MantisBase requires libpq / libuuid (Linux/macOS) | Install libpq-dev and uuid-dev on Linux, libpq and ossp-uuid (Homebrew) on macOS (see Prerequisites). |
| App builds but fails to start: libmantisbase.so: cannot open shared object file | The loader can't find the .so — set LD_LIBRARY_PATH or link with -Wl,-rpath,<libs dir>. |
| App builds but fails to start on Windows (0xc0000135 / missing DLL) | Copy libmantisbase.dll next to your .exe. |
| find_package reports a version mismatch | Request a compatible version (find_package(MantisBase 0.4 REQUIRED)); on 0.x releases minor versions must match. |