c++ - 使用 APR 构建 log4cxx

标签 c++ shared-libraries autotools suse log4cxx

我需要构建 log4cxx我不是 root 的 SuSE linux 系统上的库。包管理器 zypper 显然不知道 log4cxx。

我下载 log4cxx 和 try to build with autotools

./configure

checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option.

然后我搜索 libapr :

find / -name libapr*

/usr/share/doc/packages/libapr-util1
/usr/share/doc/packages/libapr1
/usr/lib64/libaprutil-1.so.0.3.12
/usr/lib64/libapr-1.so.0.4.5
/usr/lib64/libaprutil-1.so.0
/usr/lib64/libapr-1.so.0

所以我试试

./configure --with-apr=/usr/lib64/libapr-1.so.0

configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.

--with-apr=/usr/lib64/libapr-1.so.0.4.5 相同和 --with-apr=/usr/lib64/ .

哪个文件做./configure寻找?什么是--with-apr预计?是两者之一*.so.*文件所需的库?

最佳答案

您可能需要安装 libapr1-devel 以便您可以针对它进行编译。然后尝试重新运行 ./configure

关于c++ - 使用 APR 构建 log4cxx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14413561/

相关文章:

linux - 尝试运行 faac 的引导脚本但遇到错误

c - Libtool 为对象添加前缀,但 gcov 要求它们没有前缀

c++ - Matlab 无法正确初始化 C++ 共享库

java - 从已编译的类中推断出公开可用的 Java 代码的版本

c++ - 如何创建一个自动链接到动态库的静态库?

autotools - 使用 automake 将文件复制为默认目标的一部分

c++ - QextSerialPort 的字符编码问题 (Qt/C++)

c++ - 使用 CPP REST SDK 忽略 CERTIFICATE_ERROR

c++ - c/c++ 使用 else 代替 if not

c++ - 静态成员声明为 const 但初始化为 constexpr