Hi, i am having some problems with compiling the game, my distro is lmde debian based..
First is there a binary deb package for v2.5
Second , i downloaded all files needed, but when i am installing the pre-requistes, libsdl requires the deletion of these attached packages, won't this cause a problem to my OS?
libsdl1.2-dev
Impact on packages:
Yup. It may want a different version of one package, apt tries to obey the dependencies, and then it have to remove everything that depends on the old (to-be-removed) version, and this happens. "-dev" still may clash with the main library of a "wrong" version, too.
Usually this may be fine-tuned by trying to pick the packages to upgrade.
I got right versions of everything, but installed ready ufoai (2.5-1~getdeb1), not messed with source, and run Xubuntu, so my versions of some libraries may be different from your distro. Speaking of which, check what you already have:
$ dpkg-query -l "libsdl*" | grep "^ii"
ii libsdl-gfx1.2-4:amd64 2.0.23-3 amd64 drawing and graphical effects extension for SDL
ii libsdl-gfx1.2-dev:amd64 2.0.23-3 amd64 development files for SDL_gfx
ii libsdl-image1.2:amd64 1.2.12-5build2 amd64 Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-image1.2:i386 1.2.12-5build2 i386 Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-image1.2-dev:amd64 1.2.12-5build2 amd64 Image loading library for Simple DirectMedia Layer 1.2, development files
ii libsdl-mixer1.2:amd64 1.2.12-10 amd64 Mixer library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-mixer1.2-dev:amd64 1.2.12-10 amd64 Mixer library for Simple DirectMedia Layer 1.2, development files
ii libsdl-net1.2:amd64 1.2.8-4 amd64 Network library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-sound1.2:amd64 1.0.3-7 amd64 Sound library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-sound1.2:i386 1.0.3-7 i386 Sound library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-sound1.2-dev:amd64 1.0.3-7 amd64 Sound library for Simple DirectMedia Layer 1.2, development files
ii libsdl-ttf2.0-0:amd64 2.0.11-3 amd64 TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-ttf2.0-0:i386 2.0.11-3 i386 TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii libsdl1.2-dev 1.2.15-8ubuntu1.1 amd64 Simple DirectMedia Layer development files
ii libsdl1.2debian:amd64 1.2.15-8ubuntu1.1 amd64 Simple DirectMedia Layer
ii libsdl1.2debian:i386 1.2.15-8ubuntu1.1 i386 Simple DirectMedia Layer
ii libsdl2-2.0-0:amd64 2.0.2+dfsg1-3ubuntu1.1 amd64 Simple DirectMedia Layer
ii libsdl2-mixer-2.0-0:amd64 2.0.0+dfsg1-3 amd64 Mixer library for Simple DirectMedia Layer 2, libraries
ii libsdl2-ttf-2.0-0:amd64 2.0.12+dfsg1-2 amd64 TrueType Font library for Simple DirectMedia Layer 2, libraries
Generally, if plain "apt-get install ufoai" proposes to remove something, you may try to:
1) install ufoai and its explicit dependencies like this:
apt-get install --reinstall -s ufoai libsdl1.2debian:amd64/trusty libgl1-mesa-glx:amd64/trusty libsdl2-2.0-0:amd64/trusty libpng12-0:amd64/trusty
(replace "
trusty" with your distribution, see in deb lines - it's the first parameter after URL in /etc/apt/sources.list; replace
amd64 with your arch, if necessary)
2) repeat, adding like this at the end other libraries about which apt complains as "is required, but not to be installed" (with full "name:arc/distribution", don't let apt guess on its own beyond adding origin variations like "distro-updated" - it already failed to pick the right tree).
3) at some point, nothing but libraries will appear under "to be removed"; then re-run your last attempt without "-s".
Unless you have mix distros (I once had Ubuntu with a few drops from Debian repositories, due to slow update of certain buggy packages) it should work.