Compiling the GeoDMS - ObjectVision/GeoDMS GitHub Wiki
This page describes how to compile GeoDms from source on Windows 11 and up. The process is bound to change through an ongoing effort to make the source code more accessible to the open-source community. This document is written as a chronological guide. Are you stuck or encounter incomplete information? Feel free to open an issue!
The compiler toolset, vcpkg baseline and Qt version below are pinned per release; where they differ from what this page says, the files in the repository that pin them are authoritative.
Our recommended compilation platform is Microsoft Visual Studio 2026 Community edition, which can be downloaded here. Make sure the "Desktop development with C++" workload is installed:
Note: the exact layout of the Visual Studio Installer may differ from the screenshot above depending on your version.
GeoDMS pins the C++ toolset in Directory.Build.props (and in the CMake presets) so that every developer and CI machine builds with an identical compiler:
| Setting | Value | Where |
|---|---|---|
| Platform toolset |
v145 (Visual Studio 2026 / MSVC 18) |
Directory.Build.props → PlatformToolset
|
| MSVC compiler version | 14.50.35717 |
Directory.Build.props → VCToolsVersion
|
| vcpkg triplet | x64-windows-v145 |
CMakePresets.json / vcpkg-triplets\
|
The pin to 14.50 is deliberate: MSVC 14.51.x miscompiles GEOS (it elides a null-check in KdTree::queryNodePoint, causing access violations and silently wrong results in polygon buffer / snap-rounding). Until Microsoft fixes this, the build must not pick up 14.51.
Because the version is pinned, you must have the matching MSVC v145 (14.50.35717) toolset installed. In the Visual Studio Installer, under Individual components, make sure the MSVC v145 - VS 2026 C++ x64/x86 build tools (14.50) component is selected (alongside whatever latest version VS installs by default). Both the VS solution and the CMake presets request this exact version automatically, so there are no per-machine project changes to make — but the toolset has to be present.
Clone GeoDMS from the GitHub repository using:
git clone --recurse-submodules https://github.com/ObjectVision/GeoDMS.git
GeoDMS includes vcpkg as a git submodule (see below); --recurse-submodules fetches it during the clone. If you already cloned without it, the build scripts will initialise the submodule for you on first build, or you can run git submodule update --init vcpkg yourself.
Then check out the main branch:
git checkout main
All C++ dependencies (Boost, CGAL, GDAL, GEOS, PROJ, fftw3, OpenSSL, pybind11, and others) are declared in vcpkg.json at the root of the repository and are built automatically the first time you compile — no manual package installation is required.
GeoDMS uses its own in-repo copy of vcpkg, included as a git submodule at ./vcpkg and pinned to the exact baseline commit the ports were tested against (see vcpkg-configuration.json). This is intentional: the vcpkg bundled with Visual Studio is read-only and lags the baseline, which breaks some ports (e.g. libffi/mpfr autotools builds). The in-repo vcpkg is provisioned for you automatically — there is nothing to install or integrate by hand:
- For MSBuild / the Visual Studio solution,
tools/ensure-vcpkg.ps1(run from the build) checks out and bootstraps the submodule, andDirectory.Build.props/Directory.Build.targetsimport vcpkg's MSBuild integration directly from./vcpkg(via$(VcpkgRoot)). - For CMake,
tools/vcpkg-toolchain.cmake(referenced by every preset inCMakePresets.json) performs the same checkout/bootstrap before chaining to vcpkg's real toolchain.
So the only thing a developer needs to do is open all22.sln or run a CMake configure — vcpkg then builds all dependencies into the shared vcpkg_installed/ folder at the repo root on first run (this takes a while the first time).
Do NOT:
- run
vcpkg integrate install. The integration is project-local on purpose. A machine-wide integration records one absolute vcpkg path in%LOCALAPPDATA%\vcpkg\vcpkg.path.txt, and uninstalling the Visual Studio it pointed at silently breaks every build (Cannot open boost/format.hpp, unresolvedboost_locale, …). If you hit such errors, check the two imports inDirectory.Build.props/.targetsand that./vcpkg/vcpkg.exeis bootstrapped — do not "fix" it withintegrate install. - clone or bootstrap a separate vcpkg, or point
VCPKG_ROOTat one. That bypasses the pinned submodule and its baseline. The in-repo./vcpkgis the only supported copy. - run
vcpkg install <pkg>by hand. Every package is declared invcpkg.jsonand resolved from there.
Note: if your Windows username contains spaces, vcpkg may fail to build the Python bindings. See this guide for how to change it.
- Make sure you have created a Qt account here, as this is required during the installation process.
- Download and install Qt 6.11.1 (the version the GeoDMS solution is currently pinned to) using the Qt installer. You can deselect all components except
MSVC 2022 64-bitin the Qt/Qt 6.11.1 folder. No additional Build Tools under the Build Tools tab are required.

