“root@verdin-imx8mp-15034062:~/QGround# ./QGroundControl.AppImage
-sh: ./QGroundControl.AppImage: cannot execute binary file: Exec format error” QGC for the x86_64 architecture but yocto aarch64 ,so its fail? How to solve this porblem and dowload QGC on IMX8MP?
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello!
The error you’re encountering, “Exec format error,” is due to trying to run an x86_64 binary on an aarch64 architecture, which is incompatible. To run QGroundControl (QGC) on your Verdin iMX8MP module, you’ll need a version compatible with the aarch64 architecture.
Here’s how you can proceed:
-
Check for Pre-built Binaries:
- Look for pre-built aarch64 binaries of QGroundControl. Sometimes, developers provide binaries for different architectures, including ARM.
-
Build from Source:
- If pre-built binaries aren’t available, you’ll need to build QGC from source. This involves setting up a build environment on your Yocto-based system.
- Ensure all necessary dependencies, like Qt libraries, are installed.
- Clone the QGroundControl source code from its official repository.
- Follow the build instructions in the QGroundControl documentation, specifying aarch64 as the target architecture.
-
Cross-Compilation:
- If building directly on the device is challenging, consider cross-compiling on a more powerful machine. This allows you to compile for aarch64 on an x86_64 host.
-
Testing and Deployment:
- After building QGC, transfer the binary to your Verdin iMX8MP module and test it to ensure it runs correctly.
By following these steps, you should be able to run QGroundControl on your Verdin iMX8MP module with a Yocto-based operating system. If you encounter specific issues during the build process, consulting the QGroundControl documentation or community forums may provide additional insights.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
How to set up Qt Creator to cross compile for embedded Linux | Toradex Developer Center.
Hi @Abdullah!
Sorry for the delayed response.
I saw another topic that you opened and you were using QGC. Were you able to solve this? If yes, please share your solution.
Best regards.
Lucas Azeituno