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

Author Topic: Building SFML 2.1 for VS 2013  (Read 1793 times)

0 Members and 1 Guest are viewing this topic.

Kanefa

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Building SFML 2.1 for VS 2013
« on: October 13, 2014, 10:12:26 pm »
I am attempting to build SFML 2.1 for VS 2013.  I am using the latest version of cMake 3.0.2.  When cMake prompts me I select Visual Studio 12 2013 and Use default native compilers.  Here are the options I use.

BUILD_SHARED_LIBS - No
CMAKE_BUILD_TYPE - Release
CMAKE_CONFIGURATION_TYPES - Debug;Release;MinSizeRel;RelWithDebInfo
CMAKE_INSTALL_PREFIX - C:/Program Files (x86)/SFML
GLEW_INCLUDE_PATH - C:/Users/My Name/Desktop/SFML-2.1/extlibs/headers
GLEW_LIBRARY - C:/Users/My Name/Desktop/SFML-2.1/extlibs/libs-msvc/x86/glew.lib
SFML_BUILD_DOC - No
SFML_BUILD_EXAMPLES - No
SFML_USE_STATTIC_STD_LIBS - No

I then open SFML.sln receive the message that "One or more projects in the solution were not loaded correctly. Please see the Output Window for details."  When I try to compile the project I get errors of the following nature, "Error 1 error MSB4025: The project file could not be loaded. And error occurred while parsing EntityName."

This issue is similar to this thread from four years ago.  http://en.sfml-dev.org/forums/index.php?topic=3519.0

Any help would be appreciated.
« Last Edit: October 14, 2014, 12:25:13 pm by Kanefa »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: Building SFML 2.1 for VS 2013
« Reply #1 on: October 13, 2014, 10:20:23 pm »
Maybe CMake broke again the project file generation... :-\
Is your VS install uptodate?

In any case I suggest to use the NMake file generator and build the projects from the consle.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Kanefa

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Building SFML 2.1 for VS 2013
« Reply #2 on: October 14, 2014, 11:03:56 am »
My VS install is up-to-date. 

I used NMake to create the libs, but I have a question in regards to this.  The reason I rebuilt my libs is they were built with VS2012.  During the entire process I never specified I wanted to build the libs with VS2013.  I have both VS2012 and VS2013 installed.  I assume it just defaulted to one of them.  How would I specify VS2013?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Building SFML 2.1 for VS 2013
« Reply #3 on: October 14, 2014, 11:08:36 am »
I'm not sure how you ran it, but usually you have to start a command line with all the Visual Studio specific variables set (i.e. running Microsoft Visual Studio 12.0 > 12 > vcvarsall.bat). Since these variables are then set for just one compiler version, NMake will use that.

If it just built without running a vcvarsall.bat (or starting a dedicated VS command line) CMake must have found the VC++ compiler in PATH, to check the version you could open the command line again and enter cl which should then return which version to use.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Kanefa

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Building SFML 2.1 for VS 2013
« Reply #4 on: October 14, 2014, 11:14:50 am »
Great!  Looks like I got it built, thanks.

 

anything