Difference between revisions of "Xebra Apache Module Windows"

(How to compile mod_xebra on windows)
(How to compile mod_xebra on windows (under construction))
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
[[Xebra About|About]] | [[Xebra Installation|Installation]] |  [[Xebra Documentation|Documentation]] |  [[Xebra Tutorial|Tutorials]] | [[Xebra FAQ|Frequently Asked Questions]]
 
[[Xebra About|About]] | [[Xebra Installation|Installation]] |  [[Xebra Documentation|Documentation]] |  [[Xebra Tutorial|Tutorials]] | [[Xebra FAQ|Frequently Asked Questions]]
  
=Whats the difference between mod_xebra for linux and mod_xebra for windows?=
 
  
* Windows version uses winsock2 instead of sockets for communication with xebra server
 
* ...
 
  
 
=How to compile mod_xebra on windows (under construction)=
 
=How to compile mod_xebra on windows (under construction)=
Line 15: 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, browse to the mod_xebra folder 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 /MT /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>

Latest revision as of 14:57, 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, browse to the mod_xebra folder 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 /MT /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"