在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
相关推荐
xx~t27 分钟前
嵌入式学习——ARM1
linux·arm开发·嵌入式硬件·arm
xx~t29 分钟前
嵌入式——ARM1(详细篇)
linux·arm开发·嵌入式硬件·arm
我要见SA姐11 小时前
告别 Copilot?Codex 本地化部署指南
运维·数据库·机器学习·oracle·回归
Elastic 中国社区官方博客2 小时前
列式存储并不等同于列式数据库。Columnar 模式为 Elasticsearch 带来了什么
大数据·运维·数据库·elasticsearch·搜索引擎
fengkai45452 小时前
八、Docker详解4-5
运维·docker
智恒百亿3 小时前
RTX 5090 八卡服务器 vs RTX PRO 6000 整机:AI 推理、微调与渲染选型部署指南
运维·服务器·rtx5090
ManageEngineITSM3 小时前
DevOps和ITIL是什么关系?是替代还是互补一文讲清
java·服务器·资产管理·变更管理
DYWorker0014 小时前
Linux驱动子系统:DMA-Buf —— Consumer和Provider(008)
linux·驱动开发
雯宝4 小时前
Linux 内核函数集
linux
码少女4 小时前
Linux--多路转接之select
java·服务器·数据库