MacOS compilation
Contents |
Introduction
This how-to will help you building DFF from sources on Mac OS X. Version used here is Mac OS X Leopard 10.5.5 with an AMD Phenom X4 Processor in 32bits. Latter version should also work, don't hesitate to send me an email ( cma {at} digital-forensic <dot> org ) about your own experience or for any update on this how-to.
Prerequisites
Installer disk images and pre-compiled packages
First, we begin with easiest prerequisites to install.
XCode
It is the developer bundle for Mac OS X, it provides, for example GNU compilers.
Version used here is XCode 3.1.3, DVD image file name is xcode313_2736_developerdvd.dmg.
Installation is like any .dmg image, double click on xcode313_2736_developerdvd.dmg to mount it, and launch XCodeTools.mpkg.
In Installation Type, be careful to select :
- Developer Tools Essentials
- System Tools
- UNIX Development Support
Process with install.
Qt framework
Qt (framework only version) provides graphical library, no need to install Qt SDK.
Version used here is Qt 4.6.2, installer file name is qt-mac-cocoa-opensource-4.6.2.dmg. You can download it from Qt Nokia website.
Again, installation is like any .dmg image, double click on qt-mac-cocoa-opensource-4.6.2.dmg to mount it, and launch Qt.mpkg.
Python
Python is a powerful language used for high level interaction in DFF. Mac OS X is shipped with oldest version of Python, so we need to install at least Python 2.6.
Version used here is Python 2.6.5, installer file name is python-2.6.5-macosx10.3-2010-03-24.dmg. You can download it from Python website (Mac Installer disk image).
Again, installation is like any .dmg image, double click on python-2.6.5-macosx10.3-2010-03-24.dmg to mount it, and launch Python.mpkg.
CMake
CMake provides management of the build and install process on many operating systems.
Version used here is CMake 2.8.1, installer file name is cmake-2.8.1-Darwin-universal.dmg. You can download it from CMake Kitware website (Mac OSX Universal).
Again, installation is like any .dmg image, double click on cmake-2.8.1-Darwin-universal.dmg to mount it, and launch cmake-2.8.1-Darwin-universal.mpkg.
When requested to install command line press Install Command Line Links.
Git
Git is a powerful source code manager, DFF sources are hosted on this kind of SCM, so a Git client is needed.
Version used here is Git 1.7.1, installer file name is git-1.7.1-intel-leopard.dmg. You can download the package from Git for OS X.
Again, installation is like any .dmg image, double click on git-1.7.1-intel-leopard.dmg to mount it, and launch git-1.7.1-intel-leopard.pkg.
MacPorts
FIXME, really needed ?
Needed to fetch earliest version of file command, which provide the magic library to identify files analyzed in DFF.
Source packages
Python Qt bindings
PyQt provides bindings through Python to create Qt graphical interface.
To be continued.
Compilation
~/dff-srcs/ $> cmake . && make