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最新版本编译。

相关推荐
ajassi200044 分钟前
开源 python 应用 开发(三)python语法介绍
linux·python·开源·自动化
o不ok!1 小时前
Linux面试问题-软件测试
linux·运维·服务器
DaxiaLeeSuper1 小时前
Prometheus+Grafana+node_exporter监控linux服务器资源的方案
linux·grafana·prometheus
尽兴-2 小时前
如何将多个.sql文件合并成一个:Windows和Linux/Mac详细指南
linux·数据库·windows·sql·macos
kfepiza2 小时前
Netplan 中 bridges、bonds、ethernets、vlans 之间的关系 笔记250711
linux·tcp/ip·shell
小小不董3 小时前
深入理解oracle ADG和RAC
linux·服务器·数据库·oracle·dba
小宋0013 小时前
在Ubuntu上安装配置 LLaMA-Factory
ubuntu·计算机视觉
宇钶宇夕4 小时前
SIMATIC S7-1200的以太网通信能力:协议与资源详细解析
运维·服务器·数据库·程序人生·自动化
杰夫贾维斯4 小时前
CentOS Linux 8 的系统部署 Qwen2.5-7B -Instruct-AWQ
linux·运维·人工智能·机器学习·centos