openlierox icon indicating copy to clipboard operation
openlierox copied to clipboard

Will not build without libsdl2-image-dev

Open mdeguzis opened this issue 9 years ago • 1 comments

See:
https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=contents&keywords=SDL_image.h

Without this, src/main.o does not compile, and will not find SDL_image.h. Adding libsdl2-image-dev allows the build to proceed. I am going to try on a fresh install without libsdl-image1.2-dev installed so I know it's not needed. I can submit a PR for debian/control if this is then the case.

Building on Debian 8 x64, latest updates, using dpkg-buildpackage -rfakeroot -us -uc.

Alternative control file

I altered the control file here to allow building off of SDL2. I need to test the game, but things built fine. If it plays ok, then I'll submit a PR (if acceptable).

In that control is also a change to not using binutil-dev, which only seems to be for the s390 arch:

/usr/include/libiberty.h    binutils-dev [s390]
/usr/include/libiberty/libiberty.h  libiberty-dev [not s390]

As for another current error (CXX 84% done) bfd.h is not found, which *is in binutils-dev. So I may need both. Once I get a successful build, i'll see how you want to proceed.

mdeguzis avatar Feb 04 '16 18:02 mdeguzis

Update, with a few fixed, I believe I have a complete build for Debian 8. Have to test launching the game later on. I ran into linker errors with libboost, but I think I corrected that with specifying the path to libboost_system.a under CMakeOlxCommon.cmake.

mdeguzis avatar Feb 05 '16 15:02 mdeguzis