1、下载log4cplus 1.2.1。
下载网址:https://sourceforge.net/projects/log4cplus/files/log4cplus-stable/1.2.1/
2、centos7下的安装。
tar xvJf log4cplus-1.2.1-rc2.tar.xz
cd log4cplus-1.2.1-rc2/
./configure
make
make install
生成头文件和库文件,分别在/usr/local/include和/usr/local/lib下。
3、QT5下添加log4cplus库
unix:!macx: LIBS += -L$ $PWD/../../../usr/local/lib/ -llog4cplus
INCLUDEPATH += $ $PWD/../../../usr/local/include
DEPENDPATH += $ $PWD/../../../usr/local/include
下载网址:https://sourceforge.net/projects/log4cplus/files/log4cplus-stable/1.2.1/
2、centos7下的安装。
tar xvJf log4cplus-1.2.1-rc2.tar.xz
cd log4cplus-1.2.1-rc2/
./configure
make
make install
生成头文件和库文件,分别在/usr/local/include和/usr/local/lib下。
3、QT5下添加log4cplus库
unix:!macx: LIBS += -L$ $PWD/../../../usr/local/lib/ -llog4cplus
INCLUDEPATH += $ $PWD/../../../usr/local/include
DEPENDPATH += $ $PWD/../../../usr/local/include