Need help with lib dependencies replacement from Debian

Trying to rebuild my apps as migrating from Debian

Could somebody please help me with following dependencies translation from Debian to Fedora ecosystem, because it’s no dpkg here and seems my attempts to replace -dev with -devel get no success :

Debian/Ubuntu

Enable i386 on your system, if you’re compiling 32-bit engine on amd64. If not, skip this

$ sudo dpkg --add-architecture i386

For 32-bit engine on amd64:
$ sudo apt install build-essential gcc-multilib g++-multilib python libsdl2-dev:i386 libfontconfig-dev:i386 libfreetype6-dev:i386 libopus-dev:i386 libbz2-dev:i386

For everything else:
$ sudo apt install build-essential python libsdl2-dev libfontconfig-dev libfreetype6-dev libopus-dev libbz2-dev

You must identify the equivalent package names with the devel name.
freetype-devel.i686 is probably the equivalent of libfreetype6-dev:i386
similarly with SDL2-devel.i686 and libsdl2-dev:i386

Fedora uses nothing with an i386 designation and instead designates the 32 bit packages with i686.

dpkg is available but is not installed by default and must be installed separately.

Use dnf in place of apt

1 Like

Thanks much!

I never heard about dnf and used yum but really forgot to check i686 :slight_smile:

Finnaly, maintainer updated instruction for Fedora and now the answer is here also:

Fedora only has a very few 32bit libs, you will need to use the 64bit libs instead in practice.

1 Like

Thanks for info,

according to the official Xash3D FWGS instruction just updated,
I can confirm only that everything works well for Fedora 41:

sudo dnf install gcc gcc-c++ glibc-devel.i686 SDL2-devel.i686 opus-devel.i686 fontconfig-devel.i686 freetype-devel.i686 bzip2-devel.i686

I’m suggesting you use 64bit libs becuase at some point Fedora will stop shipping any 32 bit code.

Its a Fedora goal to drop 32 bit libs, but there are important users, Steam for example, that is delaying this action.

1 Like