在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
相关推荐
码农101号39 分钟前
Linux中Docker Compose介绍和使用
linux·运维·docker
IT成长日记2 小时前
【Docker基础】Dockerfile多阶段构建:Multi-stage Builds详解
运维·docker·容器·multi-stage·builds
deeper_wind5 小时前
keeplived双击热备配置
linux·运维·网络
GoldKey7 小时前
gcc 源码阅读---语法树
linux·前端·windows
不易思不逸8 小时前
Ubuntu20.04 RTX 4080 Nvidia驱动安装
运维·服务器
筱小虾米8 小时前
Docker配置国内镜像源
运维·docker·容器
黎茗Dawn9 小时前
连接new服务器注意事项
linux·python
m0_694845579 小时前
云服务器如何管理数据库(MySQL/MongoDB)?
服务器·数据库·mysql
L_autinue_Star10 小时前
从0到1实现Shell!Linux进程程序替换详解
linux·运维·服务器·c++·chrome
Ftrans10 小时前
【分享】文件摆渡系统适配医疗场景:安全与效率兼得
大数据·运维·安全