osx - Compile a C program with libpng on Mac OS X -
i have little utility wrote in c uses libpng. under linux, install libpng-dev , "gcc myapp.c /usr/lib/libpng.so -o myapp". in mac os x, have xcode tools installed, believe includes libpng. link against, , need specify include path png.h?
try /usr/x11/include/png.h - you'll find libs in ../lib ( or /usr/x11/lib ) well.
edit mavericks doesn't appear have anymore. may need use homebrew or macports install libpng.
Comments
Post a Comment