Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Installation / Demo  (Read 3125 times)

0 Members and 1 Guest are viewing this topic.

klj613

  • Newbie
  • *
  • Posts: 2
    • View Profile
SFML Installation / Demo
« on: January 16, 2011, 09:00:26 pm »
I have downloaded SFML 1.6 and I am following this tutorial.. http://www.sfml-dev.org/tutorials/1.6/start-vc.php.

I copied *.lib files to CP/lib and the include/SFML to CP/include (on MS Visual Studio 2010 Professional). Which this should make SFML available to all projects?

I also setup the Linker>Input>Additional Dependancies and C/C++>Preprocessor>Preprocessor Definations

When I try to compile my program it won't compile due to errors. Also the sf:: has a red line under it which I assume indicates it is not available.

Please note I am new to Game Development all together but I know several technologies relating to web development (PHP, etc)

Thanks in advance for any support
-klj613
KLJ

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
SFML Installation / Demo
« Reply #1 on: January 16, 2011, 09:08:32 pm »
You should not copy the files into the Visual Studio installation directory. Just specify the SFML paths (include and lib) in your project or in a property sheet that is used by your project. What's "CP"?

And what errors do you get?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

klj613

  • Newbie
  • *
  • Posts: 2
    • View Profile
SFML Installation / Demo
« Reply #2 on: January 16, 2011, 09:31:27 pm »
Quote from: "Nexus"
You should not copy the files into the Visual Studio installation directory. Just specify the SFML paths (include and lib) in your project or in a property sheet that is used by your project. What's "CP"?

And what errors do you get?


I meant to type VC not CP. Sorry.
I followed the instructions on http://www.sfml-dev.org/tutorials/1.6/start-vc.php and I do not know what/where-is project "property sheet" to add libs? I did what the tutorial told me to do.

The error dump is http://www.nomorepasting.com/getpaste.php?pasteid=35344
KLJ

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
SFML Installation / Demo
« Reply #3 on: January 17, 2011, 01:09:23 am »
Property sheets are available since VS 2010. They replace the global directories of VC 2008 in Tools -> Options -> Projects and Solutions. You'll find out more about them on MSDN (or Google).

But as I said, don't copy the SFML files into the VC directory. Rather specify the include and lib paths in your Visual Studio project or in a separate property sheet.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: