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

Author Topic: Building SFML for Visual Studio 2015  (Read 14828 times)

0 Members and 1 Guest are viewing this topic.

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Building SFML for Visual Studio 2015
« Reply #15 on: August 12, 2015, 04:21:44 pm »
Hmm, that's odd, the code works for me. Not sure what the problem is tbh.
Failing to succeed does not mean failing to progress!

zerOpRiME

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Building SFML for Visual Studio 2015
« Reply #16 on: August 12, 2015, 06:14:41 pm »
OK I figured out my mistake- on the Linker-->Input tab of the project I did not put the '-d' version on the Debug configuration (I had originally configured it without the '-d' for All Configurations).  I TBH, I thought the '-d'  would only be necessary if I entered Debug mode but I guess that's not the case.  I will be sure to follow everything to the letter going forward.

Sorry for wasting everyone's time.

Hapax

  • Hero Member
  • *****
  • Posts: 3360
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Building SFML for Visual Studio 2015
« Reply #17 on: August 12, 2015, 08:14:53 pm »
https://riseagain.wordpress.com/2012/07/15/sfml-2-tutorial-introduction/
I'm not sure how much I'd trust a tutorial that has a header that says:
"SDML Overview"
 ;D
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
Re: Building SFML for Visual Studio 2015
« Reply #18 on: August 12, 2015, 09:29:23 pm »
The only tutorial one should follow is the official one. This is clearly outdated. He uses sf::Test without a font which is not doable anymore. And if I remember correctly, the website shows some very bad practice in general.
GitHub
Code Concept
Twitter
Rosme on IRC/Discord

zerOpRiME

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Building SFML for Visual Studio 2015
« Reply #19 on: August 12, 2015, 10:13:03 pm »
I was simply trying to get as much practice as I could but thanks for the feedback, I will stick with the official tutorials.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 878
    • View Profile
Re: Building SFML for Visual Studio 2015
« Reply #20 on: August 13, 2015, 08:50:03 am »
FYI the GitHub repository of SFML now has a new branch feature/VS2015, which includes precompiled binaries for Visual Studio 2015.

There are still a few small hiccups with runtime linking, but it should allow you building SFML from scratch - also some testing by others won't hurt. :)
« Last Edit: August 13, 2015, 08:54:07 am by Mario »

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Building SFML for Visual Studio 2015
« Reply #21 on: August 14, 2015, 12:46:50 pm »

Just built SFML from the feature/VS2015 branch and it compiles file although I get these errors when trying to use it:


Turns out I wasnt linking the new external libs. Its working fine, good work.
« Last Edit: August 20, 2015, 07:00:03 am by Gambit »