77
« on: April 14, 2008, 09:29:24 pm »
Make sure that the target computer has the visualc++ 2008 redistributables installed (which I assume is the case if other apps run) and you don't redistribute an apllication containing debug information. Also make sure that you link with the correct libs (non-debug, static, in recent svn-versions marked with a -s suffix).
Static linking definitely works on vc++, I just compiled an application 2 days ago using TeamSuite 2008 which has been run successfully on a pc without VisualStudio intalled.
Here is a guide what I did:
1. Pull down the latest sources from svn
2. Open the SFML.sln in the vc2008 dir
3. Select Release
4. Rigth-click the solution and select recreate all (or something similar)
5. You will now find the libs in sfmldir/lib/vc2008
6. Create a new project and select win32 application, disable the option to use precompiled headers
6. Go to the release configuration and add the sfml-include directory to the c++ options and the sfml-lib directory to the linker settings.
7. Then add the required libs to the linker settings (for example sfml-graphics-s.lib)
8. Now add your source files to the project
9. Select release mode and compile
10. Hopefully you now have a working executable (it worked for me)
If you need more specific information where to find the settings, I can look it up as soon as I get back to a computer with VisualStudio.
If this doesn't work you can still try to add the required sfml-source files to you project directly (you will still have to configure the external libs like freetype, so this probably won't simplfy things).
Looking at the msdn docs could help too, I think they have a chapter about reditributing applications.