Cross-compiling for Windows
Cross-compiling Windows binaries from a Linux development machine is a slightly more complicated process. Firstly you will need to install MingW and some other dependencies:
Next you will need to download Yara sources. Use the latest available version, which at the time of this writing is 4.0.1:
Unpack the archive and export YARA_SRC
to the newly-created folder:
Next you need to bootstrap Yara sources and compile them with MingW. These are the instructions to compile it for 32bit:
Now we can download and build go-yara
for 32bit using the following command:
Now you can compile Kraken using:
If you get errors such as undefined reference to 'yr_compiler_add_file'
you might need to pass the PKG_CONFIG_PATH
variable:
Last updated