[Cg1] Re: libPNG in XCode setup help

Arsène Pérard-Gayot perard at cg.uni-saarland.de
Sun Oct 30 18:58:19 CET 2016


If I understand correctly, this tutorial is about *installing* libpng  
(i.e. only the .so files, not the header files---reqeuired for  
development). Your include path must to point to the directory  
containing "png.h". To do this, you should set some sort of option in  
XCode that tells "clang" where to look for header files. The command  
line option is "-I<path>", where <path> is the path containing  
"png.h", if that helps.

You could also try to get it through some package manager, like  
Homebrew (http://brew.sh/index_fr.html).

Best regards,

Kathrin Dernbecher <s8kadern at stud.uni-saarland.de> a écrit :

> Hello,
> I have a problem with setting up the project in XCode on MacOS  
> Sierra. I allready installed libPNG but it seems not to work  
> properly because I still have the error that png.h is missing. (I  
> used this guide http://mac-dev-env.patrickbougie.com/libpng/ and  
> http://stackoverflow.com/questions/9351777/linker-error-with-libpng-under-macosx/9354589#9354589)
> Does somebody have a clue what I could do to make it work?
> Thank you :)
> _______________________________________________
> Cg1 mailing list
> Cg1 at cg.uni-saarland.de
> http://mail.cg.uni-saarland.de/mailman/listinfo/cg1

Best regards,
   Arsène Pérard-Gayot

More information about the Cg1 mailing list