can't cross-compile for ARM
Hello. How is it possible to cross-compile gstreamer for ARM?
Here is my meson-config:
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'arm'
endian = 'little'
[build_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
[binaries]
c = 'arm-linux-gnueabihf-gcc'
cpp = 'arm-linux-gnueabihf-g++'
ar = 'arm-linux-gnueabihf-ar'
strip = 'arm-linux-gnueabihf-strip'
[properties]
sys_root = '/home/user/sysroot/'
c_args = ['--sysroot', '/home/user/sysroot/']
cpp_args = ['--sysroot', '/home/user/sysroot/']
Exception:
The Meson build system
Version: 0.52.0
Source dir: /home/user/gst-src/gstreamer-1.16.2
Build dir: /home/user/gst-src/gstreamer-1.16.2/build
Build type: cross build
Project name: gstreamer
Project version: 1.16.2
Appending CFLAGS from environment: ' --sysroot=/home/user/sysroot'
Appending LDFLAGS from environment: ['--sysroot=/home/user/sysroot', '-Wl,-rpath-link,/home/user/sysroot/lib/arm-linux-gnueabihf', '-Wl,-rpath-link,/home/user/sysroot/usr/lib/arm-linux-gnueabihf']
Appending CPPFLAGS from environment: ' --sysroot=/home/user/sysroot'
/lib/ld-linux-armhf.so.3: No such file or directory
meson.build:1:0: ERROR: Executables created by c compiler /home/user/gst-src/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc are not runnable.
A full log can be found at /home/user/gst-src/gstreamer-1.16.2/build/meson-logs/meson-log.txt
options 'needs_exe_wrapper' and 'exe_wrapper' do not affect the result.
What I'm doing wrong? Thanks!