[squid-dev] MinGW build of Squid-3.5

Amos Jeffries squid3 at treenet.co.nz
Tue Sep 30 07:32:41 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If anyone is interested, here is how to build Squid-3.HEAD using the
Debian MinGW cross-compiler.

There are a lot of bugs in the stable branches making it not worth
trying there. But 3.HEAD/trunk has been cleaned up so that it only
needs the below ./configure options with a minimum of fancy extras.

There are a half-dozen compile errors still appearing later in the
process, but we are very close to having a build for trunk (and thus 3.5).

The helpers, squidclient and cachemgr.cgi tools all apparently build
fine. Although I have not yet successfully managed to copy the .exe
and run any of them natively in my Windows machine. Any assistance
figuring that out is *very* welcome.


# Debian Packages Required:
#
# mingw-w64
#       provides GCC cross-compiler. GCC 4.9.1 or later required.
#
# mingw-w64-tools
#       provides pkg-config and other build-time tools used by autoconf
#

# Build:

cd tpl/
../configure \
        --host=i686-w64-mingw32 \
        CXXFLAGS="-DWINVER=0x601 -D_WIN32_WINNT=0x601" \
        CFLAGS="-DWINVER=0x601 -D_WIN32_WINNT=0x601" \
        BUILDCXX="g++" \
        BUILDCXXFLAGS="-DFOO" \
        --enable-build-info="Windows (MinGW cross-build)"

make -k

## NP: the '-k' here is to keep building even if errors occur. This
lets the process get to compiling the tools/ directory even though the
main squid.exe still has those few issues. You can run make -k twice
to get a cleaner output on the second build with the errors easily
visible.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUKlyXAAoJELJo5wb/XPRjbIwH/0btz0eyO9fgKl+6sRldB/PQ
CBqGzeTc/pPvEi8LrXxUteSEiZmSyWLvrW6lBDWnh3StL4hPxhxGAoorPK9JUIXv
mMYRfuqFcpAqnyD+BtW10llh6QZk9ArsURc7hIHgRwKEWtojUAilLesmVHeE3J/N
boH6/kk4enqqRyppc/NXrzmzzZgZ+o+aQR22E36LEPR9FJW/XQn/QEbMajQxfOnF
2Z09QsyoDFU3FOonNkzSYpp316b3Pm0SRucwY5gAgBfPOr0NjGUsu98RMU90XMcH
HSvmuVkLc/IssueoZ0fgIHzEyB/9MSkVUHARBl48Ze4YBWT+ea42/xmzuNX3iZQ=
=CNNs
-----END PGP SIGNATURE-----


More information about the squid-dev mailing list