Although it’s only useful for compressing animation tables into Panda’s binary bam format, I had to make the following changes for FFTW support.
In my Config.pp:
#define FFTW_IPATH /opt/local/include #define FFTW_LPATH /opt/local/lib #define FFTW_LIBS drfftw
In panda/src/mathutil/fftCompressor.cxx I had to change the include from “rfftw.h” to “drfftw.h”.
Again, I’m including the diff for completeness.
--- panda3d-1.5.0/panda/src/mathutil/fftCompressor.cxx 2007-06-22 05:33:47.000000000 -0700 +++ panda3d-1.5.0-patch/panda/src/mathutil/fftCompressor.cxx 2008-03-28 17:58:13.000000000 -0700 @@ -34,7 +34,7 @@ #ifdef howmany #undef howmany #endif -#include "rfftw.h" +#include "drfftw.h" // These FFTW support objects can only be defined if we actually have // the FFTW library available.
These changes appear to be necessary because the library and include files are named differently when installed from MacPorts.