compiling cfdg under mac os x
Posted: Mon Dec 17, 2012 5:52 pm
I wanted a command line cfdg to automate some experiments, and thought I should share the tweaking required to build it under mac os x.
The main problem seems to be that ffmpeg requires gcc, which I could have used, but instead of that, I decided to try and build it using XCode's clang compiler, and turning off the ffmpeg part of the build using the instructions in src-ffmpeg/README.txt. These instructions need updating a little - the Makefile tweaks don't quite purge all reference to ffmpeg and so the build still chokes. I think it was the LIB_DIRS variable that killed it (the current src-ffmpeg/lib points nowhere), but I also trimmed INC_DIRS.
The only other tweak I had to make was due to the fact that my copy of libpng is from fink, so in the end I had LIB_DIRS = /sw/lib, but whether this is worth documenting I will leave up to you.
The main problem seems to be that ffmpeg requires gcc, which I could have used, but instead of that, I decided to try and build it using XCode's clang compiler, and turning off the ffmpeg part of the build using the instructions in src-ffmpeg/README.txt. These instructions need updating a little - the Makefile tweaks don't quite purge all reference to ffmpeg and so the build still chokes. I think it was the LIB_DIRS variable that killed it (the current src-ffmpeg/lib points nowhere), but I also trimmed INC_DIRS.
The only other tweak I had to make was due to the fact that my copy of libpng is from fink, so in the end I had LIB_DIRS = /sw/lib, but whether this is worth documenting I will leave up to you.