feat(clusterApp): cross-compile clusterApp ok
This commit is contained in:
22
packages/cross_file.txt
Normal file
22
packages/cross_file.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
# cross_file_armhf.txt
|
||||
[binaries]
|
||||
c = '/opt/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gcc' # 你的 C 交叉编译器
|
||||
cpp = '/opt/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-g++' # 你的 C++ 交叉编译器
|
||||
ar = '/opt/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-ar' # 归档工具
|
||||
strip = '/opt/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-strip' # strip 工具
|
||||
pkg-config = 'pkg-config' # pkg-config,通常使用主机的即可,可能需要调整 PKG_CONFIG_PATH
|
||||
|
||||
[host_machine]
|
||||
system = 'linux'
|
||||
cpu_family = 'arm'
|
||||
cpu = 'armv7' # 或 'cortex-a7' 等更具体的型号
|
||||
endian = 'little'
|
||||
|
||||
[built-in options] # 将 c_args / c_link_args 移到这里
|
||||
c_args = ['-march=armv7-a']
|
||||
c_link_args = []
|
||||
|
||||
[properties]
|
||||
needs_exe_wrapper = true # 因为无法在主机上运行目标二进制文件
|
||||
sys_root = '/home/huaxu/develop/Cluster/packages/install'
|
||||
pkg_config_libdir = '//home/huaxu/develop/Cluster/packages/install/lib/pkgconfig'
|
||||
Reference in New Issue
Block a user