Cross build (linux to windows) with Freetype #174
-
Has anyone managed to cross-build (from Linux to Windows) a static binary with Freetype rendering? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
More background on this and a renewed plea for help: I'm trying to build a windows binary with Freetype enabled. I can produce a Linux binary and a Mac binary with Freetype font rendering no problem. But Freetype on Windows is escaping me. Has anyone managed to do this? (I'm using a mingw environment on Linux for cross compilation but I can't even manage a native compilation). @neclepsio I see from this issue that you have managed compiling on Windows natively #91 Which mingw components did you install? |
Beta Was this translation helpful? Give feedback.
-
Fixed. It simply needs the "-static" flag in the CGO_LDFLAGS environment variable. I already had "-static-libgcc" and "-static-libstdc++" and this was sufficient for a static SDL compilation. But for freetype the additional flag is required. |
Beta Was this translation helpful? Give feedback.
Fixed. It simply needs the "-static" flag in the CGO_LDFLAGS environment variable. I already had "-static-libgcc" and "-static-libstdc++" and this was sufficient for a static SDL compilation. But for freetype the additional flag is required.