tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaus Wienert" <wien...@rheinland-online.com>
Subject Howto compile mod_jk for windows systems for Apache and mod_jk2 for Apache2!
Date Thu, 27 Nov 2003 11:17:37 GMT
Its not as simple as I thought, but I have done it.

0. This is a short, short, very short howto

1. Prerequisites
Microsoft Visual C++ 6.0
Apache 1.3 or Apache 2
Ant (http://ant.apache.org/)
JkAnt
(http://www.apache.org/dist/jakarta/tomcat-4/v4.1.29/src/jakarta-tomcat-conn
ectors-4.1.29-src.zip or CVS in jk/jkant)

2. MOD_JK
2.1. copy jkant.jar to jk/build/lib/jkant.jar

2.2. get mod_jk-1.2.5
(http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jakarta-tomc
at-connectors-jk-1.2.5-src.zip)

2.3. create jk/build.properties and run ant on jk/native/build.xml

#build.properties
#apache2.home=C:/Apache2
apache13.home=C:/Apache
apr.home=${apache2.home}
apr.include=${apr.home}/include
apr-util.include=${apr.home}/include
apr.lib=${apr.home}/lib
apr-util.lib=${apr.home}/lib
apache2.lib=${apache2.home}/lib
so.debug=false
so.optimize=true
so.profile=false
mssdk.home=c:/Programme/Microsoft Visual Studio/VC98
build.compiler.base=${mssdk.home}
build.compiler.cc=${mssdk.home}/bin/cl
build.compiler.ld=${mssdk.home}/bin/link

2.4. if you see warnings in your logs

Loaded DSO X:/path/mod_jk.dll uses plain Apache 1.3 API, this module might
crash under EAPI! (please recompile it with -DEAPI)

add to build.xml at target apache13

<def name="EAPI" />

2.5. you can find mod_jk.dll in jk/build/jk/apache13

3. MOD_JK2
3.1. copy jkant.jar to jk/build/lib/jkant.jar

3.2. get mod_jk-1.2.5
(http://www.apache.org/dist/jakarta/tomcat-connectors/jk2/source/jakarta-tom
cat-connectors-jk2-2.0.2-src.zip)

3.3. create jk/build.properties and run ant on jk/native2/build.xml

#build.properties
apache2.home=C:/Apache2
#apache13.home=C:/Apache
apr.home=${apache2.home}
apr.include=${apr.home}/include
apr-util.include=${apr.home}/include
apr.lib=${apr.home}/lib
apr-util.lib=${apr.home}/lib
apache2.lib=${apache2.home}/lib
so.debug=false
so.optimize=true
so.profile=false
mssdk.home=c:/Programme/Microsoft Visual Studio/VC98
build.compiler.base=${mssdk.home}
build.compiler.cc=${mssdk.home}/bin/cl
build.compiler.ld=${mssdk.home}/bin/link

3.4. if you see compile errors

file:X:/path/jk/native2/build.xml:138: Execute failed: java.io.IOException:
CreateProcess: "c:\Programme\Microsoft Visual Studio\VC98\bin\rc" -r -fo ...

change in target init.win32.mc

<exec executable="${mssdk.home}/bin/rc" dir="common" >

to

<exec executable="${mssdk.home}/../Common/MSDev98/bin/rc" dir="common" >

3.5. you can find mod_jk.dll in jk/build/jk2/apache2


Klaus Wienert


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message