Yocto cross-compile

abdullah@abdullah-G5-5500:~/qgroundcontrol/build$ /opt/tdx-xwayland/7.1.0/sysroots/x86_64-tdxsdk-linux/usr/bin/qmake …/qgroundcontrol.pro
Info: creating stash file /home/abdullah/qgroundcontrol/build/.qmake.stash
Project MESSAGE: Qt version 5.15.13
Project ERROR: Unsuported Linux toolchain, only GCC 32- or 64-bit is supported

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Abdullah,

The error message you’re encountering, “Unsupported Linux toolchain, only GCC 32- or 64-bit is supported,” indicates a mismatch between the toolchain expected by your project and the one provided by your Yocto SDK. Here are some steps to help you resolve this issue:

  1. Verify SDK Installation: Ensure that the SDK is correctly set up for your target architecture. It should match the architecture of your Toradex module, such as ARM for i.MX 8 or i.MX 6.

  2. Check Environment Setup: Make sure you have sourced the environment setup script from the SDK. This script sets up necessary environment variables, including paths for the cross-compiler and other tools. Run the following command, replacing the path with your SDK’s location:

    source /path/to/your/sdk/environment-setup-cortexaXXhf-neon-tdx-linux-gnueabi
    
  3. Toolchain Compatibility: Verify that the toolchain version is compatible with the Qt version you are using. The error might occur if the Qt project expects a different GCC version than what the SDK provides.

  4. Qt Configuration: Ensure that the qmake command you are using is from the SDK and not a different version installed on your host system. Specify the correct path if needed:

    /opt/tdx-xwayland/7.1.0/sysroots/x86_64-tdxsdk-linux/usr/bin/qmake
    
  5. Project Configuration: Review your Qt project’s .pro file to ensure there are no settings conflicting with the SDK’s toolchain.

By following these steps, you should be able to resolve the toolchain compatibility issue and successfully cross-compile your project using the Yocto SDK on your Toradex hardware.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/i-MX-Processors/sumo4-14-toolchain-problem/td-p/935684.