Closed Wohlstand closed 6 years ago
Original comment by Michael Pyne (Bitbucket: mpyne, GitHub: mpyne).
This project doesn't use the gnu/stubs.h
include which is causing your build to error out.
That appears to be included from the limits.h
C/C++ header which the library does use (properly).
Rather it seems you have an error in your build system of some sort. Make sure you can build a simple C++ project using the limits.h
include.
Original comment by Roger Pack (Bitbucket: [roger pack](https://bitbucket.org/roger pack), ).
Cross compiling used to work with 0.6.2. It appears it's using a file from the linux side of things [?] Cheers!
Original comment by Michael Pyne (Bitbucket: mpyne, GitHub: mpyne).
We've made some changes since 0.6.2, but nothing involving the limits.h
include file.
This file itself is a C (and C++) standard header file, not a Linux-specific header file.
The cross-compile toolchain you are using does not appear to like this use of limits.h
, which might be a problem with the toolchain that happened to work by accident up to now, or some other local issue. I can't diagnose it from here. :)
If it wasn't for the huge merge commit from the recent pull request to integrate ZLib support then I'd maybe suggest using git bisect to help narrow down whether a game-music-emu change exposed an error in the build system.
But it might be easier just to try and create an empty /usr/include/gnu/stubs.h in your cross-compile setup and see if that makes things at least go on.
Original comment by Michael Pyne (Bitbucket: mpyne, GitHub: mpyne).
Roger, please see issue #17. Looks like the addition of zlib causes the CMake build system to pick up the dynamic shared library version of zlib instead of a static zlib library, when you're doing a static build. Any sane toolchain is guaranteed to at least have the dynamic zlib, so it will usually be autodetected unless you manually disable it.
For now you can try disabling zlib support when you build (I assume this will fix the build error), but I will see if I can't find a better way to filter out shared library zlib when doing a static build.
Original report by Roger Pack (Bitbucket: [roger pack](https://bitbucket.org/roger pack), ).