尝试使用 yocto 构建我的项目时,出现 Prelink-rtld: command not found 错误。 完全错误:
work/aarch64-oe-linux/gstreamer1.0/1.12.2-r0/recipe-sysroot/usr/bin/g-ir-scanner-lddwrapper: line 2: prelink-rtld: command not found
| ==6485==LeakSanitizer has encountered a fatal error.
| If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help.
| (typically like this: GIR_EXTRA_LIBS_PATH="${B}/something/.libs" )
尝试添加 DEPENDS += "prelink"
但这并没有解决问题。
在启用 gcc-sanitizer 后开始出现此错误。IE
+DEPENDS += "gcc-sanitizers"
+CFLAGS += "-fsanitize=address"
+CPPFLAGS += "-fsanitize=address"
+LDFLAGS += "-fsanitize=address"
在 gstreamer1.0_1.12.2.bbappend 文件中。