Setup log4cxx in Windows

来源:互联网 发布:中日韩长相知乎 编辑:程序博客网 时间:2024/04/28 00:18

About log4cxx , check here http://logging.apache.org/log4cxx/index.html

 

then it is about set things:

 

what we will do is to build our own dll or lib of loc4cxx,

 

1. get sources apache-log4cxx-0.10.0;

 

2. get necessary support sources apr-1.2.11-win32-src.zip and apr-util-1.2.10-win32-src.zip from http://archive.apache.org/dist/apr/

 

3. before working following the following steps, ensure that the sed tool was set already, you can get the sed for window or setup Cygwin to solve the proble:

unzip apr-1.2.11-win32-src.zip
rename apr-1.2.11 apr
unzip apr-util-1.2.10-win32-src.zip
rename apr-util-1.2.10 apr-util
put apr, apr-util and apache-log4cxx-0.10.0 under the same folder
cd apache-log4cxx-0.10.0
configure
configure-aprutil

4. open projects/log4cxx.dsw with vc6.0 and set log4cxx active, then build, and the log4cxx.dll and log4cxx.lib could be found under the debug folder
for detail, check here.


that's all from Carlton
原创粉丝点击