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

Author Topic: When will Build for Microsoft Visual Studio 2017?  (Read 28647 times)

0 Members and 1 Guest are viewing this topic.

Konstantin Dedov

  • Newbie
  • *
  • Posts: 3
    • View Profile
When will Build for Microsoft Visual Studio 2017?
« on: March 23, 2017, 09:26:16 am »
I have MSVS2017 since 20.03.2017. When I can use SFML there?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #1 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.
Laurent Gomila - SFML developer

Konstantin Dedov

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #2 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
When will Build for Microsoft Visual Studio 2017?
« Reply #3 on: March 23, 2017, 09:48:13 am »
Has not what properties?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Konstantin Dedov

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #4 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...

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
When will Build for Microsoft Visual Studio 2017?
« Reply #5 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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #6 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).

mgarnett

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #7 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

distengine

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #8 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!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #9 on: March 29, 2017, 11:01:04 am »
Nothing changed from VS 2017, the instruction work the same way.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

mgarnett

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #10 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

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #11 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


sjaustirni

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #12 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
« Last Edit: April 05, 2017, 10:16:11 am by sjaustirni »

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #13 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. ...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: When will Build for Microsoft Visual Studio 2017?
« Reply #14 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.
Laurent Gomila - SFML developer

 

anything