Autobuilder issues (libsdl2, dependencies, etc)
So I've managed to build darkplaces using a copy of the travis images in docker-ce locally on my machine. I'll document that process soon.
Issues/things that need addressing as I see them:
Travis is getting long in the tooth (it's based on Ubuntu Trusty). We probably need to work out how to build against later travis images, or move the build system to some other setup.
We're still using libsdl2 2.0.5 - This version of SDL2 has issues with all sorts of things, and can't be overridden when statically linked (like we do). Suggest we move to 2.0.9 (which is now released), which has a bunch of issues fixed. This might also fix the issues on some linux distributions (eg: blank screen when full screen with SDL2 binaries), and if it doesn't, we can use the dynamic API override variable (new since 2.0.5) to get darkplaces/xonotic to use the system libraries instead of the statically linked ones. (eg:
export SDL_DYNAMIC_API=/my/actual/libSDL-2.0.so.0- then run your binary). I've confirmed that the binary builds without errors, but not had a chance to run it yet (launch the game).
The autobuilder script .travis.yml for linux64 pulls in libsdl1.2-dev which could also be causing issues. Instead, we need the following dependencies:
I've confirmed the binary builds without errors, but not had a chance to run it yet (launch the game).
- We still have the autobuild set up for making linux32 binaries of darkplaces. Do we want to block or remove this behaviour entirely from the autobuilder?
I'm happy to submit patches/pull requests that implement any/all of the above except point 0.