Difference between revisions of "Xebra Apache Module Windows"

(Whats the difference between mod_xebra for linux and mod_xebra for windows?)
(How to compile mod_xebra on windows (under construction))
Line 12: Line 12:
 
* Build mod_xebra
 
* Build mod_xebra
  
 
+
If you compiled with Visual Studio 2008, mod_xebra will depend on msvcr90d.dll. If you want to avoid that you can either compile with a previous version of VC or:
-> If you compile with VS2008 (VC9), mod_xebra will depend on [...]
+
* Install Microsoft Windows SDK 6.0
 
+
* Set APACHE_SRC env var (you need to have compiled the apache libs)
vc6:
+
* Open the SDK 6.0 Cmd Shell and type
 
+
 
<code>
 
<code>
cl.exe /Od /I "C:\apache_src\srclib\apr-util\include" /I "C:\apache_src\srclib\apr\include" /I "C:\apache_src\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_WINDLL" /FD /EHsc /MD /W3 /c mod_xebra.c
+
cl.exe /Od /I "%APACHE_SRC%\srclib\apr-util\include" /I "%APACHE_SRC%\srclib\apr\include" /I "%APACHE_SRC%\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_WINDLL" /FD /EHsc /MD /W3 /c mod_xebra.c
link.exe /OUT:"mod_xebra.so" /DLL /DYNAMICBASE /NXCOMPAT /MANIFEST /MANIFESTFILE:"mod_xebra.so.intermediate.manifest"  /SUBSYSTEM:WINDOWS ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "..\..\..\apache_src\debug\libhttpd.lib" "..\..\..\apache_src\srclib\apr\debug\libapr-1.lib" "..\..\..\apache_src\srclib\apr-util\debug\libaprutil-1.lib" "mod_xebra.obj"
+
link.exe /OUT:"mod_xebra.so" /DLL /DYNAMICBASE /NXCOMPAT /MANIFEST /MANIFESTFILE:"mod_xebra.so.intermediate.manifest"  /SUBSYSTEM:WINDOWS ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "%APACHE_SRC%\debug\libhttpd.lib" "%APACHE_SRC%\srclib\apr\debug\libapr-1.lib" "%APACHE_SRC%\srclib\apr-util\debug\libaprutil-1.lib" "mod_xebra.obj"
 
</code>
 
</code>

Revision as of 13:19, 31 July 2009

About | Installation | Documentation | Tutorials | Frequently Asked Questions


How to compile mod_xebra on windows (under construction)

  • Get apache source 2.2.11 for windows and extract
  • Load the apache project into VS (for VS2008 you need to do a conversion of the project files, ask google about 'cvtdsp.pl')
  • Add project mod_xebra to apache solution
  • Select dependencies for mod_xebra: libapr, libaprutil, libhttpd
  • Depending on where you extracted apache source, you have to adapt the additional includes property of the xebra_mod project
  • Build mod_xebra

If you compiled with Visual Studio 2008, mod_xebra will depend on msvcr90d.dll. If you want to avoid that you can either compile with a previous version of VC or:

  • Install Microsoft Windows SDK 6.0
  • Set APACHE_SRC env var (you need to have compiled the apache libs)
  • Open the SDK 6.0 Cmd Shell and type
cl.exe /Od /I "%APACHE_SRC%\srclib\apr-util\include" /I "%APACHE_SRC%\srclib\apr\include" /I "%APACHE_SRC%\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_WINDLL" /FD /EHsc /MD /W3 /c mod_xebra.c
link.exe /OUT:"mod_xebra.so" /DLL /DYNAMICBASE /NXCOMPAT /MANIFEST /MANIFESTFILE:"mod_xebra.so.intermediate.manifest"  /SUBSYSTEM:WINDOWS ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "%APACHE_SRC%\debug\libhttpd.lib" "%APACHE_SRC%\srclib\apr\debug\libapr-1.lib" "%APACHE_SRC%\srclib\apr-util\debug\libaprutil-1.lib" "mod_xebra.obj"