Development:Developer Build
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
- Get the source:
wget http://google-glog.googlecode.com/files/glog-0.3.0.tar.gz
- Unpack the source:
tar xvzf glog-0.3.0.tar.gz
- Build and install:
cd glog-0.3.0 ./configure && make && sudo make install
googletest
- Get the source:
wget http://googletest.googlecode.com/files/gtest-1.4.0.tar.gz
- Unpack the source:
tar xvzf gtest-1.4.0.tar.gz
- Get the patch:
wget http://www.jmglov.net/opensource/src/gtest-1.4.0_pkg-config.patch
- Patch the source:
patch -p0 <gtest-1.4.0_pkg-config.patch
- Build and install:
cd gtest-0.4.0 ./configure && make && sudo make install
googlemock
- Get the source:
wget http://googlemock.googlecode.com/files/gmock-1.4.0.tar.gz
- Unpack the source:
tar xvzf gmock-1.4.0.tar.gz
- Get the patch:
wget http://www.jmglov.net/opensource/src/gmock-1.4.0_pkg-config.patch
- Patch the source:
patch -p0 <gmock-1.4.0_pkg-config.patch
- Build and install:
cd gmock-0.4.0 ./configure && make && sudo make install