install Cross compilation :
./fsl-toolchain/fsl-qoriq-glibc-x86_64-ppc64e6500-toolchain-2.0.sh
source /opt/fsl-qoriq/2.0/environment-setup-ppc64e6500-fsl-linux
linux$ powerpc64-fsl-linux-gcc test.c
test.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
已解决! 转到解答。
Share the general steps, please check the steps below:
Use toolchain from Linux SDK BSP for QorIQ processor:
This SDK supports toolchain for standalone compiling.
See the Section 3.3.7 (Install the Standalone Toolchain) in the SDK 2.0-1703 documentation:
Install the Standalone Toolchain | QorIQ SDK v2.0-1703 Documentation | NXP Semiconductors
Use similar command sequence for your program compiling:
$ . /opt/fsl-qoriq/2.0/environment-setup-aarch64-fsl-linux
Check result of "source" command. Use "$PATH" command. The "source" command should add path to gcc compiler.
You should see similar message:
echo $PATH
bash: /opt/fsl-qoriq/1.9/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/1.9/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe:
Thanks
Share the general steps, please check the steps below:
Use toolchain from Linux SDK BSP for QorIQ processor:
This SDK supports toolchain for standalone compiling.
See the Section 3.3.7 (Install the Standalone Toolchain) in the SDK 2.0-1703 documentation:
Install the Standalone Toolchain | QorIQ SDK v2.0-1703 Documentation | NXP Semiconductors
Use similar command sequence for your program compiling:
$ . /opt/fsl-qoriq/2.0/environment-setup-aarch64-fsl-linux
Check result of "source" command. Use "$PATH" command. The "source" command should add path to gcc compiler.
You should see similar message:
echo $PATH
bash: /opt/fsl-qoriq/1.9/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/1.9/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe:
Thanks