Skip to content

Instantly share code, notes, and snippets.

@worstname
Created May 23, 2023 16:20
Show Gist options
  • Save worstname/e80d57821f6247e0759be69cf0440db4 to your computer and use it in GitHub Desktop.
Save worstname/e80d57821f6247e0759be69cf0440db4 to your computer and use it in GitHub Desktop.
Build Trenchbroom on Fedora 38

Trenchbroom

Successfully compiled and ran using Fedora 38

Built from main branch, commit: b6659d1188f315ccea58315bb7c7f92cbd7f6fed

dependencies

not 100% sure but it builds successfully with the following.

sudo dnf install qt5-qtbase-devel qt5-qtsvg-devel libXi-devel mesa-libglapi \
mesa-libGL-devel mesa-libGLU-devel freeglut-devel glew-devel libXrandr-devel \
glm-devel libXxf86vm-devel freetype-devel freeimage-devel tinyxml2-devel pandoc \
cmake p7zip ninja-build

git

git clone https://github.com/TrenchBroom/TrenchBroom
git submodule update --init --recursive

build

make a build directory and cd into it:

mkdir -p TrenchBroom/build
cd TrenchBroom/build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="cmake/packages"
cmake --build . --target TrenchBroom

binary

The binary will be built as TrenchBroom/build/app/trenchbroom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment