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

Author Topic: Error when compiling sfml-graphics  (Read 3206 times)

0 Members and 1 Guest are viewing this topic.

Juanxo

  • Newbie
  • *
  • Posts: 21
    • View Profile
Error when compiling sfml-graphics
« on: August 24, 2010, 09:02:26 pm »
Hi:

First, congrats to switch to cmake.
I'm trying to build sfml with cmake, and I'm getting errors when building Graphics subsystem

Code: [Select]

1>------ Build started: Project: sfml-graphics, Configuration: Debug Win32 ------
1>  ImageLoader.cpp
1>..\..\..\..\src\SFML\Graphics\ImageLoader.cpp(35): fatal error C1083: Cannot open include file: 'png.h': No such file or directory


I'm using vs2010 and Win7.

Am i doing something wrong, or it's a bug?

Thx

Edit: I forgot to post in Graphics subforum. Sorry

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Error when compiling sfml-graphics
« Reply #1 on: August 24, 2010, 11:14:02 pm »
png.h is not included anymore in this file, you probably did something wrong when you updated your working copy.
Laurent Gomila - SFML developer

Juanxo

  • Newbie
  • *
  • Posts: 21
    • View Profile
Error when compiling sfml-graphics
« Reply #2 on: August 24, 2010, 11:52:57 pm »
i just have downloaded sfml2snapshot from the main sfml page.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Error when compiling sfml-graphics
« Reply #3 on: August 25, 2010, 08:01:56 am »
I checked again, and png.h is definitely not included. Try to download it again.
Laurent Gomila - SFML developer

Juanxo

  • Newbie
  • *
  • Posts: 21
    • View Profile
Error when compiling sfml-graphics
« Reply #4 on: August 25, 2010, 06:10:23 pm »
yes, you were right. I probably used some older version, my fault

Thanks Laurent