Re: [tsc-devel] Re: Did you build SFML from source...

Quintus | Tue, 20 Oct 2015 13:42:27 UTC

datahead <…r@f…> writes:

> Post via forum by datahead <…9@x…>:
> [quote]A static build should also work.[/quote]
>
> Yes, they said in the #sfml room that a static build should work with
> a CMake configuration.  I couldn't seem to get it to work, so I
> finally just did the dynamic build.

Be more specific, “doesn’t work” doesn’t help much :-). It might be that
SFML needs to be passed a special flag in case of a static build,
though. I know for example that applications using CEGUI will not
compile in a static configuration unless you define the CEGUI_STATIC
macro, which you usually do by using a compiler flag -DCEGUI_STATIC,
which in turn is something you’d set in your build system. The CEGUI
headers react on the presence of this macro somehow and define things
differently. I never understood why one would need different definitions
for a static vs. dynamic build, but this is said to be the source of all
these nonsensical "__imp_" references not found errors on Windows. If
somebody has insight on the topic why one would need different
definitions for functions on Windows, please feel free to enlighten
me.

Vale,
Quintus

-- 
#!/sbin/quintus
Blog: http://www.guelkerdev.de

GnuPG key: F1D8799FBCC8BC4F