From 3eb03a8422d6d3824bce75ed14f12acbb569b52d Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 18 Aug 2016 17:26:56 +0800 Subject: [PATCH] docs: install dependency for cross-compile to i386 --- docs/COMPILE-NIX.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/COMPILE-NIX.md b/docs/COMPILE-NIX.md index c56e9c45..d924c336 100644 --- a/docs/COMPILE-NIX.md +++ b/docs/COMPILE-NIX.md @@ -74,7 +74,12 @@ To build Unicorn on *nix (such as MacOSX, Linux, *BSD, Solaris): $ UNICORN_QEMU_FLAGS="--python=/path/to/python2" ./make.sh -- To cross-compile Unicorn on 64-bit Linux to target 32-bit binary, run: +- To cross-compile Unicorn on 64-bit Linux to target 32-bit binary, install + libglib2.0-dev for i386. On Ubuntu, this can be done with: + + $ sudo apt-get install libglib2.0-dev:i386 + + Then cross-compile to 32-bit with: $ ./make.sh linux32