-
Notifications
You must be signed in to change notification settings - Fork 408
Building
Carter Li edited this page Oct 31, 2023
·
3 revisions
fastfetch uses cmake
for building. pkg-config
is recommended for better library detection. The simplest steps to build the fastfetch and flashfetch binaries are:
mkdir -p build
cd build
cmake ..
cmake --build . --target fastfetch --target flashfetch
If the build process fails to find the headers for a library listed in dependencies, fastfetch will simply build without support for that specific feature. This means, it won't look for it at runtime and just act like it isn't available.
Currently GCC or clang is required (MSVC is not supported). MSYS2 with CLANG64 subsystem (or CLANGARM64 if needed) is suggested (and tested) to build fastfetch. If you need Windows 7 / 8.x support, using MINGW64 is suggested.
- Install MSYS2
- Open
MSYS2 / CLANG64
(notMSYS2 / MSYS
, which targets cygwin C runtime) - Install dependencies
pacman -Syu mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-pkgconf mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-vulkan-loader mingw-w64-clang-x86_64-opencl-icd
Follow the building instructions of Linux next.