已经从 http://log4c.sourceforge.net/ 下载源码,成功编译,现在需要讲动态库确定位置。然后讲对应的.h
文件拷贝到工程。
deb
$sudo apt-get install liblog4c-dev #liblog4c
source
$wget http://prdownloads.sourceforge.net/log4c/log4c-1.2.4.tar.gz
$mkdir log4c
$tar -xvf log4c-1.2.4.tar.gz -C log4c
$cd log4c/log4c-1.2.4/
$./configure -prefix=/usr/ #会自动加上lib/路径,所以直接直接选择/usr/。
$make
$make install
/usr/local/bin/log4c-config
/usr/local/etc/log4crc.sample
/usr/lib/liblog4c.so.3.3.1
/usr/lib/liblog4c.so.3
/usr/lib/liblog4c.so
/usr/lib/liblog4c.la
/usr/lib/liblog4c.a
/usr/local/lib/pkgconfig/log4c.pc
/usr/local/share/man/man1/log4c-config.1
/usr/local/share/aclocal/log4c.m4
/usr/local/include/log4c
/usr/local/include/log4c.h
-llog4c