Frida requires the following packages for building
+* cmake
+* pkg-config
* LLVM 3.5
-* Qt >= 5.1
-* guile-2.0
+* Qt5 (5.2 or newer preferred)
+* QuaZIP
* log4cxx
-* quazip
-* gtest
-* gmock
-* cmake
+* guile-2.0
+* google-mock
+* swig
+* Boost (signals2)
+* libedit (through LLVM)
On a debian (jessie) system this works with the following command:
.. code-block:: bash
- apt-get install libquazip-qt5-dev liblog4cxx10-dev qtbase5-dev guile-2.0-dev google-mock cmake g++ llvm-3.5-dev
+ apt install cmake pkg-config llvm-3.5-dev libquazip-qt5-dev liblog4cxx10-dev qtbase5-dev guile-2.0-dev google-mock swig libboost-dev libedit-dev
+
Note that version 3.5 of LLVM is required.
mkdir build
cd build
- cmake ..
+ cmake -DCMAKE_BUILD_TYPE=Release ..
make -j
Which should generate you a frida binary. If you don't want to install
gmoch/gtest you need to remove the stanzas from CMakeList and not run
the tests.
+
+Running
+=======
+
+If you want to run frida from the build directory instead of
+installing it, you need to export ``LD_LIBRARY_PATH`` pointing to
+your build directory so frida can find it's plugins and shared
+libraries. Run it like
+
+.. code-block:: bash
+
+ export LD_LIBRARY_PATH=`pwd`/build
+ build/frida