LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This 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


Reply
  Search this Thread
Old 08-23-2016, 02:29 AM   #1
lxdev
LQ Newbie
 
Registered: Jul 2016
Posts: 15

Rep: Reputation: Disabled
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.

Thanks!
 
Old 08-24-2016, 04:18 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
How much time do you have for the project?
 
Old 08-24-2016, 07:37 PM   #3
lxdev
LQ Newbie
 
Registered: Jul 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi Rinndalir, about 2 months' time?
 
Old 08-24-2016, 08:23 PM   #4
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
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.
 
Old 08-24-2016, 09:27 PM   #5
lxdev
LQ Newbie
 
Registered: Jul 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
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?
 
Old 08-25-2016, 12:19 PM   #6
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
You have everything, so now you just need to start work on it. Ask specific questions as you go.
 
Old 08-25-2016, 10:16 PM   #7
lxdev
LQ Newbie
 
Registered: Jul 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
I've existing Linux kernel setup on my embedded Linux.

So the next step is to compile / make qt-everywhere-opensource-4.8.6 using my vendor's compiler? and then install into my embedded Linux?
 
Old 08-28-2016, 09:29 PM   #8
lxdev
LQ Newbie
 
Registered: Jul 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Introduction - Building Embedded Linux Images with the Yocto Project - Part 1 samueltx Linux - General 1 02-08-2016 10:23 PM
LXer: Embedded Linux Distros Follow Yocto Project Lead LXer Syndicated Linux News 0 12-14-2012 10:02 PM
LXer: Build custom embedded Linux distributions with the Yocto Project LXer Syndicated Linux News 0 08-28-2012 03:30 PM
LXer: Yocto Project and OpenEmbedded align embedded Linux efforts LXer Syndicated Linux News 0 03-02-2011 10:11 PM
LXer: Yocto Project aims to standardize embedded Linux builds LXer Syndicated Linux News 0 10-27-2010 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration