Tool/software:
Hi,
I try to cross-compile kmscube with linux-sdk-11.00.09.04 and run the exe on EVM. The kmscube source code is pulled from its official website (Mesa / kmscube · GitLab) and I did not make any adjustments. Kmscube is based on meson build system and I wrote a cross-compile script "arm_cc.txt" to configure compiling tool-chains and rootfs related with linux-sdk. I attach "arm_cc.txt" below.
[binaries]
c = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc'
cpp = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-g++'
ar = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-ar'
strip = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-strip'
ld = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-ld'
pkgconfig = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/x86_64-arago-linux-gnu-pkg-config'
# pkgconfig has two options
[properties]
skip_sanity_check = true
sys_root = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/aarch64-oe-linux'
pkg_config_libdir = '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/pkgconfig:/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/aarch64-oe-linux/usr/share/pkgconfig'
[built-in options]
c_args = ['--sysroot', '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/aarch64-oe-linux']
c_link_args = ['-Wl,-rpath', '/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/aarch64-oe-linux/usr/lib', '-Wl,--as-needed']
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
cpu = 'armv8-a'
endian = 'little'
When implement cross-compiling, I firstly use command "meson setup --cross-file arm_cc.txt build" to configure the cross-compiling environment. The relevant log is attached below.
Then I use command "cd build/ " , "meson compile" to build. The error log appears here saying "cannot find crt1.o, crti.o, crtbegin.o". The relevant error log is attached below.
Referring to linux-sdk, I did find crt1.o/crti.o through path "/home/fanbm1/ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/linux-devkit/sysroots/x86_64-arago-linux/usr/lib". I wonder why this error occurs after I configured the system-root path.