You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Andreas Grob <an...@bergauer.ch> on 2008/02/08 09:41:22 UTC
Problem building log4cxx using apr
Hi,
Since the change from CPPUNIT to LOGUNIT I have problems compiling the trunk. I
work under win2k, vs8/sp1.
When I compile as ever I got following error:
C:\work\log4cxx\log4cxx-trunk\src\ant\find-apr.xml:150: Unable to locate apr
base directory.
The INSTALL file says:
Connection to internet
- or -
apr files in the lib path
So far I preferred to use the internet. But in build.xml:121 I found an
interesting hint. So I tried next:
c:\programme\apache\apache-ant-1.7.0\bin\ant
-Dwith-apr=c:\programme\apache\apr-1.2.12
-Dwith-apr-util=c:\programme\apache\apr-util-1.2.12
Now some files were compiled but still the build failed:
find-apr:
[echo] apr-find:
[echo] apr.dir=c:\programme\apache\apr-1.2.12
[echo] apr.include.dir=c:\programme\apache\apr-1.2.12/include
[echo] apr.src.dir=c:\programme\apache\apr-1.2.12
[echo] apr.lib.file=${apr.lib.file}
[echo] apr.lib.file.dir=${apr.lib.file.dir}
[echo] apr.lib.dir=${apr.lib.dir}
[echo] apr.lib.prefix=${apr.lib.prefix}
[echo] apr.lib.suffix=${apr.lib.suffix}
[echo] apr.lib.type=${apr.lib.type}
BUILD FAILED
C:\work\log4cxx\log4cxx-trunk\build.xml:348: The following error occurred while
executing this line:
C:\work\log4cxx\log4cxx-trunk\src\ant\apr-build.xml:111: project doesn't support
the nested "comment" element.
I'm not familiar with ant, apr, ... So, I don't know what to do next. Can please
anybody help me?
Cheers
~ Andreas
Re: Problem building log4cxx using apr
Posted by Andreas Grob <an...@bergauer.ch>.
Curt Arnold <carnold <at> apache.org> writes:
>
> Sorry, trying to get the release candidate out and things are flying
> pretty furious.
>
> The ultimate answer will be in new build pages on the web site that
> will document all the changes that have occurred. Unfortunately, that
> means at the moment things are subject to change minute by minute.
>
> First, update your cpptasks to the current SVN HEAD.
>
> ............
Very thank you for the fast response. To hear you trying to get out a release
candidate makes me happy, too!
To update cpptasks was the point. :-)
Cheers
~ Andreas
Re: Problem building log4cxx using apr
Posted by Curt Arnold <ca...@apache.org>.
On Feb 8, 2008, at 2:41 AM, Andreas Grob wrote:
> Hi,
>
...
>
>
> I'm not familiar with ant, apr, ... So, I don't know what to do
> next. Can please
> anybody help me?
>
> Cheers
> ~ Andreas
>
>
Sorry, trying to get the release candidate out and things are flying
pretty furious.
The ultimate answer will be in new build pages on the web site that
will document all the changes that have occurred. Unfortunately, that
means at the moment things are subject to change minute by minute.
First, update your cpptasks to the current SVN HEAD.
Second, the build.xml no longer attempts to download APR or APR-Util,
but expects to find them or have their location explicitly specified.
On Windows, the easiest way is to either untar or unzip releases of
apr and apr-util in the same directory that has log4cxx or to check
out versions to those directories, so you end up with something like:
$ dir c:\
[apr]
[apr-util]
[log4cxx]
$ cd log4cxx
$ ant
Basically, it follows the same scheme as the VC6 builds for APR which
requires that apr, apr-util and apr-iconv be children of the same
parent directory.
The find logic essentially checks /usr/lib, /usr/local/lib and ../apr
in that order. If you want to explicitly specify a location, use -
Dwith-apr=PATH.