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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - samtheman

Pages: [1]
1
General / Creating and configuring a SFML project:
« on: May 17, 2018, 12:12:22 am »
I hope you be able to help me create my first SFML project, I been trying a long time now.
I hope you can follow my steps.
This is the built error:
unable to start program C\:SFML-2.5.0\HelloChester\Debug\HelloChester.exe

Below is the way I built the project:
Creating and configuring a SFML program
Windows 10

1. Made a folder name: C:\SFML-2.5.0
2. Made a project: and put it into the folder name: C:\SFML-2.5.0
3. Downloaded Visual C++ (2017)-32 bit and unzip into C:\SFML-2.5.0 folder

4. Project properties:
All configuration
win32
C/C++
Additional Include Directories:
 SFML-2.5.0 >SFML-2.5.0-windows-vc15-32-bit>SFML-2.5.0>include

5. Project properties:
All configuration
win32
Linker
Additional library directories:
C:\SFML-2.5.0\SFML-2.5.0-windows-vc15-32-bit\SFML-2.5.0\lib
6. Project properties:
Release - win32
Linker
Input
Additional dependencies
Sfml-graphics-s.lib
Sfml-window-s.lib
Sfml-audio-s.lib
Sfml-network-s.lib
Sfml-system-s.lib

7. Project properties:
Debug - win32
Linker
Input
Additional dependencies
Sfml-graphics-s-d.lib
Sfml-window-s-d.lib
Sfml-audio-s-d.lib
Sfml-network-s-d.lib
Sfml-system-s-d.lib


8. Project properties:
Debug – win32
C/C++
Preprocessor
Preprocessor definitions:
SFML_STATIC; WIN32; DEBUG; WINDOWS;% (Preprocessor Definitions)











#include <SFML/Graphics.hpp>

int main()
{
   // create the window
   sf::RenderWindow window(sf::VideoMode(800, 600), "My window");

   // run the program as long as the window is open
   while (window.isOpen())
   {
      // check all the window's events that were triggered since the last iteration of the loop
      sf::Event event;
      while (window.pollEvent(event))
      {
         // "close requested" event: we close the window
         if (event.type == sf::Event::Closed)
            window.close();
      }

      // clear the window with black color
      window.clear(sf::Color::Black);

      // draw everything here...
      // window.draw(...);

      // end the current frame
      window.display();
   }

   return 0;
}

2
General / This is the project in the SFML Tutorial:
« on: May 16, 2018, 01:40:01 am »

// I am getting a bunch of errors when I run this project and I do not know where to start to start fixing them
// If anyone can please give me some advice on how setup this project-up or tell me something I would more then be happy.
Thanks,

// If I can get a little help from someone of how to fix some of these errors, or what best to try? maybe then  I hope to get a little better with a project in SFML.

#include <SFML/Graphics.hpp>

int main()
{

sf::RenderWindow windows(sf::VideoMode(200, 200), "SFML works!")
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);

while (window.isOpen())
{

   sf::Event event;
while (window.pollEvent(event))
}

if (event.type == sf::Event::Closed)
window.close();
}

window.clear();
window.draw(shape);
window.display();

}
return 0;
}

3
General / Please take a look to see if these are right:
« on: May 14, 2018, 07:00:52 pm »
Please review these lib and let me know before I link them:
Thanks Chester,

(static linked)

Release

Sfml-graphics-s.lib;
Sfml-window-s.lib;
Sfml-audio-s.lib;
Sfml-network-s.lib;
Sfml-system-s.lib;

Debug

Sfml-main-d.lib;
Sfml-window-s.lib;
Sfml-graphics-s-d.lib;
Sfml-audio-s-d.lib;
Sfml-network-s-d.lib;
Sfml-system-s-d.lib;



4
General / How to setup SFML
« on: May 13, 2018, 02:29:29 pm »
I really need someone else HELP on how to setup a SFML project on windows 10 with Visual Studio 2017 community:
I am following a video and written guide on how to do this, but no luck yet.

I am adding my SFML include files (from a folder on C:\)
I am adding my lib files (from a folder on C:\)

This is the Error that I am getting – unable to start program the system cannot find the path specified.
If anyone have any kind of Help before I give up on this, I would really appreciate it please.
Thanks,
Chester

5
General / Trying to understand how SFML works:
« on: May 07, 2018, 12:48:15 am »
I am just beginning to learn at about C++:
1) Will SFML library work with Dev C++ 5.11?
2) I am using Visual Studio 2017 community.
3) I have tried the online CHAT but not able to get it started.
4) I am new with SFML could you please give me some advice and the best way to get started with Graphics?

Pages: [1]