I tried to get log4cxx to build on Windows without much luck.  I think that
I have narrowed down what is going on though.  First, here's what I did to
try and get it to compile.


   1. Download Netbeans to have an easy Maven environment setup on Windows.
   2. Open up the log4cxx project in netbeans
   3. Copy the apr-1.5.2 source and the apr-util-1.5.4 source to one
   directory above the log4cxx source, renaming they to apr and apr-util,
   respectively.  The file structure looks like this then:
   /apr
   +-----<source>
   /apr-util
   +-----<source>
   /log4cxx
   +-----<source>
   4. Press the 'build' button in Netbeans.

Everything compiled cleanly, but it did not link cleanly.  I think the
problem with this method is that it attempts to compile only a small subset
of APR into a .dll for use with log4cxx(there are a few files that are not
compiled in that are needed for a clean link). The functions that are
missing are apr_generate_random_bytes and apr_ escape_hex.

My next test was to build and install APR and APR-util using CMake.  I had
to mess around with the pom.xml file in order to pass the pre-compiled
library locations in.  This works until the end, it does not link cleanly.
The problem with this appears to be linking with expat(which should be
already contained in APR-util).  It also can't find two symbols in apr.

I'm going to see if I can make a CMake project for log4cxx, and try and
configure it that way.

-Robert Middleton

Reply via email to