Compile LibVex on Windows

In order to use LibVex in Kam1n0, we need to compile libVex from valgrind on windows.
Dependencies:

  • mingw64 with msys tool installed
  • add mingw64/bin and msys/bin to environment variable

Clone libvex source (from angr repo).

  • git clone git@github.com:angr/vex

We need to update the Makefile-gcc. Specifically we need to define cc and ar.

1
2
3
4
5
6
#ifndef CC
CC = gcc
#endif
#ifndef AR
AR = ar
#endif

Also we need to re-define HWord in libvex to long long int (64bit)
Then just hit make; and we can find the libvex.a file in the vex-master directory.