Building on Mac OS X

  • install xquartz
  • install Xcode (includes the command line tools app)
  • install macports

Install Dependencies

port install automake autoconf libsdl libsdl_gfx libsdl_image libsdl_mixer lua gettext libiconv intltool mpfr

NOTE: gcc build port install gcc49 gcc_select
NOTE: gcc49/mp_gcc49 can be replaced with different ver in MacPorts

Install GCC

port select -set gcc mp_gcc49

NOTE: gcc_select is an extra package in MacPorts that allows "port select" statement on gcc

Install for Documentation:

port install doxygen graphviz

Build the Game

cd to extracted FDRPG folder


./configure --with-apple-opengl-framework CFLAGS="-I/opt/local/inlcude" LDFLAGS="-L/opt/local/lib"

NOTE: need the CFLAGS and LDFLAGS to tell make where to find headers/libs.

make doc # <—- documentation


XCode: MacPorts:

pkg-config? librt - realtime?

ac_nonexistent.h -> right compiler -

boost - autotools

after build repo shows modified: ../../graphics/obstacles/obstacles_shadows_atlas1.png modified: ../../graphics/obstacles/shadow_atlas.txt

./configure CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" CXX=clang++

build fddnm w/ gcc Undefined symbols for architecture x86_64: “boost::…”