件框架,用于构建高性能和高可扩展的系统。支持多线程、提供内存管理和常用数据结构、json处理。
以下是编译过程
一、环境准备
所用的操作系统环境是ubuntu。
二、编译过程
从Github上面检出libPhenom的源代码
git clone https://github.com/facebook/libphenom.git
然后cd到libphenom目录,截止当前最新pull到的代码是2018年3月24日的
1.先运行./autogen.sh
会发现
Package ck was not found in the pkg-config search path.
Perhaps you should add the directory containing `ck.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ck' found
这样的报错。
vim travis/deps.sh
查看到CK_VER=0.5.1
这个就需要安装ConcurrencyKit这个库,并且要0.5.1版本。从Github上面查询到这个库的源代码。然后使用git来进行检出。
git clone https://github.com/concurrencykit/ck.git
然后切到ck目录,再切到0.5.1版本
git checkout 0.5.1
然后./configure进行编译,运行make && make install进行安装,默认安装到了/usr/local目录下面。
再次切换到libphenome目录下进行
./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
再进行make && make install
顺利编译完成。
以上参考了https://blog.csdn.net/virgildmc/article/details/49930905这篇文章