How to start Qt application development under Yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to start Qt application development under Yocto

1,702 Views
hkh
Contributor II

I have been reading blogs trying to figure out how to develop Qt applications for iMX6 under Yocto. I need to understand what the process is (I have not used Qt before).

I can build various Yocto images and run them on my Nitrogen6x board. For example, fsl-image-gui comes up with the GUI, and I can run qtdemo. When I try to run qtdemo from the console, it says it can't find (or connect) to X Server. Maybe the GUI is interfering?

I saw suggestions of using qte-in-use-image, but it appears that it has it's own problems (for example gstreamer may not be included, issues with X Server, etc). And, I am not sure if that resolves the issue I have with running the demo (and eventually running my own application).

I don't care about the GUI that comes with fsl-image-gui since I want to have my own application, but I need VPU and other hardware support for MIPI camera, H.264 compression, and other image processing tasks performed in hardware.

Can someone point me in the right direction?

Thanks,

Labels (4)
0 Kudos
1 Reply

827 Views
hkh
Contributor II

I found this link:

EcoCAR2 - Run the provided Qt application example

and was able to kill the GUI, and start qtdemo only when HDMI was connected:

$ killall -9 matchbox-window-manager

$ export DISPLAY=:0.0

$ /usr/bin/Xorg ...

$ qtdemo

Now my questions are:

1. How do I make this the default power-up behavior (run a certain Qt application)

2. How do I select which display is used (HDMI, LCD, or both?)

3. How do I get started developing my Qt application

Thanks,

0 Kudos