slam十四讲13章代码glog版本用目前最新的v0.5.0,ros_vinsfusion,glog版本用v0.4.0

本文详细介绍了Google Glog库从v0.5.0到v0.4.0的编译步骤,包括获取源码、配置CMake、构建与测试,并对比了两个版本的安装选项。适合C++开发者了解不同版本的构建流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

glog v0.5.0编译:
1、Get the source code and change to it. e.g., cloning with git:

git clone https://github.com/google/glog.git
cd glog

2、Run CMake to configure the build tree.

cmake -S . -B build -G "Unix Makefiles"

CMake provides different generators, and by default will pick the most relevant one to your environment. If you need a specific version of Visual Studio, use cmake . -G , and see cmake --help for the available generators. Also see -T , which can be used to request the native x64 toolchain with -T host=x64.

3、Afterwards, generated files can be used to compile the project.

cmake --build build

4、Test the build software (optional).

cmake --build build --target test

5、Install the built files (optional).

cmake --build build --target install

glog v0.4.0编译:

./autogen.sh
./configure
make -j8
sudo make install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值