…on a FreeBSD system. I recently needed a modified version of it for a good reason. Only tried for its pdfimages
. Probably works for other components as well.
- Install these packages:
mingw32-bin-msvcrt
mingw32-binutils
mingw32-gcc
- Download, extract, go to
xpdf
source. ./configure --host=mingw32 --target=i686-mingw32msvc --build=i686-linux
make pdfimages
- ???
- Profit!
Whoops, almost forgot one last step. Produced binary from steps above will require additional libraries to start. To make it run with just the binary, rerun the last compile command (from output of make
) with additional arguments: -static-libgcc
and -static-libstdc++
.
[ Reference for configure script arguments | Reference for static build ]