Fix Linux build dependency conflicts and add debugging

- Removed conflicting system packages (libfmt-dev, libsimpleini-dev, libstb-dev, libenet-dev)
- Let vcpkg handle these dependencies instead to avoid conflicts
- Removed liblz4-dev and libopus-dev system packages for consistency
- Added gdb for debugging segmentation faults
- Added ldd check to identify missing shared library dependencies
- Improved build script output for better debugging
This commit is contained in:
Zephyron
2025-09-18 17:47:44 +10:00
parent c5ac00f84a
commit 5b95c20f99

View File

@@ -67,8 +67,6 @@ 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 libfmt-dev liblz4-dev libzstd-dev
- apt-get install -y -qq libopus-dev libenet-dev libsimpleini-dev libstb-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
@@ -78,15 +76,18 @@ build-linux:
- apt-get install -y -qq nasm
- apt-get install -y -qq glslang-tools
- apt-get install -y -qq libmbedtls-dev catch2
- apt-get install -y -qq libfuse2
- 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 --build build --config $BUILD_TYPE --parallel $CMAKE_BUILD_PARALLEL_LEVEL
- chmod +x AppImage-build-local.sh
- ./AppImage-build-local.sh || echo "AppImage build failed, continuing..."
- echo "Build completed, checking for executables..."
- ls -la build/bin/ || echo "No build/bin directory found"
- find build/ -name "*.so" -o -name "citron*" | head -20 || echo "No shared libraries or executables found"
- echo "Checking library dependencies..."
- ldd build/bin/citron || echo "citron binary not found or ldd failed"
- chmod +x AppImage-build-local.sh
- ./AppImage-build-local.sh || echo "AppImage build failed, continuing..."
artifacts:
paths:
- build/bin/