Building log4cxx

View: New views
1 Messages — Rating Filter:   Alert me  

Building log4cxx

by Vinay Maddi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello All,

I am building log4cxx using Makefile. Everything works fine. I have one question though.
I am trying to write my own appender. This appender uses axis2c libraries. I put my appender in log4cxx src and building. But since my appender uses axis2C libraries, I need to link axis2C libraries to log4cxx while building.

I tried adding libraries in Makefile (LDFLAGS ). But its not working.

Could some point me in the right direction.

Thanks
Vinay

On Thu, Oct 22, 2009 at 11:18 AM, Moshe Matitya <Moshe.Matitya@...> wrote:

I have been trying, unsuccessfully, to figure out how to install log4cxx on Linux with Ant.

 

In the past, when installing log4cxx 0.9.7 on a Linux machine, I would build and install it using Make, as follows:  To build it, I would run the following commands:

            autogen.sh

            configure

            make

Then, to install it, I would simply run:

            make install

This would install all the library files, include files, etc., in their proper locations.

 

Now, however, I am using log4cxx 0.10.0, which I build using Ant.  The default target in the Ant build script compiles and links the sources, and runs the unit tests.  However, I don't see how one is supposed to then install it, and I can't find any instructions about how to do this in the documentation.

 

There doesn't seem to be a target in the Ant build script called "install", or anything similar.  So how does one install log4cxx when using Ant?

 

Thanks,

 

Moshe Z. Matitya

XConnect Global Networks