我编译clamav-0.99.2
如下:
~./configure -enable-static
然后make & sudo make install
. 编译在我看来是成功的。但是当添加到我的项目libclamav.a中时Qt5.8-static
,它会在编译时出错:
:-1: error: /usr/local/lib/libclamav.a(libclamav_la-regex_pcre.o): undefined reference to symbol 'pcre_study'
/lib/x86_64-linux-gnu/libpcre.so.3:-1: error: error adding symbols: DSO missing from command line
:-1: error: collect2: error: ld returned 1 exit status
在我的*.pro
静态 clamav 库中添加如下:
LIBS +=/usr/local/lib/libclamav.a
CONFIG += static
CONFIG += staticlib
你能帮我在我的qt项目中静态编译clamav吗?