Skip to content

Linux build issue related to game_window.cpp #238

Description

@miguel2004-ctrl

Validation

  • I have checked the Issues page to see if my problem has already been reported
  • I have confirmed that this bug does not occur in the original game running on original Xbox 360 hardware

DLC

  • Additional Episode "Sonic Boss Attack"
  • Additional Episode "Shadow Boss Attack"
  • Additional Episode "Silver Boss Attack"
  • Additional Episode "Team Attack Amigo"
  • Additional Mission Pack "Sonic/Very Hard"
  • Additional Mission Pack "Shadow/Very Hard"
  • Additional Mission Pack "Silver/Very Hard"

Mods

No response

Codes

No response

Describe the Bug

I tried building MarathonRecomp on my laptop running Kubuntu, but whenever I try to compile it I always get the same error related to the file game_window.cpp

Steps to Reproduce

  1. Compile the project using cmake --build ./out/build/linux-release --target MarathonRecomp

Expected Behavior

Successful build of MarathonRecomp.

Footage

No response

Specifications

  • CPU: Intel Core i5 1335U
  • GPU: Intel Iris Xe
  • GPU Driver: i915
  • OS: Kubuntu
  • Version: 26.04

Additional Context

Error message:

[789/822] Building CXX object MarathonRecomp/CMakeFiles/MarathonRecomp.dir/ui/game_window.cpp.o
FAILED: [code=1] MarathonRecomp/CMakeFiles/MarathonRecomp.dir/ui/game_window.cpp.o
/usr/bin/clang++ -DCURL_STATICLIB -DMSDFGEN_COPYRIGHT_YEAR=2026 -DMSDFGEN_DISABLE_PNG -DMSDFGEN_DISABLE_SVG -DMSDFGEN_EXTENSIONS -DMSDFGEN_EXT_PUBLIC="" -DMSDFGEN_PUBLIC="" -DMSDFGEN_USE_CPP11 -DMSDFGEN_VERSION=1.12.0 -DMSDFGEN_VERSION_MAJOR=1 -DMSDFGEN_VERSION_MINOR=12 -DMSDFGEN_VERSION_REVISION=0 -DMSDF_ATLAS_COPYRIGHT_YEAR=2026 -DMSDF_ATLAS_NO_ARTERY_FONT -DMSDF_ATLAS_PUBLIC="" -DMSDF_ATLAS_VERSION=1.3.0 -DMSDF_ATLAS_VERSION_MAJOR=1 -DMSDF_ATLAS_VERSION_MINOR=3 -DMSDF_ATLAS_VERSION_REVISION=0 -DPLUME_SDL_VULKAN_ENABLED -DSDL_MAIN_HANDLED -D_CRT_SECURE_NO_WARNINGS -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR -I/home/copycat2004/Games/Linux/MarathonRecomp/MarathonRecomp -I/home/copycat2004/Games/Linux/MarathonRecomp/MarathonRecomp/api -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/concurrentqueue -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/ddspp -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/imgui -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/implot -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/json/include -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/magic_enum/include -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/stb -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/unordered_dense/include -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/bc_diff -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenosRecomp/thirdparty/smol-v/source -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/vcpkg_installed/x64-linux/lib/pkgconfig/../../include -I/usr/include/libmount -I/usr/include/blkid -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenonRecomp/thirdparty/fmt/include -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenosRecomp/thirdparty/zstd/build/cmake/../../lib -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/msdf-atlas-gen -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/msdf-atlas-gen/msdfgen -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/nativefiledialog-extended/src/include -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/o1heap/. -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenonRecomp/XenonUtils/. -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenonRecomp/thirdparty/simde -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenonRecomp/thirdparty/disasm/. -I/home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/thirdparty/SDL/include -I/home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/thirdparty/SDL/include/SDL2 -I/home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/thirdparty/SDL/include-config-release/SDL2 -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/SDL_mixer/include -I/home/copycat2004/Games/Linux/MarathonRecomp/MarathonRecompLib -I/home/copycat2004/Games/Linux/MarathonRecomp/tools/XenonRecomp/thirdparty/xxHash/cmake_unofficial/.. -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/plume -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/plume/contrib/volk -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/plume/contrib/Vulkan-Headers/include -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/plume/contrib/VulkanMemoryAllocator/include -I/home/copycat2004/Games/Linux/MarathonRecomp/thirdparty/ffmpeg-core/include -isystem /home/copycat2004/Games/Linux/MarathonRecomp/tools/XenonRecomp/thirdparty/tomlplusplus/include -isystem /home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/vcpkg_installed/x64-linux/include -fPIC -O3 -DNDEBUG -std=gnu++20 -flto=thin -fPIE -march=sandybridge -fno-strict-aliasing -Wno-switch -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-void-pointer-to-int-cast -Wno-int-to-void-pointer-cast -Wno-invalid-offsetof -Wno-null-arithmetic -Wno-null-conversion -Wno-tautological-undefined-compare -ffp-model=strict -Winvalid-pch -Xclang -include-pch -Xclang /home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/MarathonRecomp/CMakeFiles/MarathonRecomp.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /home/copycat2004/Games/Linux/MarathonRecomp/out/build/linux-release/MarathonRecomp/CMakeFiles/MarathonRecomp.dir/cmake_pch.hxx -MD -MT MarathonRecomp/CMakeFiles/MarathonRecomp.dir/ui/game_window.cpp.o -MF MarathonRecomp/CMakeFiles/MarathonRecomp.dir/ui/game_window.cpp.o.d -o MarathonRecomp/CMakeFiles/MarathonRecomp.dir/ui/game_window.cpp.o -c /home/copycat2004/Games/Linux/MarathonRecomp/MarathonRecomp/ui/game_window.cpp
/home/copycat2004/Games/Linux/MarathonRecomp/MarathonRecomp/ui/game_window.cpp:172:9: error: expected unqualified-id
172 | LOGFN("SDL video driver: "{}"", videoDriverName);
| ^
/home/copycat2004/Games/Linux/MarathonRecomp/MarathonRecomp/os/logger.h:42:43: note: expanded from macro 'LOGFN'
42 | #define LOGFN(str, ...) LOGF_IMPL(None, "", str, VA_ARGS)
| ^
/usr/include/X11/X.h:115:30: note: expanded from macro 'None'
115 | #define None 0L /
universal null resource or null atom */
| ^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions