SFML community forums

General => General discussions => Topic started by: Konstantin Dedov on March 23, 2017, 09:26:16 am

Title: When will Build for Microsoft Visual Studio 2017?
Post by: Konstantin Dedov on March 23, 2017, 09:26:16 am
I have MSVS2017 since 20.03.2017. When I can use SFML there?
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Laurent on March 23, 2017, 09:31:40 am
The VS2015 libs should be compatible with VS2017. And if not, you just have to recompile SFML.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Konstantin Dedov on March 23, 2017, 09:45:40 am
I can't comlile Release version: source code has not this properties when I open the project in Visual Studio. I used CMake to create a project.
Title: When will Build for Microsoft Visual Studio 2017?
Post by: eXpl0it3r on March 23, 2017, 09:48:13 am
Has not what properties?
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Konstantin Dedov on March 23, 2017, 11:05:46 am
It's all platforms in project (only Win32). If I create x64-configuration project can't compiling...
Title: When will Build for Microsoft Visual Studio 2017?
Post by: eXpl0it3r on March 23, 2017, 11:09:42 am
If you mean that your project file is for 32-bits only, then you have to adjust your CMake generator to create a project file for 64-bits.

See here: https://cmake.org/cmake/help/v3.7/generator/Visual%20Studio%2015%202017.html
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Mario on March 23, 2017, 11:36:25 am
You just have to run CMake this way:

Code: [Select]
cmake -G "Visual Studio 15 2017 Win64" path/to/your/source/code
This will create a 64 bit targeting solution for you.

Note that you might have to update CMake to properly support the new Visual Studio (or use the one bundled with it).
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: mgarnett on March 23, 2017, 03:42:01 pm
I had no trouble building debug and release versions using CMake and VS2017. I'm happy to send them through if anybody needs them.

Cheers

Mark
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: distengine on March 29, 2017, 12:22:52 am
Hello, I saw that you posted a reply that you got sfml to work on visual studio 2017, could i get the instructions on that? Are they the same as the ones in the tutorial tab? I cant seem to get it to work with 2017 with those instructions yet i can on 2015, thanks for the help!
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: eXpl0it3r on March 29, 2017, 11:01:04 am
Nothing changed from VS 2017, the instruction work the same way.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: mgarnett on April 01, 2017, 02:18:41 pm
Hello, I saw that you posted a reply that you got sfml to work on visual studio 2017, could i get the instructions on that? Are they the same as the ones in the tutorial tab? I cant seem to get it to work with 2017 with those instructions yet i can on 2015, thanks for the help!

Yep, it's the same instructions, nothing has changed.  You just need to make sure your path is setup correctly.  I just downloaded the CMake GUI installation package and used that to do the build.

I can send through the binaries via email if you can't get the build working.

Cheers

Mark
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: jamesL on April 05, 2017, 05:01:48 am
just download from here

https://www.sfml-dev.org/download/sfml/2.4.2/

no need to bother with cmake or send binaries

Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: sjaustirni on April 05, 2017, 09:36:59 am
No.
As of now, there is no VS2017 build on the download page. Building SFML by oneself w/ VS 2017 is necessary, if one wants to use VS2017.

// EDIT: That being said, I have found my own unofficial SFML build I am currently using. The version is 2.4.2, but I am not sure if it's an official release, or a couple weeks old "nightly build". Anyway, I hope it's going to be helpful.
https://rbfi.io/dl.php?key=/mnWr/SFML-64bit-Debug-VS2017.zip
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: jamesL on April 05, 2017, 10:49:30 pm
No.
As of now, there is no VS2017 build on the download page. Building SFML by oneself w/ VS 2017 is necessary, if one wants to use VS2017.

so this is incorrect ?

The VS2015 libs should be compatible with VS2017. ...
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Laurent on April 06, 2017, 08:00:04 am
Quote
so this is incorrect ?
Should be correct. But we're still waiting for someone to confirm.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Satus on April 06, 2017, 12:24:20 pm
Don't know about SFML, by I couldn't use Qt built by 2015 with 2017.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: eXpl0it3r on April 06, 2017, 12:42:12 pm
Should be correct. But we're still waiting for someone to confirm.
A simple example builds and runs fine on my end with VS 2017 using SFML built with VS 2015.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: sjaustirni on April 06, 2017, 02:24:32 pm
so this is incorrect ?

The VS2015 libs should be compatible with VS2017. ...

Well, before we've all switched to VS 2017, we had a problem building and running our private SFML project half of us using VS 2015 and the other one 2017. I don't remember the issue though. I think I concluded the problem must have been caused by different compiler versions and just made everyone switch to VS 2017 :D

No one has reported the old issue since. Shall I investigate this further?
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: eXpl0it3r on April 06, 2017, 02:31:38 pm
No one has reported the old issue since. Shall I investigate this further?
It's your time, so you decide. ;D

Whether VS 2015 builds are fully compatible with VS 2017 builds doesn't really matter as much, because we will provide VS 2017 at one point and it's still recommended to use builds of the same compiler. ;)
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: sjaustirni on April 06, 2017, 03:11:01 pm
I won't spend any time on this then (delivering features is everything, right? Can't let myself procrastinate on this :D ). I hope you guys will be able to provide the official VS 2017 builds ASAP. Good luck!  ;D
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: jnbutler1815 on June 02, 2017, 11:28:20 pm
I was able to successfully setup VS 2017 Community Edition with the VS2015 32bit libs for static linking.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: SeriousITGuy on June 13, 2017, 08:30:44 am
I just built SFML master with Visual Studio 2017, only took me 5 minutes and works as expected.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: tdsamardzhiev on June 29, 2017, 07:12:04 am
I was able to successfully setup VS 2017 Community Edition with the VS2015 32bit libs for static linking.

I tried the VS2015 x64 builds and they appear to work, too.
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: eXpl0it3r on June 29, 2017, 09:00:05 am
Alternatively, I've built VS 2017 "Nightly Builds": https://www.nightlybuilds.ch/
Title: Re: When will Build for Microsoft Visual Studio 2017?
Post by: Melcx on February 02, 2018, 06:40:22 pm
I just upgraded all my project to vs2017 and had some really strange errors, and SFML was the cause of them.
I used the 2015 static linking lib, UCRT wasn't compatible : project building was ok but function like strtof() were sending non-sense error.
I finally built everything myself with CMake and everything is working again.