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?
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:
-
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.
-
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
-
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.
-
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
-
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.
Hi @Abdullah!
Could you please provide more details? It is easier to support you and help with your problem/issue if you give us as many details as possible.
Best regards.
Lucas Azeituno
Thanks for your reply Lucas ,but I have solved the problem.
Thanks anyways
Hi @Abdullah!
Could you please share your problem and how you solved it? Sometimes, your problem could be the same as another customer’s, and you could help them with your solution.
Best regards.
Lucas Azeituno
My Yocto System Runs on aarch64 architecture, but QGroundControl is designed for x86_64
Initially, I planned to cross-compile QGroundControl because it does not provide a build specifically for the aarch64 architecture of my Yocto-based system. However, while exploring the layers further, I discovered that Flatpak was already available. By adding the necessary configuration to my local.conf
file, I was able to use Flatpak to download and run a repository that works directly on my operating system.
This solution eliminated the need for cross-compiling. I understand that the title may not perfectly align with the resolution I found, but the process led me to this convenient alternative.