ghc-musl icon indicating copy to clipboard operation
ghc-musl copied to clipboard

Linker problem building a `monomer` app

Open sproott opened this issue 3 years ago • 2 comments

I'm trying to build a monomer app and I'm getting linker errors:

image

I think I have the required dependencies (sdl2-dev and glew-dev), but the linker fails anyways. The libraries are actually located in /usr/lib as they should be:

image

Still, the linker does not find them. Any ideas on what to do?

Example project: https://github.com/sproott/monomer-static-build-problem

sproott avatar Feb 17 '22 09:02 sproott

According to this comment thread on Reddit, it's impossible to statically link X11 and GL, so I'll just resort to a distro-specific dynamic executable. Should I close this for now?

sproott avatar Feb 17 '22 10:02 sproott

@sproott Nice find, thanks for sharing!

My impression from that thread is that it is not impossible; but it definitely seems to require much more intimate knowledge than I have. So, let's keep the issue open with the hope that someone might provide a way out or the situation changes in future.

utdemir avatar Feb 21 '22 10:02 utdemir