You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2008/02/13 18:10:08 UTC

svn commit: r627530 - in /logging/log4cxx/trunk/src: ant/find-apr-util.xml ant/find-apr.xml ant/find-libesmtp.xml site/apt/building/ant.apt site/apt/building/autotools.apt

Author: carnold
Date: Wed Feb 13 09:10:03 2008
New Revision: 627530

URL: http://svn.apache.org/viewvc?rev=627530&view=rev
Log:
LOGCXX-75: Improve/document Ant build on cygwin

Modified:
    logging/log4cxx/trunk/src/ant/find-apr-util.xml
    logging/log4cxx/trunk/src/ant/find-apr.xml
    logging/log4cxx/trunk/src/ant/find-libesmtp.xml
    logging/log4cxx/trunk/src/site/apt/building/ant.apt
    logging/log4cxx/trunk/src/site/apt/building/autotools.apt

Modified: logging/log4cxx/trunk/src/ant/find-apr-util.xml
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/ant/find-apr-util.xml?rev=627530&r1=627529&r2=627530&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/ant/find-apr-util.xml (original)
+++ logging/log4cxx/trunk/src/ant/find-apr-util.xml Wed Feb 13 09:10:03 2008
@@ -287,6 +287,9 @@
     <condition property="apr-util.include.dir" value="${apr-util.dir}/include">
         <available file="${apr-util.dir}/include/${apr-util.sample.h}"/>
     </condition>
+    <condition property="apr-util.include.dir" value="${apr-util.dir}/../usr/include/ap&#x72;-1">
+        <available file="${apr-util.dir}/../usr/include/ap&#x72;-1/${apr-util.sample.h}"/>
+    </condition>
     <condition property="apr-util.include.dir" value="${apr-util.src.dir}/include">
         <available file="${apr-util.src.dir}/include/${apr-util.sample.h}"/>
     </condition>

Modified: logging/log4cxx/trunk/src/ant/find-apr.xml
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/ant/find-apr.xml?rev=627530&r1=627529&r2=627530&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/ant/find-apr.xml (original)
+++ logging/log4cxx/trunk/src/ant/find-apr.xml Wed Feb 13 09:10:03 2008
@@ -287,6 +287,9 @@
     <condition property="apr.include.dir" value="${apr.dir}/include">
         <available file="${apr.dir}/include/${apr.sample.h}"/>
     </condition>
+    <condition property="apr.include.dir" value="${apr.dir}/../usr/include/ap&#x72;-1">
+        <available file="${apr.dir}/../usr/include/ap&#x72;-1/${apr.sample.h}"/>
+    </condition>
     <condition property="apr.include.dir" value="${apr.src.dir}/include">
         <available file="${apr.src.dir}/include/${apr.sample.h}"/>
     </condition>

Modified: logging/log4cxx/trunk/src/ant/find-libesmtp.xml
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/ant/find-libesmtp.xml?rev=627530&r1=627529&r2=627530&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/ant/find-libesmtp.xml (original)
+++ logging/log4cxx/trunk/src/ant/find-libesmtp.xml Wed Feb 13 09:10:03 2008
@@ -287,6 +287,9 @@
     <condition property="esmtp.include.dir" value="${esmtp.dir}/include">
         <available file="${esmtp.dir}/include/${esmtp.sample.h}"/>
     </condition>
+    <condition property="esmtp.include.dir" value="${esmtp.dir}/../usr/include">
+        <available file="${esmtp.dir}/../usr/include/${esmtp.sample.h}"/>
+    </condition>
     <condition property="esmtp.include.dir" value="${esmtp.src.dir}/include">
         <available file="${esmtp.src.dir}/include/${esmtp.sample.h}"/>
     </condition>

Modified: logging/log4cxx/trunk/src/site/apt/building/ant.apt
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/site/apt/building/ant.apt?rev=627530&r1=627529&r2=627530&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/site/apt/building/ant.apt (original)
+++ logging/log4cxx/trunk/src/site/apt/building/ant.apt Wed Feb 13 09:10:03 2008
@@ -35,8 +35,8 @@
      ant-contribs 1.0b3 or later is needed for some less frequent build targets.
 
   *Install APR and APR-Util or place source in apr and apr-util directories in same parent directory
-      as log4cxx directory.
-
+      as log4cxx directory.
+
         
    Building and testing log4cxx on a Unix platform with packaged APR and APR-Util.  
 
@@ -151,11 +151,32 @@
    Properties may also be placed in a build.properties file in the log4cxx directory.
 
 * Platform specific notes:
+
+  ** Microsoft Windows
+
+  A GNU sed command is required to be on the path to complete the unit tests.
+  Cygwin's implementation is known to work.
 
-  ** Mac OS/X:
-  
-  APR, APR-Util and iODBC are preinstalled in Mac OS/X 10.5 and later.
-  
-  ** Cygwin:
   
-  ** MinGW:
+  *** Cygwin:
+  
+  The Ant build will successfully complete for static libary builds when started from a 
+  Windows Command Prompt.  Shared library builds will create liblog4cxx.so, but
+  the unit tests will fail reporting that they could not find the log4cxx library
+  (likely missing a step to create an import library from the .so).  From a cygwin
+  command prompt, the unit tests will fail, possibly due to an issue spawning sed.
+  Cygwin does not provide wchar_t support which needs to be explicitly disabled.
+  The location of the APR libraries need to be provided (CYGWIN_HOME/lib).
+  
+  +-----+
+  cd apache-log4cxx-0.10.0
+  ant -Dos.family=cygwin -Dwith-apr=/cygwin/lib -Dwith-apr-util=/cygwin/lib \
+      -Denable-wchar_t=0 -Dlib.type=static
+  +-----+  
+    
+
+  *** MinGW:
+
+  ** Mac OS/X:
+  
+  APR, APR-Util and iODBC are preinstalled in Mac OS/X 10.5 and later.

Modified: logging/log4cxx/trunk/src/site/apt/building/autotools.apt
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/site/apt/building/autotools.apt?rev=627530&r1=627529&r2=627530&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/site/apt/building/autotools.apt (original)
+++ logging/log4cxx/trunk/src/site/apt/building/autotools.apt Wed Feb 13 09:10:03 2008
@@ -70,5 +70,8 @@
   APR, APR-Util and iODBC are preinstalled in Mac OS/X 10.5 and later.
   
 ** Cygwin:
-  
+  
+  Install sed which is required by the unit tests.
+
+
 ** MinGW: