Building a customized Linux image using Yocto Project with Qt stack
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building a customized Linux image using Yocto Project with Qt stack
Dear fellow coders,
i'm fairly new to Linux in general. Do you've a rough timeframe how long it'd take if i'm building a customized Linux image for my development board using Yocto Project, and then integrating Qt stack into my Linux image? My development board is not a reference board in Yocto Project.
Two months can be a long time or not enough time. Depends on what your skill level is. Do you have a kernel already built along with a device tree? Because if you're starting from scratch it will be more work.
I'm pretty new to Linux & qt in general. What I have is the SDK with the necessary toolchains and there's also a pre-compiled Linux kernel image; rootfs & Uboot, included in the SDK when unpacked. There's a menuconfig I can access in my SDK to configure the Linux options but a default option has been selected. So that said, probably I won't go by the Yocto Project route to build the Linux distribution but figure out how to link my current SDK + Qt together.
What I need guidance now is, based on my default linux configuration (as provided by SDK), how may I go about executing the steps to add Qt library into my rootfs, and then compile everything into images (i.e. kernel image, rootfs, Uboot) that has Qt lib in it, so that I can run Qt apps / demos on my embedded Linux once I flash in all the images?
I managed to compile the embedded version of Qt-everywhere-opensource-4.8.6 for arms, in my host computer running Ubuntu.
As I'd just like to test out the Qt demos on my embedded Linux board, I ran Putty Terminal and access the demos and examples compiled in Qt-everywhere-opensource-4.8.6 via my NSF and met the following problems:
FYI, the Qt lib files are residing in the compiled Qt-everywhere-opensource-4.8.6 folder, sitting on my host Ubuntu folder. Will the Qt demos / examples have problems running when I execute them in my embedded Linux? Also, do I need to append my .profile file in my embedded Linux board to point to the PATH in my host computer Ubuntu for the necessary Qt lib files or i'd have to copy the Qt lib files physically into my Lib folder on my embedded Linux board?
Error 1:
When I tried to execute a Qt demo in my Putty terminal, it says:
/mnt/QtEmbedded-4.8.6-arm/examples/qws/framebuffer # ./framebuffer
Error: cannot open framebuffer device: Operation not permitted
Error 2:
when I tried to execute deform demo on putty terminal, it says:
/mnt/QtEmbedded-4.8.6-arm/demos/deform # ./deform Bus error
Error 3:
when I tried to execute books demo on putty terminal, it says:
./books: error while loading shared libraries: libQtSql.so.4: cannot open shared object file: No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.