Hi,
I've been trying to link SFML 2.0 statically to my VS2012 Professional project now for a while, yet keep on running into the same issue.
I began by downloading the latest tarball of the nightly build for SFML 2.0. Through the VS2012 command prompt, I ran the following cmake command, to generate the configuration file for nmake:
c:\sfml2>cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=FALSE -D STATIC_STD_LIBS=TRUE -D SFML_STATIC=TRUE c:/sfml2
I'm sure some of the flags there are not needed for static compilation anyways, but that's not the case.
After the configuration file is generated, I run nmake, and the static -s libs are produced as expected. I then add these to my C++ project, link to the appropriate -s and -s-d for the Release/Debug builds respectively, and my project compiles.
However, when I try and run my program, it complains about the DLLs not being in the runtime folder...
I have defined the SFML_STATIC macro in my project properties, am linking to the right libraries, have the appropriate include files. I've tried cleaning my project and rebuilding many times, even changing the Code Generation Runtime Library settings.
I even had a friend compile the source on his computer, and I still receive the same error (same VS 2011 compiler).
I could link just fine to the dynamic libraries..
Any help would be greatly appreciated!
Thanks.