Gstreamer编译篇_libmount

news/2024/7/24 10:17:46 标签: gstreamer

Gstreamer编译篇_libmount

/usr/lib/x86_64-linux-gnu/libmount.so: file not recognized: File format not…

在交叉编译的时候出现libmount.so文件格式不正确

因为现在是在交叉编译环境下啊。


仔细对比了glib的meson.build

# libmount is only used by gio, but we need to fetch the libs to generate the
# pkg-config file below
libmount_dep = []
if host_system == 'linux'
  libmount_dep = dependency('mount', version : '>=2.23', required : get_option('libmount'))
  glib_conf.set('HAVE_LIBMOUNT', libmount_dep.found())
endif

# libmount is only used by gio, but we need to fetch the libs to generate the
# pkg-config file below
libmount_dep = []
if host_system == 'linux' and get_option('libmount')
  libmount_dep = [dependency('mount', version : '>=2.23', required : true)]
  glib_conf.set('HAVE_LIBMOUNT', 1)
endif

你会发现,还是有些不同的。

第一种写法,其实是直接disable libmount了。第二种是强制要求libmount的。


option('libmount',
       type : 'feature',
       value : 'auto',
       description : 'build with libmount support')## auto,默认就是disable的
 

其实编译glib直接加上**-Dlibmount=false**就行了。


http://www.niftyadmin.cn/n/1333727.html

相关文章

13.1 补充:购买服务器部署上线

在进行之前,我们需要先下载两个软件 Xshell 和 postman 1. 去阿里云购买一个云服务器 也可以先试用一个月 1. 基础配置 地区最好选择香港,因为后期可能会涉及到域名的绑定,选择香港会方便一点其他的选项都选择第一个,因为第一个是…

Vue实战之 13. 项目上线

1. 项目上线相关配置 通过 node 创建 web 服务器。开启 gzip 配置。配置 https 服务。使用 pm2 管理应用。 1. 通过 node 创建 web 服务器 创建 node 项目,并安装 express,通过 express 快速创建 web 服务器,将 vue 打包生成的 dist 文件夹…

gstreamer-glib篇

Gstreamer-glib篇 Glib的获取 git clone https://gitlab.gnome.org/GNOME/glib.git git tag git checkout tag git checkout 2.62.6

3. github --- 非团队协作

什么是非团队协作? 即使你不是团队成员,也有方法想向其他人的github中提交代码,只不过你提交的代码是需要被审核的,只有审核通过了才能够生效。 应用场景:比如说,你要完成一个网页效果,这个网页…

关于module.exports 和 exports

1. 模块系统 使用 node 编写应用程序主要就是使用: ECMAScript语言核心模块:文件操作fs,http,url路径操作模块,path路径处理模块,od操作系统信息第三方模块:art-template,必须通过…

忙碌的libmount

忙碌的libmount 之前遇到libmount格式不争取的问题,今天再整理一下 会遇到libmount.so格式不正确的问题,说我们之前安装的是x86版本的。 所以需要重新编译个arm版本的。 官方下载util-linux源文件 http://ftp.ntu.edu.tw/pub/linux/utils/util-linux…

ubuntu1604上安装python3.6.9

Ubuntu1604上安装python3.6.9 1.去官网下载 https://www.python.org/downloads/source/ 2.解压 xz -d *.xz tar xvf Py*.tar3.安装 //打算安装在/opt/python3.6下 --with-ssl很重要,pip3需要用到 ./configure --prefix/opt/python3.6 --with-ssl make sudo mak…

第三方模块 nrm

nrm:npm 下载地址切换工具 npm 默认的下载地址在国外,国内下载速度很慢 npm: 是世界上最大的开源库生态系统绝大多数JavaScript相关的包都存放在了npm,这样做的目的是为了让开发人员更方便地下载使用语法:npm install…