-
MSVC Toolchain
-
???
-
Profit
-
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:
-
FLTK 1.3 (optional)
- website: http://www.fltk.org/
- package:
libfltk1.3-dev
- You may also need:
libxft-dev
libxinerama-dev
libjpeg-dev
libpng-dev
libfontconfig1-dev
-
zlib (optional)
- website: http://www.zlib.net/
- package:
zlib1g-dev
-
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 -B build
> cmake --build build (-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 -B build -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw64.cmake (use Toolchain-mingw32.cmake for a 32-bit build)
> 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
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