Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-build gst-build
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gst-buildgst-build
  • Issues
  • #101
Closed
Open
Issue created May 21, 2020 by r3d 9u11@r3d9u11

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!

Edited May 21, 2020 by r3d 9u11
Assignee
Assign to
Time tracking