Skip to content
Marshall Whittaker edited this page Dec 23, 2017 · 7 revisions

Note

If you don't want to compile:

Just download a .deb or .rpm from the release stages and install.

dpkg -i ./ansvif_version.deb

or:

dnf install ./ansvif_version.rpm

Compiling ansvif


To compile ansvif you will need:

automake autoconf-archive zlib1g-dev libcrypto++ g++ gcc

From here we can do:

For Linux:
$ autoreconf -fmi
Now run:
$ make check

OpenBSD:
This should work on most systems, if it doesn't, it is likely because it can't find the correct g++ version from ports. You need the version of g++ from ports to support C++11. If it can't automatically find it with the code below, find the version from ports you would like to compile with and change the CXX=yaddayadda to that.
$ CXX=$(find / -name 'eg++' 2>/dev/null | grep ports | head -n 1) AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 autoreconf -fmi Then:
$ make check

For Windows:
(Go to where you installed MinGW-W64 and click mingw-64.bat)
g++.exe src/common.cpp src/bin2hex.cpp src/popen2.cpp src/main.cpp src/help.cpp src/match_fault.cpp src/sys_string.cpp src/man_read.cpp src/randomizer.cpp src/trash.cpp src/log.cpp src/version.h -I./ -I./include -std=c++11 -lstdc++ -lpthread -O2 -o ansvif.exe -static -static-libgcc -static-libstdc++
gcc src/win/printf.c -o printf.exe

If all goes smoothly, it should compile and you should be good to go.