When compiling FreeImage/libfreeimage on Mac OS X, some changes to the makefile are needed for it to work. This guide was written on 2019-06-16 and I was using the trunk from r1815
. (The "trunk" is basically SVN's version of the master branch, for those of you who only know Git.)
Before you start, did you know you can use Homebrew to avoid having to compile it at all? It's available here:
brew install freeimage
For those who want to build it, read on.