MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
346 stars 89 forks source link

Installing dependencies fails on Debian sid / bullseye #196

Closed ile6695 closed 3 years ago

ile6695 commented 4 years ago

I'm trying to build from source, but installing dependencies using the script does not install everything. Running /mk/linux/setupBuildDeps.sh results in the following error

'The following packages have unmet dependencies: libwxgtk3.0-dev : Depends: wx3.0-headers (= 3.0.4+dfsg-14) but 3.0.4+dfsg-15 is to be installed Depends: libwxbase3.0-dev (= 3.0.4+dfsg-14) but 3.0.4+dfsg-15 is to be installed E: Unable to correct problems, you have held broken packages. An error occurred while installing build dependencies.

Please report a bug at http://bugs.megaglest.org providing the following information: --- snip --- Git revision: 4846ad092e5d9f7ece582688754236af8569e09a LSB support: 1 Distribution: Debian Release: unstable Codename: sid Architecture: x86_64 --- snip ---'

I am able to install wx3.0-headers=3.0.4+dfsg-14 manually, but not libwxbase3.0-dev

ile6695 commented 4 years ago

It seems that building is possible even when the setupBuildDeps.sh fails

tomreyn commented 4 years ago

From what I seem to remember, wxgtk is only needed for the map editor and model viewer (and previously for the configurator) utilities but not the main game (nor the game server).

dak ls libwxgtk3.0-dev suggests that no such package is currently available in Debian sid for amd64 (though it may have been when you filed this bug, or maybe you run a mixed sid/testing system). However, packages.debian.org suggests that there is a package libwxgtk3.0-gtk3-dev which may be what we're looking for in sid.

libwxbase3.0-dev does exist in sid at this time.

ile6695 commented 3 years ago

I was curious so I installed fresh debian on virtual machine. I used testing-iso, which I upgraded to unstable. libwxgtk3.0-dev has no installation candidate, so this only confirms what tomreyn wrote.

softcoder commented 3 years ago

I changed the setup script to use the wx package name I see on sid: libwxgtk3.0-gtk3-dev

https://packages.debian.org/sid/libwxgtk3.0-gtk3-dev

ile6695 commented 3 years ago

4654f695988ce147329d1de4aa9d35dfa93c83da does indeed seem to fix this issue. Building using mk/linux/build-mg.sh works too and the game runs fine. Map editor opens fine but terminal hints about segmentation fault when closing the window. Hopefully this does not happen on stable systems.