Hello. I am having trouble building the SFML 2.0 snapshot located on the download page. I am trying to build it because I use Visual Studios 2010 Proffessional and there isn't already a package available for it. I had been doing some research into graphics libs on youtube hoping to find something I liked and settled on trying SFML. I found 2 videos there for building SFML with VS 2010 Express and gave them a try.
The first video,
, uses cmake-gui to create a solution file that can be loaded into VS 2010. Once made, you load the solution and create release/debug libraries then the author shows how to set up properties so that a project can compile using the new libraries. After doing this I came across a problem in the linking phase of compilation(To be explained after I go over my attempts to resolve my issues).
The second video,
http://www.youtube.com/watch?annotation_id=annotation_175195&src_vid=cDNo4bzrFW8&v=PtSDrLpV74M&feature=iv, uses cmake and nmake to create the libraries. Again, after completing the steps in the video and trying a sample program I had problems.
Next I looked over the SFML site and found the tutorial on building SFML there(
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php) and followed it. Then I went to the page(
http://www.sfml-dev.org/tutorials/2.0/start-vc.php) detailing how to set up VS 2010 so that it can find the libraries and compile with them. I again had problems after compilation and during the linking phase. On the VS 2010 setup page a mention is made of using SFML_STATIC in the C/C++ preprossor when using static library builds. I tried compilation with and without that setting while using the correct nomenclature of '-s' and '-s-d' on static builds and whatnot.
I have gone through many attempts at compilation of the sample program listed on the VS 2010 setup page using various settings for the project with no luck. At best what it boils down to for me is this error:
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
So, out of frustration I downloaded Code::Blocks and used my own install of MinGW from their website so that I was sure to have the most current version of the MinGW compiler system. I went back to the page detailing how to create the libraries using CMake, made a make file for MinGW-make, and built the libraries. I followed the instructions on this page(
http://www.sfml-dev.org/tutorials/2.0/start-cb.php) to set up Code::Blocks and then compiles the example program at the bottom of the page. It worked. I had to copy the DLL files to my EXE file directory, but that was expected(and I didn't know how to go about making the static libs).
As you can see, I've tried many options to get SFML to compile under VS 2010 correctly, but I just can't get it to work. I hear good things about Code::Blocks, but I'd rather use VS 2010(I bought the damn thing after all). Any help would be appreciated. If needed I can go through my setup processes again and get exact errors on the builds and post them here for further information.
**Sorry for the video link. I've never made a post to a board that did things this way and I'm not sure why the second link didn't also create a video in this post.
EDIT - Forgot to mention I also tried compiling the current SVN files by converting the VS 2008 solution to VS 2010. Again that failed me.