Required tools
- Python 3.9 – 3.14 — 64-bit Windows installer from python.org
- Visual Studio 17 2022 — Community edition is sufficient. Install the Desktop development with C++ workload.
- pip — included with Python 3.9+
Use 64-bit (x64) installations for Python and Visual Studio. Mixing 32-bit and 64-bit components is not supported.
Build steps
Install Python
Download and run the Windows installer from python.org.In the Optional Features screen, select all options.In the Advanced Options screen, select both:
- Download debugging symbols
- Download debug binaries (requires VS 2017 or later)
Configure environment variables
Add the Basilisk output directory to your Replace
PATH so that Python can find the built modules:- Right-click My Computer and select Properties.
- Under the Advanced tab, click Environment Variables.
- Under User Variables, select Path and click Edit.
- Add the Basilisk library directory:
C:\path\to\basilisk with the actual path to your Basilisk folder. The dist3 folder is created automatically when you run python conanfile.py.After modifying environment variables, close and reopen Command Prompt. A full machine reboot may be required for the changes to take effect.
Create a virtual environment
In Command Prompt from the Basilisk root directory:Your prompt will show
(.venv) when the environment is active. To deactivate it later:Build Basilisk
From the Basilisk root directory in Command Prompt:This fetches C++ dependencies, generates a Visual Studio 2022 solution in
dist3\, and compiles the project.To use Visual Studio 2019 instead:Build options
| Option | Default | Description |
|---|---|---|
--vizInterface | True | Include protobuf and ZeroMQ for Vizard connectivity. |
--opNav | False | Include OpenCV for visual navigation modules. |
--mujoco | False | Include MuJoCo physics integration (beta). |
--buildProject | True | Compile after generating the solution file. |
--clean | — | Delete dist3\ for a fresh build. |
--generator | Visual Studio 17 2022 | CMake generator string. |
--pathToExternalModules | — | Path to an external modules folder. See Custom modules. |