Hi Ti Team,
I want to compile .C files using aarch64-oe-linux-gcc,but now there are many link errors when compiling.
I tried to solve it by searching the blog, but it still remains unsolved. Can you help me?
Best Regards,
Ruihua
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Ti Team,
I want to compile .C files using aarch64-oe-linux-gcc,but now there are many link errors when compiling.
I tried to solve it by searching the blog, but it still remains unsolved. Can you help me?
Best Regards,
Ruihua
I want to compile .C files using aarch64-oe-linux-gcc,but now there are many link errors when compiling.
If you want to use the compiler directly you'll need to specify the proper sysroot using the --sysroot parameter. However it's easier to just source the provided cross-compile ENV script which will take care of this for you, like this:
a0797059@dasso:~/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07/linux-devkit $ source environment-setup [linux-devkit]:~/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07/linux-devkit> cat << EOF > helloworld.c > #include <stdio.h> int main() { printf ("Hello World from TI!!!\n"); return 0; } > EOF [linux-devkit]:~/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07/linux-devkit> cat helloworld.c #include <stdio.h> int main() { printf ("Hello World from TI!!!\n"); return 0; } [linux-devkit]:~/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07/linux-devkit> $CC helloworld.c -o helloworld [linux-devkit]:~/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07/linux-devkit> file helloworld helloworld: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=d692d61d922a4ab3f47e32a28561740efaf64694, for GNU/Linux 3.14.0, with debug_info, not stripped
The respective documentation regarding this can be found here: https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/09_01_00/exports/docs/linux/Overview/GCC_ToolChain.html#linux-devkit
Regards, Andreas