That error indicates that libpng is not installed (or at least the default
include path does not know where to find png.h, and installing libpng will
typically put a copy of png.h somewhere in the default include path).
Unfortunately, I don't know how to install things in macports. Any Mac users
out there want to chime in?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2012-06-30
Kinda late response here, but maybe someone will find this helpful:
sudo port install libpng
To get it to build, I edited every Makefile and changed /sw/ to /opt/local/:
Then build and install - it all ends up in /usr/local/bin,
/usr/local/include and /usr/local/lib
make opt
make install
I did not build the demo apps since MacPorts, bless its little heart, wanted
to install every know package under the sun when I tried installing libsdl
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
how does one build waffles with the libraries installed thru macports?
Building GClasses.a...
rm -f ../../lib/GClasses.a
umask 0;g++ -D_THREAD_SAFE -DDARWIN -I/sw/include -no-cpp-precomp -O3 -c
GImage.cpp -o ../../obj/GClasses/opt/GImage.o
GImage.cpp:33:18: error: png.h: No such file or directory
That error indicates that libpng is not installed (or at least the default
include path does not know where to find png.h, and installing libpng will
typically put a copy of png.h somewhere in the default include path).
Unfortunately, I don't know how to install things in macports. Any Mac users
out there want to chime in?
Kinda late response here, but maybe someone will find this helpful:
sudo port install libpng
To get it to build, I edited every Makefile and changed /sw/ to /opt/local/:
find . -type f -exec fgrep -l '/sw/' {} \; | xargs edit
Then build and install - it all ends up in /usr/local/bin,
/usr/local/include and /usr/local/lib
make opt
make install
I did not build the demo apps since MacPorts, bless its little heart, wanted
to install every know package under the sun when I tried installing libsdl