Skip to content

Build instructions update #84

@Thulium-Drake

Description

@Thulium-Drake

Hi there,

I ran into some issues compiling it in a Podman container as there seems to be a few things missing from the build instructions.

Here's what I did, so far:

  • Clone all repos to a folder (in my case ~/git)
  • Start a Fedora 42 container in Podman and mount that directory inside it
podman run -it -v ~/git:/root:Z fedora:42 /bin/bash
  • Install all dependencies
dnf install -y nasm autoconf automake libtool pkgconf libtool-ltdl-devel ninja-build python3-jinja2 cmake make gcc gcc-c++ curl zip unzip tar git libX11-devel libXft-devel libXext-devel wayland-devel libxkbcommon-devel ibus-devel mesa-libEGL-devel diffutils perl-open perl-FindBin libatomic
  • Prepare vcpkg and configure the project (remember, I am running this in a container, so everything is as root, but that's OK)
cd /root/vcpkg
export VCPKG_ROOT=$(pwd)
./bootstrap-vcpkg.sh
export PATH="$PATH:$VCPKG_ROOT"
mkdir /root/CnC_Generals_Zero_Hour/build
cd /root/CnC_Generals_Zero_Hour/build
cmake --preset=default -DVCPKG_INSTALL_OPTIONS="--allow-unsupported" -DSAGE_USE_SDL3=ON ../
  • After that's done, enter the default folder and compile the binary
cd /root/CnC_Generals_Zero_Hour/build/default
cmake --build . --config Release

This does result in a folder with the RTS binary in it, but so far I haven't been able to start it on my Fedora system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions