Help with meta-qt5 on embedded linux IMX.6 Quad Platform.
-
Hi guys,
I bought a Versalogic Tetra board and was able to build an embedded linux yocto image from their directions. I added in meta-qt5 to the yocto build and I was having some questions.
In the past I have been able to setup cross compiling using the Qt Creator IDE to build, deploy and run the programs onto a Raspberry Pi 3. This took some time but ultimately I would like to achieve the same thing for this board here.
I am not overly familiar with yocto and how things work on that end - but one thing I am running into is I am not sure what version of Qt is brought onto the board using meta-qt5. Depending on the time of the post I am getting different answers as to the version. Is there anyway I can tell for myself via the terminal what my version of qt is?
I need to know the version so I can use that version to cross compile with the toolchain compiler for this board (which I am building now).
Also if anyone has done this before I would also appreciate any links to good articles referring to stuff like cross compiling or the yocto project.
So far the board is booting up into an x11 desktop with some demo qt5 apps. As I progress I will likely have more questions.
Thank you very much!
-Shawn -
Hi guys,
I bought a Versalogic Tetra board and was able to build an embedded linux yocto image from their directions. I added in meta-qt5 to the yocto build and I was having some questions.
In the past I have been able to setup cross compiling using the Qt Creator IDE to build, deploy and run the programs onto a Raspberry Pi 3. This took some time but ultimately I would like to achieve the same thing for this board here.
I am not overly familiar with yocto and how things work on that end - but one thing I am running into is I am not sure what version of Qt is brought onto the board using meta-qt5. Depending on the time of the post I am getting different answers as to the version. Is there anyway I can tell for myself via the terminal what my version of qt is?
I need to know the version so I can use that version to cross compile with the toolchain compiler for this board (which I am building now).
Also if anyone has done this before I would also appreciate any links to good articles referring to stuff like cross compiling or the yocto project.
So far the board is booting up into an x11 desktop with some demo qt5 apps. As I progress I will likely have more questions.
Thank you very much!
-Shawn@MrShawn said in Help with meta-qt5 on embedded linux IMX.6 Quad Platform.:
Is there anyway I can tell for myself via the terminal what my version of qt is?
qmake -v
-
Hey @jsulm - thanks for the quick response. I did try the qmake -v command. It does not detect it. I don't think the meta-qt5 delivers NOT* the full build systems but rather the dependencies (.so) files.
I went snooping in the filesystem just now and see that in /user/lib directory I have files like these:
libQt5Core.so.5 libQt5Core.so.5.6 libQt5Core.so.5.6.2
This leads me to believe that I have qt 5.6.2 - Is this a good assumption to make?
Do you know a way I can get a newer version of Qt with meta-qt5? 5.6.2 is pretty old!
Thanks,
Shawn -
Hey @jsulm - thanks for the quick response. I did try the qmake -v command. It does not detect it. I don't think the meta-qt5 delivers NOT* the full build systems but rather the dependencies (.so) files.
I went snooping in the filesystem just now and see that in /user/lib directory I have files like these:
libQt5Core.so.5 libQt5Core.so.5.6 libQt5Core.so.5.6.2
This leads me to believe that I have qt 5.6.2 - Is this a good assumption to make?
Do you know a way I can get a newer version of Qt with meta-qt5? 5.6.2 is pretty old!
Thanks,
Shawn@MrShawn said in Help with meta-qt5 on embedded linux IMX.6 Quad Platform.:
Is this a good assumption to make?
Usually it is.
"Do you know a way I can get a newer version of Qt with meta-qt5?" - can't you define the version you want to build in the recipe? -
@jsulm , you are probably right about that. I spent some time trying to figure out how to do this. I dont see anywhere in the recipe which version is defined. I wound up cloning the HEAD branch from github.com/meta-qt5/meta-qt5 and replaced the whole directory in my source directory for my build but now when I try to build I get errors from python and webkit recipes so not sure.
I also tried to download the source for 5.6 and you cant even get it with the online installer!! Eek - I'd really like to bump up my qt version to at least 5.12.
I'll keep playing around but not sure if you have any other tips. Any official documentation on meta-qt5 comes up with qt for device creation which is behind a commercial pay well.
-Shawn
-
@jsulm , you are probably right about that. I spent some time trying to figure out how to do this. I dont see anywhere in the recipe which version is defined. I wound up cloning the HEAD branch from github.com/meta-qt5/meta-qt5 and replaced the whole directory in my source directory for my build but now when I try to build I get errors from python and webkit recipes so not sure.
I also tried to download the source for 5.6 and you cant even get it with the online installer!! Eek - I'd really like to bump up my qt version to at least 5.12.
I'll keep playing around but not sure if you have any other tips. Any official documentation on meta-qt5 comes up with qt for device creation which is behind a commercial pay well.
-Shawn
@MrShawn said in Help with meta-qt5 on embedded linux IMX.6 Quad Platform.:
I dont see anywhere in the recipe which version is defined
It is usually simply the commit ID of the version you want to use.
See https://www.yoctoproject.org/docs/1.6/dev-manual/dev-manual.html#new-recipe-fetching-code -
@jsulm thanks for the help/pointers.
Went out of town for thanksgiving. I tried building before I left by modifying a file.
I am using the krogoth meta-qt5 but I am struggling to find where I can set that. I changed the qt5-git.inc file to 5.12 but had issues with qtenginio. Reading closing it says qt_modules so it must be some place else.
Not sure where I can put the hash like you suggested for the commit on the newest (or newer) of qt 5.