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

Author Topic: Error when compiling SFML2 in MSVS2010  (Read 1690 times)

0 Members and 1 Guest are viewing this topic.

Setsuna

  • Newbie
  • *
  • Posts: 3
    • View Profile
Error when compiling SFML2 in MSVS2010
« on: September 08, 2012, 04:07:57 am »
hi guys,

i've downloaded the source, created the sln for MSVS2010 with Cmake and when trying to compile i get this:

http://ideone.com/2qMbN

The main problem seems to be this:

>LINK : fatal error LNK1181: cannot open input file '..\..\..\lib\Release\sfml-system.lib'

Would anyone please help me with this? I have no idea of how to fix this :/

Thank you very much in advance

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Error when compiling SFML2 in MSVS2010
« Reply #1 on: September 08, 2012, 07:18:31 am »
Is the path for the lib a valid path and does VS have the rights to write there (i.e. it doesn't need admin rights)?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error when compiling SFML2 in MSVS2010
« Reply #2 on: September 08, 2012, 08:45:53 am »
Can you show the output of a full rebuild?
Laurent Gomila - SFML developer

Setsuna

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error when compiling SFML2 in MSVS2010
« Reply #3 on: September 08, 2012, 02:49:20 pm »
http://ideone.com/JCMuy


Here you have the full rebuild

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Error when compiling SFML2 in MSVS2010
« Reply #4 on: September 08, 2012, 03:07:37 pm »
I've no idea why VS adds some ..\ to the lib paths. Did you follow the tutorial 1:1 or did you change anything?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Setsuna

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error when compiling SFML2 in MSVS2010
« Reply #5 on: September 08, 2012, 09:51:08 pm »
i havent touch anything, just opened the SLN and compile

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Error when compiling SFML2 in MSVS2010
« Reply #6 on: September 08, 2012, 10:28:33 pm »
So how did you use CMake? Something got messed up with your paths.
For example, why do you have a path like this:
..\..\..\..\Users\Squall\Downloads\LaurentGomila-SFML-6790904\src\SFML\Graphics\Shader.cpp
And then paths you got some like this:
C:\SMFL2\src\SFML\Graphics\CMakeFiles\generate.stamp

I don't really understand how this would happen. Usually I choose ..../SFML as source and ..../SFML/build where to build SFML and then specify with the CMake install prefix where the library should get copied to once build.
Maybe you should take a look again at the official tutorial on how to build SFML with CMake.

Everything works fine on my system, so you've setup something strange somewhere (CMake, VS, ...). :-\
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/