Connection Machine compiles on MacOS, Windows, and Linux. There are a few things you have to do in order to get it up and running:
- Download the code
- Install the dependencies (Vulkan, wasmtime)
- Set up the CMake build system Things will generally run smoothly on MacOS and Linux, there are a few more steps on Windows.
You can start by git cloning the repository. A git client or the command line should work.
This project requires Vulkan SDK and Wasmtime to build.
- On MacOS, it is recommended to install
vulkan-tools,vulkan-validationlayers, andshadercusing brew. - On Windows, install the Vulkan SDK via a package manager such as scoop (
scoop install vulkan) so the PATH entries are handled automatically. - On Linux, Vulkan development packages should be available through your package manager.
You need the CMake build system and a C++ compiler to build this project.
You can get a compiler and CMake from your package manager. Any compiler should work.
Install the required toolchain before configuring CMake:
- Install Visual Studio Build Tools 2022 with the C++ build tools using the Visual Studio Installer.
- Install Rust (and Cargo) via rustup.
- Install the Vulkan SDK using a Windows package manager such as scoop (
scoop install vulkan) so the paths are configured automatically.
After installing the tools, either launch CMake from the "Developer Command Prompt for VS..." (which already exposes the Visual Studio toolchain) or add the required executables such as cmake to your PATH. You can locate the Visual Studio CMake binaries by running where cmake inside that developer prompt; for example, CMake might live at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin.
A full system restart after installing the toolchain helps avoid lingering
PATHissues before your first build.
Even if you are going to have your IDE manage CMake, it's a good idea to try running it from the terminal first.
On Windows, Microsoft's build system will not be set as the CMake compiler by default. Either add MSBuild to your system variables, or use the "Developer Command Prompt for VS ..." application (which already has the variable set up) instead of your regular terminal.
- Configure -
cmake --preset release - Then Build -
cmake --build --preset release - Run the executable that was generated somewhere in the
builddirectory. On Windows this is probably in theDebugsubdirectory.
You can also build for debug with debug preset
Works for MacOS, Windows (MSVC), and Linux
If your error highlighting or IDE integration is showing red, make sure you have already compiled the project and the compile_commands.json in the build folder is being recognized (default for most lsp)