views:

39

answers:

2

Hello, I am new to iphone game development so apologies if I ask something stupid. =( What I'm trying to do is to use libpng in my opengl project to load sprites using xcode. I've downloaded the package of libpng from internet and added its source to my project but when I try to build, it gives this error: "Command Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1" Any help will be appreciated.

A: 

You obviously don't have the gcc-4.2 executable residing in the Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ directory. Tune your IDE directories to point to the correct locations.

mbaitoff
A: 

Thanx for ur tym guys... But the problem was "I missed to add libz.dylib framework to my project".

Hope it may help someone having the same problem like me. =)

Gr8 Warrior