- In Visual Studio, install the
Qt Visual Studio Toolsextension via Extensions > Manage Extensions and search for Qt Visual Studio Tools. Click Install and close Visual Studio to start the extension installation.

- Restart Visual Studio. Then add the installed Qt version via Tools > Options > Qt > Qt Versions. Click Add and navigate to
qmake.exe, e.g.C:\Qt\6.11.1\msvc2022_64\bin\qmake.exe:
- Open the GeoDMS solution file
all22.slnin Visual Studio. - In the Solution Explorer, right-click GeoDmsGuiQt > Properties > Qt Project Settings, and set the Qt Installation field to the Qt version added in the previous step.

- Open the solution file
all22.slnin Visual Studio. The Solution Explorer shows the various projects that make up GeoDMS, from which.dllfiles will be created. - We recommend using Release mode and x64 for an initial build, which can be configured in the toolbar below the Build / Debug / Test menu:
-
Right-click GeoDmsGuiQt in the Solution Explorer and click "Set as Startup Project". To build GeoDmsGuiQt, go to Build > Build Solution or use the hotkey Ctrl+Shift+B.
-
Alternatively, you can build each component individually by right-clicking it in the Solution Explorer and selecting Build, in the order below (each layer builds only on the layers above it):
Rtc includes the symbolic layer (Sym) and the tree item classes (Tic), with their sources under rtc\dll\src\sym and rtc\dll\src\tic; there are no separate DmSym or DmTic projects.
| DLL | Name | Responsibility |
|---|---|---|
| Rtc | Run-time Core | Foundation library: value types, pointers, memory management, serialization and geometry primitives; the LISP-style expression trees (LispRef), the expression parser and the rewrite rules; and the core data model (TreeItem, AbstrUnit, AbstrDataItem and related unit / data-item / tree services). Depends on nothing else. |
| Stx | Syntax | Configuration syntax parser; reads .dms files and produces the internal representation of a model and its calculation rules. |
| Stg | Storage | Storage Managers: a generic interface to GDAL, Proj and native implementations (.shp, .dbf, TIFF, ODBC connections). |
| Clc | Calculation | Implementation of the common operators and the calculation engine. |
| Geo | Geometry | Geometric and network operators: Dijkstra functions, raster convolution, polygon and arc operations. |
| Shv | Sheet Visual | Viewer components: TableViewer, MapViewer, and the related Carets and Graphic Components. |
Finally, build the executables: GeoDmsRun.exe (command line) and GeoDmsGuiQt.exe (Qt GUI).
Depending on the chosen build configuration, all build products will be placed in the bin folder, for instance geodms/bin/Release/x64.
When first compiling, you'll probably get an error about version numbers. If so:
In Visual Studio, go to View > Terminal and type:
.\GeoDmsVersion.cmd
As an alternative to the solution file, GeoDMS can be built with CMake using the presets defined in CMakePresets.json. This produces the same binaries and is required for the Linux build.
Prerequisites (in addition to Visual Studio and Qt described above):
- CMake 3.25 or later — use the one bundled with Visual Studio 2026 at
C:\Program Files\Microsoft Visual Studio\2026\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe, or add it to yourPATH
Configure and build:
cmake --preset windows-x64-release ^
-DCMAKE_PREFIX_PATH="C:/Qt/6.11.1/msvc2022_64"
cmake --build --preset windows-x64-release --parallel 4You do not need to set VCPKG_ROOT: the preset's toolchain file (tools/vcpkg-toolchain.cmake) provisions and points at the in-repo ./vcpkg submodule automatically. The preset also pins the generator (Visual Studio 18 2026), the toolset (version=14.50.35717,host=x64) and the triplet (x64-windows-v145).
Output is placed in build\windows-x64-release\bin\. The Python binding geodms.pyd, Qt plugins, and all vcpkg DLLs are deployed there automatically.
For a debug build replace windows-x64-release with windows-x64-debug in both commands.
Creating the Windows installer after a successful release build:
set GeoDmsVersion=20.6.0
"C:\Program Files (x86)\NSIS\makensis.exe" nsi\DmsSetupScriptX64-cmake.nsiThe unsigned installer is written to distr\GeoDms<ver>-Setup-x64-cmake.exe. Sign it with signtool.exe as described in BuildSignAndCreateSetup.bat.
GeoDMS can be compiled natively on Linux (tested on Ubuntu 24.04) or inside WSL2 on Windows. The CMake build is the only supported method on Linux.
sudo apt update
sudo apt install -y \
build-essential ninja-build cmake git curl zip unzip tar pkg-config \
libgl1-mesa-dev libglu1-mesa-dev \
qt6-base-dev qt6-tools-dev libqt6svg6-dev \
libxcb-xinerama0-dev libxcb-icccm4-dev libxcb-image0-dev \
libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev \
libxcb-xkb-dev libxkbcommon-x11-devThe Python binding needs the headers of CPython 3.12, 3.13 and 3.14. Ubuntu 24.04 has 3.12; the other two come from the deadsnakes PPA. The -venv packages are used by tools/make-and-test-wheels.sh, which tests the wheels:
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt install -y python3.12-dev python3.12-venv python3.13-dev python3.13-venv python3.14-dev python3.14-venvvcpkg is used to build the remaining C++ dependencies (Boost, GDAL, GEOS, PROJ, etc.):
git clone https://github.com/microsoft/vcpkg.git ~/vcpkg
~/vcpkg/bootstrap-vcpkg.sh -disableMetrics
export VCPKG_ROOT=~/vcpkg # add to ~/.bashrc to make permanentNote: build DmClc sequentially or with limited parallelism — it is memory-intensive and parallel builds may be killed by the OOM killer.
# Release build
cmake --preset linux-x64-release
cmake --build --preset linux-x64-release -j4
# Debug build (optional, run after release — not in parallel)
cmake --build --preset linux-x64-debug -j4Both commands need to be run from the repository root. The first cmake invocation also downloads and builds all vcpkg dependencies, which takes some time on first run.
Output is placed in build/linux-x64-release/bin/ (or linux-x64-debug).
Once the release build is complete, use the packaging script to produce a tarball, SHA-256 checksum, CMS signature, and optional .deb:
export GeoDmsVersion=20.6.0
bash nsi/CreateLinuxSetup.shOutput goes to distr/. Signing requires a hardware token to be present on the build machine (the script prompts for the token PIN via a Windows dialog when run from WSL2; signing is skipped gracefully when the token is unavailable).
The Python binding is the module geodms, built once for each CPython version in python/PythonVersions.txt (3.12, 3.13 and 3.14; the GLOBIO build uses python/PythonVersionsGlobio.txt, which holds 3.9). The Visual Studio solution and the CMake presets build it with the rest of the engine, next to the engine libraries: on Windows as geodms.cp3XY-win_amd64.pyd, on Linux as geodms.cpython-3XY-x86_64-linux-gnu.so.
On Windows each version needs a CPython installation, named by the environment variable PYTHON3XY_ROOT (for example PYTHON313_ROOT), that holds include\Python.h and libs\python3XY.lib; PYTHON3XY_INCLUDE_DIR and PYTHON3XY_LIBRARIES can name those two folders instead. On Linux the module does not link libpython, so only the headers are needed, from the package python3.XY-dev; on Ubuntu 24.04 the versions 3.13 and 3.14 come from the deadsnakes PPA. PYTHON3XY_INCLUDE_DIR can name another folder that holds Python.h.
pybind11 is declared in vcpkg.json and built automatically with the other dependencies; do not vcpkg install it by hand (see the vcpkg section above).
To try the module, open a terminal in the build output folder, start python and evaluate the version function:
python
from geodms import version
version()
This returns a version string that depends on the build time and type:

