-
Download the Visual Studio Build Tools installer, and install the 'Desktop Development with C++' workload
-
Install VSCode, as well as the C/C++ and CMake Tools extensions
-
Using VSCode, select the 'Visual Studio Build Tools (version) Release - x86_amd64' kit for 64-bit, or the x86 kit for 32-bit
-
Select the Release CMake build variant
-
Click Build
-
C++ compiler and associated tools
- packages:
g++binutils - if compiling with clang:
clang - compiler and toolchain need C++17 capabilities
- packages:
-
GNU make
- package:
make
- package:
-
CMake Utilities:
- package:
cmake
- package:
-
Development libraries
- packages:
libfltk1.3-devlibxft-devlibxinerama-devlibjpeg-devlibpng-devlibfontconfig1-dev
- packages:
-
FLEX
- package:
flex
- package:
-
Code formatting tools
- package:
clang-tidy - python package (optional, install with pip):
cmakelang
- package:
Assuming all those dependencies are met, then the following steps will build the Obsidian binary. (The '>' is just the prompt)
> cmake --preset dist
> cmake --build --preset dist (-j# optional, with # being the number of cores you'd like to use)
Then, Obsidian can be launched with:
> ./obsidian
You will need the mingw-w64 package as well (or your distro's equivalent)
Similar to the above directions:
> cmake --preset cross64 (use cross32 for a 32-bit build)
> cmake --build --preset cross64 (-j# optional, with # being the number of cores you'd like to use)
Then, Obsidian can be launched (in Windows) with:
> obsidian.exe
You will need to install the following on top of the regular MSYS Mingw64 install:
- package:
mingw-w64-(arch)-clang-tools-extra - package:
mingw-w64-(arch)-cmake
Similar to the above directions:
> cmake -B build -G "MSYS Makefiles"
> cmake --build build (-j# optional, with # being the number of cores you'd like to use)
Then, Obsidian can be launched (in Windows) with:
> obsidian.exe
This is a work-in-progress; needs to be revisited after the CMake conversion is finalized