DevelWin32 » History » Revision 2
Revision 1 (jan, 2006-07-04 13:38) → Revision 2/11 (jan, 2006-07-04 14:00)
= Compiling Lighty on win32 = == cygwin == It just works as on Unix. == native win32 == Starting with lighty 1.4.11-svn the source compiles on windows. Not all parts are ported, but it works in general. === Requirements === * Visual C++ (e.g. [http://msdn.microsoft.com/visualc/vctoolkit2003/ Visual C++ Toolkit] or [http://msdn.microsoft.com/vstudio/express/visualc/download/ Visual C++ 2005 Express]) Toolkit) * the win32-SDK from the [http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Platform SDK] SDK * [http://www.scons.org/ SCons] SCons (scons 0.96.91 or higher) which requires [http://www.python.org/ Python] * Python 2.4 or higher SCons needs a configfile in the same folder as the SConstruct file. My config.py file looks like this: {{{ prefix='c:/lighttpd-scons/' VC_TOOLKIT_HOME='c:/Programme/Microsoft Visual C++ Toolkit 2003/' PSDK_HOME='c:/Programme/Microsoft Platform SDK/' # with_mysql='/usr/local/mysql/bin/mysql_config' with_pcre='no' with_openssl='no' with_gzip='no' with_bzip2='no' with_memcache='no' with_sqlite3='no' with_xml='no' # default 'no' build_static='yes' # default 'no' build_fullstatic='no' # default 'yes' build_dynamic='no' }}} All the with_* options have to 'no' for now, build_static is the only way that works and VC_TOOLKIT_HOME and PSDK_HOME have to be set to the locations of the Visual C++ Toolkit and the Platform SDK. {{{ $ scons }}} will build the lighty (lighttpd-semi-static.exe) in the 'build' directory.