【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
wwsearch 编辑问题记录由一个俗人(wechat:dotzcv)整理
CMake构建问题:Could NOT find Threads (missing: Threads_FOUND)
cmake版本低
https://blog.csdn.net/github_30605157/article/details/1027777412
2.依赖包安装
# 首先安装各种依赖包如下:
yum install gcc gcc-c++ # 安装c++
# 安装boost
yum install boost boost-devel boost-doc
# 安装glog 以及其他依赖包
yum install glog glog-devel kyotocabinet kyotocabinet-devel marisa-devel opencc-devel yaml-cpp yaml-cpp-devel gtest gtest-devel
# ibus-rime还需要什么
yum install libnotify zlib zlib-devel gflags gflags-devel
3.报错时候 遇到FlagRegisterer问题 和google库相关问题 可以尝试安装
1)安装 GFlags
git clone https://github.com/gflags/gflags.git
cd gflags
mkdir build && cd build
cmake .. -DGFLAGS_NAMESPACE=google -DCMAKE_CXX_FLAGS=-fPIC ..
make -j4
sudo make install
2)安装 GLog:
git clone https://github.com/google/glog
cd glog
./autogen.sh
./configure CPPFLAGS="-I/usr/local/include -fPIC" LDFLAGS="-L/usr/local/lib"
make -j8
sudo make install
4.遇到问题:error: possibly undefined macro: AC_PROG_LIBTOOL
安装libtool工具
yum install libtool -y
5. 貌似编译并发太高:
把make -j32 降低make -j1 试试
-------------------------------
编译后结果:
来源:oschina
链接:https://my.oschina.net/u/169565/blog/3145404