From Openscap
[edit]
Building OpenSCAP on Windows
- The easiest way to compile OpenSCAP on Windows is in cygwin. First install basic set of packages from cygwin distribution plus:
- autoconf automake libtool make gcc
- pcre-devel libxml2-devel libcurl-devel libgrcypt-devel
- swig perl python
- run autotools machinery by autogen.sh
- disable compilation of probes by configure --disable-probes. Unfortunately the probes support is platform dependent and windows code was not implemented yet.
- make build
- you might want to run library self-check by make check
- make install
- the final DLL is called cygopenscap-0.dll and you can link you app to it.
Example: gcc myapp.c -I/path/to/headers -L/path/to/dynamic/library -lcygopenscap-0
If you want to run your app, make sure cygopenscap-0.dll is either in working directory or in PATH variable directories.
