ubuntu 22.04下编译安装glog共享库

笔者是完美主义者,在编译opencv4.9时,有个有关glog的warn,就下载编译google的glog库并把它编译成shared libaray。重新编译opencv4.9时,该warn解除。现把编译安装glog过程记录,以备后查。

以下操作全程以root身份或sudo执行。

bash 复制代码
cd /opt
git clone https://github.com/google/glog.git
cd glog
cmake -S . -B build -G "Unix Makefiles"
cmake --build build
cmake --build build --target install

建议下载cmake最新版本编译。

相关推荐
wenhui.wang16 分钟前
Linux/Ubuntu访问局域网共享文件夹
linux·ubuntu
光亮§那方37 分钟前
linux - cp 命令
linux·ubuntu
liulanba40 分钟前
leetcode--二叉树中的最长交错路径
linux·算法·leetcode
蜗牛学苑_武汉43 分钟前
Linux之文本三剑客
linux·运维
小宏运维有点菜1 小时前
docker
运维·docker·容器
孤城2861 小时前
08 docker Registry搭建docker私仓
运维·docker·容器·devops
M-C-B1 小时前
云桌面运维工程师
运维
WaiSaa1 小时前
Linux内核升级
linux·运维
俄罗斯牛栏山1 小时前
nginx的重定向(rewrite)
运维·nginx
白如意i1 小时前
在Ubuntu 16.04上安装和配置Elasticsearch的方法
linux·ubuntu·elasticsearch