SFML community forums

Help => General => Topic started by: EGYPTIAN CODER on May 03, 2017, 03:16:52 pm

Title: sfml compiling in microsoft community
Post by: EGYPTIAN CODER on May 03, 2017, 03:16:52 pm
hello every one ;
I have installed microsoft visual c++ 2017 community but as you know there is no sfml package ready for it ;

step by step I have followed the tutorial about cmake
but now I am stuck in this stage

(http://i.imgur.com/o1esoQf.png)
Title: Re: sfml compiling in microsoft community
Post by: Laurent on May 03, 2017, 03:42:22 pm
Open the SFML solution in Visual Studio and compile the "INSTALL" project.
Title: Re: sfml compiling in microsoft community
Post by: EGYPTIAN CODER on May 03, 2017, 04:44:52 pm
I get this


1>------ Build started: Project: INSTALL, Configuration: Debug Win32 ------
1>-- Install configuration: "Debug"
1>-- Installing: C:/Program Files/SFML/./include
1>CMake Error at cmake_install.cmake:31 (file):
1>  file INSTALL cannot make directory "C:/Program Files/SFML/./include": No
1>  such file or directory
1>
1>
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "setlocal
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: C:\Users\asus\AppData\Local\Temp\Rar"$"EXa0.647\cmake-3.8.1-win32-x86\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErrorLevel
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /b %1
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDone
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>D:\microsoft visual studio 2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code 1.
1>Done building project "INSTALL.vcxproj" -- FAILED.
2>------ Skipped Deploy: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>Project not selected to build for this solution configuration
3>------ Skipped Deploy: Project: sfml-system, Configuration: Debug Win32 ------
3>Project not selected to build for this solution configuration
4>------ Skipped Deploy: Project: sfml-main, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration
5>------ Skipped Deploy: Project: sfml-network, Configuration: Debug Win32 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Deploy: Project: sfml-window, Configuration: Debug Win32 ------
6>Project not selected to build for this solution configuration
7>------ Skipped Deploy: Project: sfml-audio, Configuration: Debug Win32 ------
7>Project not selected to build for this solution configuration
8>------ Skipped Deploy: Project: sfml-graphics, Configuration: Debug Win32 ------
8>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 1 failed, 8 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 7 skipped ==========

 
Title: Re: sfml compiling in microsoft community
Post by: eXpl0it3r on May 03, 2017, 04:48:01 pm
Use a different CMAKE_INSTALL_PREFIX or run VS as admin so it can install to C:\Program Files\SFML
Title: Re: sfml compiling in microsoft community
Post by: EGYPTIAN CODER on May 03, 2017, 05:09:45 pm
running VS as admin solved the problem
thanks for the support