(1) Download ollvm
https://github.com/obfuscator-llvm/obfuscator/tree/llvm-4.0
git clone very slow, so just download zip file.
(2) unzip llvm-4.0.zip
(3) compile ollvm
cd obfuscator-llvm-4.0
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE:String=Release ../
There's something error.
CMake Error at cmake/modules/AddLLVM.cmake:1163 (add_custom_target):
add_custom_target cannot create target "check-llvm-bindings-ocaml" because
another target with the same name already exists. The existing target is a
custom target created in source directory
"/home/xxxx/下载/obfuscator-llvm-4.0/test". See documentation for
p