Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo " https://github.com/unicorn-engine/unicorn/blob/master/docs/COMPILE-NIX.md
echo
echo "If you're on Ubuntu, you want to do this first:"
echo " sudo apt-get update"
echo " sudo apt-get install python-pip build-essential git cmake python-dev libglib2.0-dev"
echo " sudo apt-get install python3-pip python-is-python3 build-essential git cmake python-dev libglib2.0-dev"
echo
echo "If you're on a Mac, do this first:"
echo " brew install pkg-config glib cmake"
Expand Down Expand Up @@ -39,7 +39,10 @@ echo
echo "[*] Building Unicorn"
cd "$build"
git clone https://github.com/unicorn-engine/unicorn.git
cd unicorn && ./make.sh
cd unicorn && \
mkdir build; cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
make

echo
echo "[*] Installing projects and Python bindings (using sudo)"
Expand All @@ -49,7 +52,7 @@ cd "$build/keystone/bindings/python" && sudo make install
cd "$build/capstone" && sudo make install
cd "$build/capstone/bindings/python" && sudo make install

cd "$build/unicorn" && sudo ./make.sh install
cd "$build/unicorn/build" && sudo make install
cd "$build/unicorn/bindings/python" && sudo make install

which ldconfig &>/dev/null && sudo ldconfig
Expand All @@ -58,4 +61,4 @@ echo
echo "All done!"
echo
echo -n "Testing Python import: "
python -c "import capstone, keystone, unicorn; capstone.CS_ARCH_X86, unicorn.UC_ARCH_X86, keystone.KS_ARCH_X86; print 'works.'"
python -c "import capstone, keystone, unicorn; capstone.CS_ARCH_X86, unicorn.UC_ARCH_X86, keystone.KS_ARCH_X86; print('works.')"