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

Author Topic: sfml compiling in microsoft community  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

EGYPTIAN CODER

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
sfml compiling in microsoft community
« 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

« Last Edit: May 03, 2017, 03:20:14 pm by EGYPTIAN CODER »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sfml compiling in microsoft community
« Reply #1 on: May 03, 2017, 03:42:22 pm »
Open the SFML solution in Visual Studio and compile the "INSTALL" project.
Laurent Gomila - SFML developer

EGYPTIAN CODER

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: sfml compiling in microsoft community
« Reply #2 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 ==========

 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: sfml compiling in microsoft community
« Reply #3 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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

EGYPTIAN CODER

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: sfml compiling in microsoft community
« Reply #4 on: May 03, 2017, 05:09:45 pm »
running VS as admin solved the problem
thanks for the support

 

anything