SFML community forums

Help => Graphics => Topic started by: Juanxo on August 24, 2010, 09:02:26 pm

Title: Error when compiling sfml-graphics
Post by: Juanxo 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
Title: Error when compiling sfml-graphics
Post by: Laurent 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.
Title: Error when compiling sfml-graphics
Post by: Juanxo on August 24, 2010, 11:52:57 pm
i just have downloaded sfml2snapshot from the main sfml page.
Title: Error when compiling sfml-graphics
Post by: Laurent on August 25, 2010, 08:01:56 am
I checked again, and png.h is definitely not included. Try to download it again.
Title: Error when compiling sfml-graphics
Post by: Juanxo on August 25, 2010, 06:10:23 pm
yes, you were right. I probably used some older version, my fault

Thanks Laurent