AGX Xavier: GST-EGL: recompile with -fPIC

Hi

I am trying to build the gstreamer plugins/libs myself (gst-egl, gst-nvvideosinks,…) but have a strange error.

gst-libs/gst/egl/egl.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `gst_egl_display_ref' which may bind externally can not be used when making a shared object; recompile with -fPIC
gst-libs/gst/egl/egl.o: in function `gst_egl_display_get_type_once':
egl.c:(.text+0x17c): dangerous relocation: unsupported relocation


gst-libs/gst/egl/egl.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `gst_egl_display_unref' which may bind externally can not be used when making a shared object; recompile with -fPIC
egl.c:(.text+0x180): dangerous relocation: unsupported relocation

I am using the CUDA toolkit 12.1 (the cross compile version).

Any idea on how to get rid of it?

Hi,
Could you try to build it on Xavier? It shall work without issue.

Hi DaneLLL

That would be impossible…
My custom rootfs has not the tools nor the capabilities to do so.
(that was the whole point of crosscompiling it :) )

Hi,
The defaultMakefile is for building the source on target device. Would suggest try it to make sure it works on default rootfs, and then mount the rootfs to your host PC for crosscompiling. Please refer to
Jetson Linux API Reference: Setting Up Cross-Platform Support | NVIDIA Docs

Hi DaneLLL

Fixed it in the meantime.
My CFLAGS were not taken within the build of the GST-directory
Solved it by setting override CFLAGS += …

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.