python/tst/UnitTests.py tests the module in bin\Release\x64, or in the folder named by the environment variable GEODMS_PYDIR.
The wheels on PyPI are made by tools/make-wheels.py from a build output folder:
| Flavour | Build output | PyPI project | Platform tag |
|---|---|---|---|
m |
bin\Release\x64 |
geodms |
win_amd64, CPython 3.12 to 3.14 |
g |
bin_GLOBIO\Release\x64 |
geodms-globio |
win_amd64, CPython 3.9 |
l |
build/linux-x64-release/bin |
geodms |
manylinux_2_39_x86_64, CPython 3.12 to 3.14 |
A wheel holds the module, the engine libraries with the libraries they need, the GDAL and PROJ resource files, and the licence texts. On Windows delvewheel gives the libraries it bundles names of their own. On Linux GDAL, PROJ and GEOS are linked into the engine libraries, and auditwheel adds unixODBC under a name of its own. The versions of these tools are pinned in python/wheel-tools.txt. A wheel over 100 MiB, the limit per file that PyPI sets for a project outside an organisation, stops the script.
tools/make-and-test-wheels.ps1 (Windows, -Flavour m or -Flavour g) and tools/make-and-test-wheels.sh (Linux) make the wheels with that script, check them with twine check --strict, and install each one in a fresh venv, where python/tst/UnitTests.py --installed must pass; for the GLOBIO wheel python/tst/GlobioCompatibility.py --installed must pass as well, in both import orders. batch\BuildSignAndCreateSetup.bat, batch\BuildSignAndCreateSetupGlobio.bat and batch\BuildSignAndCreateSetupLinux.bat run them before packaging and leave the wheels in distr\. They are attached to the GitHub release with the setups, and the workflow .github/workflows/pypi-upload.yml uploads them to PyPI once the release is a full release. Python-bindings describes how to install and use them.