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

Author Topic: Errors building thor in VS2013 with SFML 2.1  (Read 3645 times)

0 Members and 1 Guest are viewing this topic.

Doodlemeat

  • Guest
Errors building thor in VS2013 with SFML 2.1
« on: March 15, 2014, 01:27:06 am »
Hello!

I am trying to build Thor library for visual studio 2013 with sfml 2.1.
I am getting a few errors in compiling. I just wanted to say that for others :)

EDIT!
I used an old version of SFML 2.1 and I could see that sf::Time can divide by eachother.
So delete maybe.

------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
  Checking Build System
  CMake does not need to re-run because C:/Users/Anthon/Desktop/Thor-master/Build/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/Users/Anthon/Desktop/Thor-master/Build/src/CMakeFiles/generate.stamp is up-to-date.
------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
  Checking Build System
  CMake does not need to re-run because C:/Users/Anthon/Desktop/Thor-master/Build/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because C:/Users/Anthon/Desktop/Thor-master/Build/src/CMakeFiles/generate.stamp is up-to-date.
------ Build started: Project: thor, Configuration: Release Win32 ------
  Building Custom Rule C:/Users/Anthon/Desktop/Thor-master/src/CMakeLists.txt
  CMake does not need to re-run because C:\Users\Anthon\Desktop\Thor-master\Build\src\CMakeFiles\generate.stamp is up-to-date.
  Action.cpp
  ActionOperations.cpp
  Affectors.cpp
  Arrow.cpp
  BigSprite.cpp
  BigTexture.cpp
  CallbackTimer.cpp
  ColorAnimation.cpp
  ColorGradient.cpp
  ConcaveShape.cpp
  Connection.cpp
  Distributions.cpp
  Emitters.cpp
  FadeAnimation.cpp
  FrameAnimation.cpp
  InputNames.cpp
  Joystick.cpp
  Particle.cpp
..\..\src\Particle.cpp(62): error C2679: binary '/' : no operator found which takes a right-hand operand of type 'sf::Time' (or there is no acceptable conversion)
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(364): could be 'sf::Time sf::operator /(sf::Time,float)' [found using argument-dependent lookup]
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(376): or       'sf::Time sf::operator /(sf::Time,sf::Int64)' [found using argument-dependent lookup]
          while trying to match the argument list '(sf::Time, sf::Time)'
..\..\src\Particle.cpp(67): error C2679: binary '/' : no operator found which takes a right-hand operand of type 'sf::Time' (or there is no acceptable conversion)
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(364): could be 'sf::Time sf::operator /(sf::Time,float)' [found using argument-dependent lookup]
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(376): or       'sf::Time sf::operator /(sf::Time,sf::Int64)' [found using argument-dependent lookup]
          while trying to match the argument list '(sf::Time, sf::Time)'
  ParticleSystem.cpp
  Random.cpp
  Generating Code...
  Compiling...
  Shapes.cpp
  StopWatch.cpp
  Timer.cpp
  ToString.cpp
  Triangulation.cpp
  Trigonometry.cpp
  UniformAccess.cpp
  Generating Code...
------ Build started: Project: thor, Configuration: Debug Win32 ------
  Building Custom Rule C:/Users/Anthon/Desktop/Thor-master/src/CMakeLists.txt
  CMake does not need to re-run because C:\Users\Anthon\Desktop\Thor-master\Build\src\CMakeFiles\generate.stamp is up-to-date.
  Action.cpp
  ActionOperations.cpp
  Affectors.cpp
  Arrow.cpp
  BigSprite.cpp
  BigTexture.cpp
  CallbackTimer.cpp
  ColorAnimation.cpp
  ColorGradient.cpp
  ConcaveShape.cpp
  Connection.cpp
  Distributions.cpp
  Emitters.cpp
  FadeAnimation.cpp
  FrameAnimation.cpp
  InputNames.cpp
  Joystick.cpp
  Particle.cpp
..\..\src\Particle.cpp(62): error C2679: binary '/' : no operator found which takes a right-hand operand of type 'sf::Time' (or there is no acceptable conversion)
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(364): could be 'sf::Time sf::operator /(sf::Time,float)' [found using argument-dependent lookup]
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(376): or       'sf::Time sf::operator /(sf::Time,sf::Int64)' [found using argument-dependent lookup]
          while trying to match the argument list '(sf::Time, sf::Time)'
..\..\src\Particle.cpp(67): error C2679: binary '/' : no operator found which takes a right-hand operand of type 'sf::Time' (or there is no acceptable conversion)
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(364): could be 'sf::Time sf::operator /(sf::Time,float)' [found using argument-dependent lookup]
          C:\git\Concave shape bug\deps\SFML-2.1\include\SFML/System/Time.hpp(376): or       'sf::Time sf::operator /(sf::Time,sf::Int64)' [found using argument-dependent lookup]
          while trying to match the argument list '(sf::Time, sf::Time)'
  ParticleSystem.cpp
  Random.cpp
  Generating Code...
  Compiling...
  Shapes.cpp
  StopWatch.cpp
  Timer.cpp
  ToString.cpp
  Triangulation.cpp
  Trigonometry.cpp
  UniformAccess.cpp
  Generating Code...
------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
  Building Custom Rule C:/Users/Anthon/Desktop/Thor-master/CMakeLists.txt
  CMake does not need to re-run because C:\Users\Anthon\Desktop\Thor-master\Build\CMakeFiles\generate.stamp is up-to-date.
  Build all projects
------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
  Building Custom Rule C:/Users/Anthon/Desktop/Thor-master/CMakeLists.txt
  CMake does not need to re-run because C:\Users\Anthon\Desktop\Thor-master\Build\CMakeFiles\generate.stamp is up-to-date.
  Build all projects
------ Build started: Project: INSTALL, Configuration: Release Win32 ------
  -- Install configuration: "Release"
  CMake Error at cmake_install.cmake:31 (FILE):
    file cannot create directory: C:/Program Files (x86)/thor/..  Maybe need
    administrative privileges.
 
 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1.
------ Build started: Project: INSTALL, Configuration: Debug Win32 ------
  -- Install configuration: "Debug"
  CMake Error at cmake_install.cmake:31 (FILE):
    file cannot create directory: C:/Program Files (x86)/thor/..  Maybe need
    administrative privileges.
 
 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1.
========== Build: 4 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========
« Last Edit: March 15, 2014, 01:31:40 am by Doodlemeat »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11029
    • View Profile
    • development blog
    • Email
AW: Errors building thor in VS2013 with SFML 2.1
« Reply #1 on: March 15, 2014, 09:05:28 am »
Yep, you should use the SFML version directly from the Git repository. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything