How to statically compile an SDL game on Windows

后端 未结 5 842
温柔的废话
温柔的废话 2020-12-07 22:08

I have been trying to produce a statically linked \"single binary\" version of my game for windows. I want to link with sdl, sdl_image and sdl_mixer which in turn pull in a

5条回答
  •  不思量自难忘°
    2020-12-07 22:44

    That's because the SDL libs are under the LGPL-license.

    If you want to static link the libs (you can do that if your recompile them. It needs some hacking into the makefiles though) you have to place your game under some compatible open source license as well.

    The SDL-libs come as shared libraries because most programs that use them are closed source. The binary distribution comes in a form that most people need.

提交回复
热议问题