root/trunk/doc/build-win32.txt

Revision 1657, 2.3 kB (checked in by jan, 18 months ago)

added build-instructions and missing getopt() replacement for windows

  • Property svn:eol-style set to native
Line 
1Big thanks for Ben Harper (rogojin at gmail.com) for initial work and little help to get first setups.
2
3
4Prerequisities:
5
6First you need build environment. I recommend to get Visual Studio Express C++ from Microsoft.
7Then you need Platform SDK for Windows.
8
9CMake is used to build (http://www.cmake.org)
10
11And then you need few libraries to make Lighty work well:
12pkg-config (prebuilt can be found at: http://www.gimp.org/~tml/gimp/win32/pkg-config-0.20.zip)
13
14libg-2.0 library  (prebuilt can be found at: http://ftp.gtk.org/pub/glib/2.12/win32/)
15Don't forget to download dependencies also!
16
17PCRE library (Psyon provides prebuilt: http://www.psyon.org/projects/pcre-win32/index.php)
18
19ZLib (You can get one from http://www.zlib.net/ )
20
21Current build doesn't support this yet, but good to know:
22
23OpenSSL (Shining Light Productions provides nice prebuilt set: http://www.slproweb.com/products/Win32OpenSSL.html)
24
25Install all libraries under same root, for example c:\sys\ - you need to separate PCRE .lib in "lib" dir, includes in "include" dir and
26
27Setting up environment:
28
29After installing you need few environments to setup. I recommend to make following batch files.
30Update paths as propriate:
31
32----------------------------------------------------------------------------------------------------
33
34cmakeenv.bat:
35
36@echo off
37
38set PATH=C:\sys\bin\;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin;%PATH%
39set INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;%INCLUDE%
40set LIB=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;%LIB%
41set PKG_CONFIG_PATH=c:\sys\lib\pkgconfig
42
43 if not exist "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" goto missing
44 echo call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
45 call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
46 goto :eof
47
48 :missing
49 echo Missing file
50 echo "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
51 goto :eof
52
53----------------------------------------------------------------------------------------------------
54
55configure.bat:
56
57SET CMAKE_INCLUDE_PATH=c:\sys\include
58SET CMAKE_LIBRARY_PATH=c:\sys\lib
59
60----------------------------------------------------------------------------------------------------
61
62Run from commandline:
63
64cmake -G"NMake Makefiles" .
65
66or run cmakesetup to use GUI...
Note: See TracBrowser for help on using the browser.