Building on MacOSX Using Autotools

  • This has been tested on Mac OS X 10.9.4 Build: 13E28
  • Last revision on which this method was tested: r3348
  • This wiki page assumes that installation prefix is /usr/local and your build-dir is ~/gnu/exiv2
  1. Install gcc (optional, required only if you want to use gcc)
    sudo port install gcc49
  2. Fetch the source code:
    mkdir -p ~/gnu/exiv2
    cd ~/gnu/exiv2
    svn checkout svn://
    cd trunk
  3. Build exiv2
    make config
    ./configure CC=gcc-mp-4.9 CXX=g++-mp-4.9  # to use clang: ./configure CC=clang CXX=clang++
    make                                      # make CXXFLAGS=-ggdb for debug
    sudo make install
  4. Building samples
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    make samples
  5. Build tests.
    • To execute tests:
      cd ~/gnu/exiv2/trunk
      make tests
    • Running other test suites

Updated by Nehal J Wani about 7 years ago ยท 2 revisions