我正在尝试交叉编译gstreamer应用程序。 我使用的模板使用介子和忍者来构建和编译它。
顶级文件夹介子:
project('gst-template', 'c', version : '1.17.0.1', license : 'LGPL')
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
cc = meson.get_compiler('c')
gst_version = meson.project_version()
api_version = '1.0'
gst_dep = dependency('gstreamer-app-1.0',
fallback : ['gstreamer', 'gst_dep'])
subdir('gst-app')
subdir('gst-plugin')
项目源文件夹介子:
app_sources = [
'src/PIPEX.c',
'src/C420to444.c' ,
'src/C444to420.c'
]
executable('PIPEX', app_sources, dependencies : [gst_dep])
我还需要armhf架构中的gstreamer库。 到目前为止我所做的:
dpkg --add-architecture armhf
将以下仓库添加到sources.list deb [arch=armhf] http://ports.ubuntu.com/ bionic main universe
apt-get install crossbuild-essential-armhf
然后我尝试使用apt-get :armhf
安装gstreamer软件包,但由于软件包版本而导致依赖性错误。
1-如何将编译器更改为arm-linux-gnueabihf-gcc
? (已经安装在我的petalinux目录下)。
2-我应该如何在不自行编译的情况下获得armhf库?我在正确的轨道上吗?还是最好用我自己的Scratchbox编译它们? (我没有使用Scratchbox的经验)