在linux中使用 ./configure 时报错

复制代码
  ./configure --build=编译平台 --host=运行平台 --target=目标平台
  1. configure: error: cannot guess build type; you must specify one

解决办法:指定编译平台

复制代码
./configure --build=arm
  1. configure: error: Either a previously installed pkg-config or "glib-2.0 >= 2.16" could not be found. Please set GLIB_CFLAGS and GLIB_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy.

解决办法:使用自带glib,添加参数

复制代码
./configure --build=arm --with-internal-glib
相关推荐
FII工业富联科技服务22 分钟前
灯塔工厂用例详解:AR 远程巡检与智能运维闭环落地实践
运维·ar
mounter62527 分钟前
走向长时运行:引入协程(Coroutines),打破 BPF 程序的“一堂到底”限制
linux·ebpf·kernel
六点_dn1 小时前
Linux学习笔记-shell运算符
linux·笔记·学习
hehelm2 小时前
IO 多路复用 — Reactor
linux·服务器·网络·数据库·c++
浅止菌2 小时前
嵌入式项目Makefile越写越乱?一张万能模板+5个技巧,告别重复劳动
linux
BerryS3N2 小时前
Cursor+GitOps:AI驱动的自动化运维新范式
运维·人工智能·自动化
Sagittarius_A*2 小时前
Web 渗透实战:服务器系统识别、端口与中间件全量探测
服务器·网络安全·中间件·渗透测试
刘某的Cloud3 小时前
手工配置nginx的systemd服务
linux·运维·网络·nginx·systemd
FREEDOM_X4 小时前
嵌入式Linux摄像头采集与图像处理
linux·图像处理·ubuntu
studytosky4 小时前
OpenClaw 入门与 Skill 开发
linux·服务器·ai编程