I was "fighting" a couple of weeks trying to install PySide2 libraries without success. It is weird, because I did other HMI projects in the past with a Raspi4 processor and it worked perfectly. So i was hoping imx6 / imx8 would work.
Is there any YOcto BSP recipe working? Has anybody tried it? or maybe it has no sense to use it and only Qtcreator Boot2Qt is the “paid option” ?
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
Installing PySide2 on Toradex iMX6 or iMX8 platforms using Yocto can indeed be challenging, especially if you’re transitioning from a Raspberry Pi environment. Here are some steps and considerations to help you proceed:
Yocto and Toradex BSP Layers: Toradex provides BSP layers for Yocto, which are used to build custom Linux images for their hardware. While these layers support various software components, specific support for PySide2 might not be directly available out-of-the-box.
Creating a Custom Recipe: You may need to create a custom Yocto recipe to include PySide2. This involves writing a bitbake recipe that fetches and builds PySide2 from source. This can be complex but allows for customization to fit your needs.
QtCreator and Boot2Qt: If building PySide2 with Yocto is too complex, consider using QtCreator with Boot2Qt. This approach might simplify the deployment of Qt applications on embedded devices.
Using Torizon: Alternatively, you can use Torizon, Toradex’s industrial Linux platform, which supports Docker containers. This allows you to use a Debian-based container where PySide2 can be installed using standard package management tools, bypassing the need for Yocto recipes.
By considering these options, you can choose the path that best fits your project’s requirements. If you decide to proceed with Yocto, be prepared for a potentially steep learning curve in creating and managing custom recipes.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
I recommend using Torizon OS, which is a ready-to-use Industrial Embedded Linux Distribution.
It should simplify the OS setup so you just need to worry about the application development part.
We have some Pyside2 Templates using our Torizon IDE Extension.
Yes Allan, i’ve already tried Torizon, but it takes around 40 seconds to bootup and my application is a dashboard for a vehicle, so i can accept around10 seconds . That’s the reason i am trying Yocto boot.
Currently i have a version in Qt and it looks like this is the fastest way to have the application running, and maybe the only one. what dou you think ?
Best regards!
Gaston.
Well, in summary. It is possible, but it requires some work on the Linux boot side.
If you need help with customizing the Linux OS, we have some partners that can help you with it.