All,
Many people have trouble getting started with SFML due to Linker problems and compiler issues. I have taken my GQE setup and turned it into a generic SFML project file for those of you who want to get started with SFML for your OWN projects but don't want to figure out all the CMake scripts to get it all to Compile/Link properly. This basic SFML 2.0 or SFML 1.6 project ZIP file can be downloaded from the
GQE Project website.
In other words, using SFML just got easier:
1. Make sure CMake is installed on your machine
2. Download SFML2-0_Proj.zip or SFML1-6_Proj.zip from GQE Project page
3. Unzip to directory of your choice
4. [Optional] Replace the Pong.cpp file under src with your own SFML project files
5. [Optional] Replace the resource files under resources with your own resources files
6. [Optional] Customize the CMakeFiles.txt file(s) for your project name
7. From the Visual Studio Command Prompt, Dos Prompt, or Linux terminal type the following:
cd build
cmake .. (will pick the default build solution for your system)
make, nmake or open solution file in your IDE
8. Type MyProject to execute your project
Advantages:
- This allows you to add SFML dependent project code quickly and painlessly.
- This project copies your resources directory to your build directory for easy testing/debugging.
- This is not tied to anything except SFML, but can be easily extended to add other dependencies for your project.