Project

General

Profile

Actions

DevelWin32 » History » Revision 4

« Previous | Revision 4/11 (diff) | Next »
Anonymous, 2006-11-29 06:42


= 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 ===

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/'
  1. 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'
  2. default 'no'
    build_static='yes'
  3. default 'no'
    build_fullstatic='no'
  4. 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.

=== Problems ===

With a get of /trunk/ as of 11/28/2006, and using VS2005, I get: {{{
scons: *** An executable should have exactly one target with the suffix: .exe
}}}
Deleting that section out of the SConscript (it seems to be for building test apps?) gets me a bit farther until: {{{
src\server.c(3) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
}}}
Anyone have any suggestions?

Updated by Anonymous over 17 years ago · 4 revisions