SFML community forums
General => General discussions => Topic started by: Konstantin Dedov on March 23, 2017, 09:26:16 am
-
I have MSVS2017 since 20.03.2017. When I can use SFML there?
-
The VS2015 libs should be compatible with VS2017. And if not, you just have to recompile SFML.
-
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.
-
Has not what properties?
-
It's all platforms in project (only Win32). If I create x64-configuration project can't compiling...
-
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
-
You just have to run CMake this way:
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).
-
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
-
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!
-
Nothing changed from VS 2017, the instruction work the same way.
-
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
-
just download from here
https://www.sfml-dev.org/download/sfml/2.4.2/
no need to bother with cmake or send binaries
-
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
-
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. ...
-
so this is incorrect ?
Should be correct. But we're still waiting for someone to confirm.
-
Don't know about SFML, by I couldn't use Qt built by 2015 with 2017.
-
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.
-
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?
-
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. ;)
-
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
-
I was able to successfully setup VS 2017 Community Edition with the VS2015 32bit libs for static linking.
-
I just built SFML master with Visual Studio 2017, only took me 5 minutes and works as expected.
-
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.
-
Alternatively, I've built VS 2017 "Nightly Builds": https://www.nightlybuilds.ch/
-
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.