I've managed to decode the Broken Sword smacker files into PNG + WAV using Virtual PC (which was actually incredibly fast - presumably because it was writing 1000+ png files to RAM rather than to a physical harddrive), and now I'm trying to compile the latest tools to use encode_dxa.
SVN Revision 23928.
When I try to compile, I get the following error:
encode_dxa.cpp:27:17: error: png.h: No such file or directory
Followed by a whole bundle of other errors when the compiler looks for the relevant file. To fix this, I installed libpng and libpng3 + libpng3-shlibs in Fink, and /sw/include now has a png.h.
However, compilation still isn't seeing it. I've tried manually editing the cpp file to point at the png.h file - then succeeds, but fails at the linking stage, as it doesn't like -lpng.
Any suggestions, short of sticking a symbolic link into /usr/include? I'm sure there's something very simple that I'm missing.
Problems compiling SVN tools on OS X PPC + Fink
Moderator: ScummVM Team
Simply type
export CPPFLAGS=-I/sw/include
export LDFLAGS=-L/sw/lib
before invoking "make" (assuming you use bash, other shells may need other commands). In fact I keep those in my .profile. Alternatively, you could edit the Makefile to add the -I / -L switches to the appropraite places.
This is also covered by the Fink FAQ, BTW: http://fink.sourceforge.net/faq/usage-g ... ile-myself
export CPPFLAGS=-I/sw/include
export LDFLAGS=-L/sw/lib
before invoking "make" (assuming you use bash, other shells may need other commands). In fact I keep those in my .profile. Alternatively, you could edit the Makefile to add the -I / -L switches to the appropraite places.
This is also covered by the Fink FAQ, BTW: http://fink.sourceforge.net/faq/usage-g ... ile-myself