Arm cpp_link_args等对于介子交联文件是空的

Arm cpp_link_args等对于介子交联文件是空的,arm,cross-compiling,meson-build,Arm,Cross Compiling,Meson Build,我正试图在ubuntu 20.04上为arm64设备交叉编译和构建gstreamer。。我应该使用gcc-7.3 我一直在遵循中列出的步骤 当使用generate-cross-file.py生成交叉文件时,我得到如下结果 [host_machine] system = 'linux' cpu_family = 'aarch64' cpu = 'arm64' endian = 'little' [properties] c_args = [] cpp_args = [] objc_arg

我正试图在ubuntu 20.04上为arm64设备交叉编译和构建gstreamer。。我应该使用gcc-7.3

我一直在遵循中列出的步骤

当使用generate-cross-file.py生成交叉文件时,我得到如下结果

[host_machine]
system = 'linux'
cpu_family = 'aarch64'
cpu = 'arm64'
endian = 'little'

[properties]
c_args = []
cpp_args = []
objc_args = []
objcpp_args = []
c_link_args = []
cpp_link_args = []
objc_link_args = []
objcpp_link_args = []
pkg_config_libdir = ['__no_cross_sysroot__']
sys_root = ''

[binaries]
c = ['aarch64-linux-gnu-gcc']
cpp = ['aarch64-linux-gnu-g++']
ar = ['aarch64-linux-gnu-ar']
pkgconfig = 'pkg-config'
strip = ['aarch64-linux-gnu-strip']
这与示例指南中生成的内容类似

我将生成的内容用于交叉编译。。。编译是可以的,但是当需要生成和链接依赖项时。。。IDE抱怨未引用的依赖项。。。我怀疑是链接有问题还是库有错误

关于库中的错误,通过查看exmaple-cross编译文件,我怀疑某些部分没有正确填写……特别是我怀疑c_link_arg等

我必须填写吗

问候

==================================================== [编辑] 一些额外的信息

这是子项目的介子构建日志

Executing subproject gst-rtsp-server 

Project name: gst-rtsp-server
Project version: 1.19.0.1
C compiler for the host machine: /usr/bin/aarch64-linux-gnu-gcc (gcc   7.5.0 "aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the host machine: /usr/bin/aarch64-linux-gnu-gcc ld.bfd 2.30
C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the build machine: cc ld.bfd 2.30
Using cached compile:
Cached command line:   

Code:
  int main(void) { return 0; }

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES      (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -fvisibility=hidden: YES (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -fno-strict-aliasing: YES (cached)
Message: Disabling deprecated GLib API
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wmissing-declarations: YES (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wredundant-decls: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wundef: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;
Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wwrite-strings: YES (cached)
Using cached compile:
Cached command line:   

Code:
   extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wformat: YES (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wformat-security: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wold-style-definition: YES (cached)
Using cached compile:
Cached command line:   

Code:
  extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Waggregate-return: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Winit-self: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:

Cached compiler stderr:

Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:
 
Cached compiler stderr:
 
Compiler for C supports arguments -Waddress: YES (cached)
Using cached compile:
Cached command line:



Code:
 extern int i;
int i;

Cached compiler stdout:
 
Cached compiler stderr:
 
Compiler for C supports arguments -Wno-multichar: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:
 
Cached compiler stderr:
 
Compiler for C supports arguments -Wdeclaration-after-statement: YES (cached)
Using cached compile:
Cached command line:



Code:
 extern int i;
int i;

Cached compiler stdout:
 
Cached compiler stderr:
 
Compiler for C supports arguments -Wvla: YES (cached)
Using cached compile:
Cached command line:   

Code:
 extern int i;
int i;

Cached compiler stdout:
 
Cached compiler stderr:
 
Compiler for C supports arguments -Wpointer-arith: YES (cached)
Dependency glib-2.0 found: YES 2.68.2 (overridden)
Dependency gstreamer-1.0 found: YES 1.19.0.1 (overridden)
Dependency gstreamer-rtsp-1.0 found: YES 1.19.0.1 (overridden)
Dependency gstreamer-rtp-1.0 found: YES 1.19.0.1 (overridden)
Dependency gstreamer-sdp-1.0 found: YES 1.19.0.1 (overridden)
Dependency gstreamer-app-1.0 found: YES 1.19.0.1 (overridden)
Dependency gstreamer-net-1.0 found: YES 1.19.0.1 (overridden)
Dependency gstreamer-check-1.0 found: YES 1.19.0.1 (overridden)
Message: GStreamer debug system is enabled
Program g-ir-scanner found: NO
Adding test "gst_addresspool"
Adding test "gst_client"
Adding test "gst_mountpoints"
Adding test "gst_mediafactory"
Adding test "gst_media"
Adding test "gst_permissions"
Adding test "gst_rtspserver"
Adding test "gst_sessionmedia"
Adding test "gst_sessionpool"
Adding test "gst_stream"
Adding test "gst_threadpool"
Adding test "gst_token"
Adding test "gst_onvif"
Adding test "gst_rtspclientsink"
Adding test "test-cleanup"
Adding test "test-reuse"
Pkg-config binary for MachineChoice.HOST is cached as not found.
Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
CMake binary for MachineChoice.HOST is cached as not found
No CMake binary for machine 1 not found. Giving up.
Run-time dependency libcgroup found: NO (tried pkgconfig and cmake)
Message: Documentation not built as building it while cross building is not supported yet.
Configuring config.h using configuration
Program python3 found: YES (/usr/bin/python3)
Running command: /usr/bin/python3 -c import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")
   --- stdout ---

   --- stderr ---


Build targets in project: 1231
Subproject gst-rtsp-server finished.