Skip to content

Linux build instructions don't work on Ubuntu versions older than 23.10 #856

@Kurtsley

Description

@Kurtsley

I want to put this here in case anyone else is having trouble compiling this on Ubuntu.

It seems the libsdl2=image-dev and libsdl2-mixer-dev packages don't come with the necessary cmake files in the older versions of Ubuntu.

The version supplied with 22.04 does not include the cmake folder:
https://packages.ubuntu.com/jammy/libsdl2-image-dev

My Solution

Note that my architecture folder is x86_64-linux-gnu, yours may differ.

  • Run make.sh in the cdogs directory and it should compile!

Alternatively, you could purge the old versions and manually install the latest with dpkg...

There may be easier ways to get the latest versions of those packages, but this worked for me. The point is you need those files provided in the cmake folder which older versions don't supply.

Credit to this post that pointed in the right direction:
https://stackoverflow.com/questions/52813560/i-have-libsdl2-image-dev-installed-via-apt-get-but-cmake-cannot-find-it

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