在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
相关推荐
m0_7381207213 小时前
应急响应(重点)——记一次某公司流量应急溯源分析(附带下载链接)
服务器·前端·数据库·安全·web安全·网络安全
中科三方14 小时前
输入域名后无法访问?教你快速区分域名解析问题与服务器问题
运维·服务器
internet Boy14 小时前
桌面运维面试常见问题及标准答案(完整版)
运维
用户23678298016814 小时前
Linux find 命令深度解析:从递归遍历到性能优化的完整实现
linux
ascarl201014 小时前
Linux.do 帖子整理:AI 调用 Chrome DevTools 调试前端页面
linux·前端·人工智能
Slow菜鸟14 小时前
Docker 学习篇(三)| Docker安装指南(Linux版)
linux·学习·docker
liuluyang53015 小时前
linux kernel CONFIG_KCMP解析
linux·运维·服务器
Koma_zhe15 小时前
【Ansible开源自动化运维工具】别再手动装监控了,Ansible能让上百台机器同时搞定Node Exporter(1)
运维·开源·ansible
daad77716 小时前
记录一次上下文切换次数的统计
服务器·c++·算法