TODO: Explain what we are going to do here.
When cloning this project, be sure to use the --recurse-submodules
flag. Using HTTPS:
git clone https://github.com/tawituthai/Cpp-Capstone.git --recurse-submodules
- cmake >= 3.7
- All OSes: click here for installation instructions
- make >= 4.1 (Linux, Mac), 3.81 (Windows)
- Linux: make is installed by default on most Linux distros
- Mac: install Xcode command line tools to get make
- Windows: Click here for installation instructions
- gcc/g++ >= 5.4
- Linux: gcc / g++ is installed by default on most Linux distros
- Mac: same deal as make - install Xcode command line tools
- Windows: recommend using MinGW
- IO2D
- Installation instructions for all operating systems can be found here
- This library must be built in a place where CMake
find_package
will be able to find it
These installation steps assume APT package manager on Ubuntu Linux. Installation steps:
- Refresh apt:
sudo apt update
- Install GCC:
sudo apt install build-essential
- Install CMake:
sudo apt install cmake
- Install Cairo:
sudo apt install libcairo2-dev
- Install graphicsmagick:
sudo apt install libgraphicsmagick1-dev
- Install libpng:
sudo apt install libpng-dev
- Clone this repo.
- Make a build directory in the top level directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./capstone
.