linux环境编译log4cxx

2017-03-01  本文已影响0人  yandaren
tar -zxvf apr-1.4.5.tar.gz
cd apr-1.4.5
./configure --prefix='your apr path' && make && make install
tar -zxvf apr-util-1.3.9.tar.gz
cd apr-util-1.3.9
./configure --prefix="your apr-util path"  --with-apr="your apr path"  && make && make install
vim src/main/cpp/inputstreamreader.cpp 在文件头,增加一个头文件 #include<string.h>
vim src/main/cpp/socketoutputstream.cpp 在文件头,增加一个头文件 #include <string.h>
vim src/examples/cpp/console.cpp 在文件头,增加头文件 #include <string.h> 以及 #include <stdio.h>

编译

./configure --preifx="your log4cxx path" --with-charset=utf-8 --with-apr="your apr path" --with-apr-util="your apr-util path" && make && make install

(转自我另外一个博客log4cxx编译(linux))

上一篇 下一篇

猜你喜欢

热点阅读