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

Author Topic: Needs Help for Installing SFML  (Read 4039 times)

0 Members and 1 Guest are viewing this topic.

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
Needs Help for Installing SFML
« on: June 23, 2010, 02:41:48 pm »
How can i install SFML..? Is there a tutorial which i cannot find..? Is the installation too easy that a tutorial is unnecessary..?

I really need help in installing this library...

I currently have windows 7 and C++ 2010 Express...

thank you for help  :D

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Needs Help for Installing SFML
« Reply #1 on: June 23, 2010, 02:46:34 pm »
you, certainly, are blind i guess : http://www.sfml-dev.org/tutorials/ ;)
Mindiell
----

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
Needs Help for Installing SFML
« Reply #2 on: June 23, 2010, 05:07:07 pm »
I have seen it. (http://www.sfml-dev.org/tutorials/1.6/start-vc.php)

However, since I do not have VC++ Directories for C++ 2010 Express, I'm trying the Option#1 (Copy the SFML development files to your Visual Studio installation directory). I just cannot find VC\include directory... For the Step#2, do I also need to copy the *.dll files..?

A version of option #2 for C++ 2010 Express would also be nice.

Thank you for helping me  :D

BTW, i'm NOT BLIND..! I'm just ..... yeah... i'm blind.... lol

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Needs Help for Installing SFML
« Reply #3 on: June 23, 2010, 06:35:40 pm »
Quote
However, since I do not have VC++ Directories for C++ 2010 Express

You must set it in your project's settings, in the properties sheet or something like that. Anyway, a quick Google search will give you what you want (a lot of people complained about the removal of the global search paths in VS 2010).

Quote
I just cannot find VC\include directory...

I have <install-dir>/VC/include in my VS2010 installation. Are you *really* blind? :wink:

Quote
For the Step#2, do I also need to copy the *.dll files..?

DLL files are loaded when you launch an application that uses SFML. So they must be located in the same directory as the executable of the application, or in a directory which is in the PATH environment variable.
Laurent Gomila - SFML developer

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
Needs Help for Installing SFML
« Reply #4 on: June 23, 2010, 09:48:10 pm »
MY EYES ARE FINALLY CURED..! i think it's my brain....

I finally installed this library..!

Thanks!

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
Needs Help for Installing SFML
« Reply #5 on: June 23, 2010, 10:33:59 pm »
ok then... i'm blind again...

when i try to run this...
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

it runs...!

however, when i try to add the sfml-graphics-s-d.lib in Additional Dependencies, it cannot be opened...

any ideas..?  :?:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Needs Help for Installing SFML
« Reply #6 on: June 23, 2010, 10:52:48 pm »
You have to link to sfml-window. SFML is contains 5 different modules, not just sfml-system ;)
Laurent Gomila - SFML developer

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
Needs Help for Installing SFML
« Reply #7 on: June 23, 2010, 11:07:54 pm »
nvm my last post... graphics lib works... i just misspelled it... tnx..!