Development:Developer Build

From Adonthell
Revision as of 10:26, 26 February 2012 by Ksterker (talk | contribs) (move developer build specific info to its own page ... still a stub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

During development, it can be helpful to include the -DDEVBUILD=1 (for CMake) or --enable-devbuild (for autotools) parameter in the configure step to enable unit tests and turn off optimization, which will make debugging much easier.

Additional Dependencies

google-glog, googletest, and googlemock require special preparation, as only googletest seems to be currently packed for Ubuntu, and the packaged version is well out of date.

google-glog

  1. Get the source:
    wget http://google-glog.googlecode.com/files/glog-0.3.0.tar.gz
  2. Unpack the source:
    tar xvzf glog-0.3.0.tar.gz
  3. Build and install:
    cd glog-0.3.0
./configure && make && sudo make install

googletest

  1. Get the source:
    wget http://googletest.googlecode.com/files/gtest-1.4.0.tar.gz
  2. Unpack the source:
    tar xvzf gtest-1.4.0.tar.gz
  3. Get the patch:
    wget http://www.jmglov.net/opensource/src/gtest-1.4.0_pkg-config.patch
  4. Patch the source:
    patch -p0 <gtest-1.4.0_pkg-config.patch
  5. Build and install:
    cd gtest-0.4.0&#13;./configure && make && sudo make install

googlemock

  1. Get the source:
    wget http://googlemock.googlecode.com/files/gmock-1.4.0.tar.gz
  2. Unpack the source:
    tar xvzf gmock-1.4.0.tar.gz
  3. Get the patch:
    wget http://www.jmglov.net/opensource/src/gmock-1.4.0_pkg-config.patch
  4. Patch the source:
    patch -p0 <gmock-1.4.0_pkg-config.patch
  5. Build and install:
    cd gmock-0.4.0&#13;./configure && make && sudo make install