From eab616566b1d4a43b4022f7e9f920bcff9d7993c Mon Sep 17 00:00:00 2001 From: Zephyron Date: Thu, 18 Sep 2025 18:05:36 +1000 Subject: [PATCH] Fix Linux build: restore required header packages and improve CMake config - Added back libstb-dev, libopus-dev, and libenet-dev for header files - These are needed because CMake uses MODULE find scripts that look for system headers - Added CMAKE_FIND_PACKAGE_PREFER_CONFIG=ON to prioritize vcpkg config packages - This should resolve the missing /usr/include/stb and /usr/include/opus errors --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eafb15e0b..7f964c349 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,6 +67,7 @@ build-linux: - apt-get install -y -qq libpulse-dev libasound2-dev libusb-1.0-0-dev - apt-get install -y -qq libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev - apt-get install -y -qq libssl-dev libboost-all-dev libboost-context-dev + - apt-get install -y -qq libstb-dev libopus-dev libenet-dev - apt-get install -y -qq libvulkan-dev - apt-get install -y -qq qtbase5-dev qtbase5-private-dev qtwebengine5-dev qtmultimedia5-dev - apt-get install -y -qq libqt5core5a libqt5gui5 libqt5widgets5 libqt5dbus5 @@ -79,7 +80,7 @@ build-linux: - apt-get install -y -qq libfuse2 gdb script: - git submodule update --init --recursive - - cmake -B build -S . -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_QT=ON -DENABLE_SDL2=ON -DENABLE_WEB_SERVICE=ON -DCITRON_USE_BUNDLED_VCPKG=ON -DCITRON_USE_BUNDLED_FFMPEG=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_FLAGS="-Wno-error=conversion" + - cmake -B build -S . -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_QT=ON -DENABLE_SDL2=ON -DENABLE_WEB_SERVICE=ON -DCITRON_USE_BUNDLED_VCPKG=ON -DCITRON_USE_BUNDLED_FFMPEG=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_FLAGS="-Wno-error=conversion" -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON - cmake --build build --config $BUILD_TYPE --parallel $CMAKE_BUILD_PARALLEL_LEVEL - echo "Build completed, checking for executables..." - ls -la build/bin/ || echo "No build/bin directory found"