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