linux上rocksDB编译

安装rocksdb数据库for theiasfm
(http://www.bubuko.com/infodetail-371860.html)

git clone https://github.com/facebook/rocksdb.git
cd rocksdb
git checkout 2.8.fb
make shared_lib

"
安装完之后,cmake依然提示“Could not find ROCKSDB”

        检查osgearth-master/CMakeModules/FindRocksDB.cmake , 发现FIND_PATH(ROCKSDB_INCLUDE_DIR rocksdb/db.h)执行之后“ROCKSDB_INCLUDE_DIR”为空

  find_library(ROCKSDB_LIBRARY NAMES ROCKSDBLIB) “ROCKSDB_LIBRARY”也为空,因此在FindRocksDB.cmake中加入rocksdb的信息

        set(ROCKSDB_INCLUDE_DIR  "/usr/include/rocksdb")

        set(ROCKSDB_LIBRARY  "/usr/lib64/librocksdb.so")
---------------------
作者:1146102
来源:CSDN
原文:https://blog.csdn.net/try1988/article/details/74835483
版权声明:本文为博主原创文章,转载请附上博文链接!
"

sudo cp librocksdb.so /usr/local/lib
sudo mkdir -p /usr/local/include/rocksdb/
sudo cp -r ./include/* /usr/local/include/

mkdir theia-build
cd theia-build
cmake ..
make -j4
make test

可以利用

cmake .. -DCMAKE_INSTALL_PREFIX=。。。

设置安装目录

 

你可能感兴趣的:(linux上rocksDB编译)