What Linux OS do I need to use to create and use GTK application?

Hello all,
I’m trying to create and use GTK application in Toradex Colibri IMX6DL, So which OS do I need to install in Toradex Colibri IMX6DL.

Specs:
SOM : Toradex Colibri IMX6DL
Evaluation Board: Colibri Evaluation Board Rev 2.0
and I’m using resistive touch LCD display connected to Generic RGB Display(X20)

Hello @Nolan_Maverick , welcome to the community :slight_smile:

You can install Torizon with evaluation containers , and create a container that runs the GTK examples

Which version of GTK are you planning to use, 3 or 4?

Best regards,
Josep

Thanks for reply @josep.tx
Can you share relevant resource for Torizon with evaluation containers, I’m using GTK 3
and one more question is don’t we have any Yocto based Image to use, so that I can customize, when necessary? and can’t I use Linux LXDE Image?

Hello @Nolan_Maverick,
About your questions:

don’t we have any Yocto based Image to use, so that I can customize, when necessary?

Yes, you can download, customize and build out Yocto based images following the guides of our developer page.

and can’t I use Linux LXDE Image?

If you want to add LXDE support to your image, you can use this layer :
https://layers.openembedded.org/layerindex/branch/master/layer/meta-lxde/

Best regards,
Josep

Hello @Nolan_Maverick

Could you please share your Dockerfile?
Have you added ENV DISPLAY=:0 to it?

Best regards,
Josep

Hello @josep.tx
Sorry there is mistake in my previous message, I’m able run Debian With Weston Wayland Compositor in IMX6DL, and it is displaying GUI successfully, as shown below


Now my problem is Don’t know what is the password for it, to install GTK 3 in weston-terminal.

Please tell me the password, and then I will try to Compile GTK code.

Hello @Nolan_Maverick ,
The default password should be torizon . In case you changed it use the one you created.
Can you try running apt-get update without sudo? It should also work

Best regards,
Josep

hello @josep.tx
please look this picture I tried but no use

@josep.tx note that password is asking in evaluation container

Hello @josep.tx
I followed this small tutorial https://www.youtube.com/watch?v=hwCXSckISXM
while trying to run python script, I’m gettinng this error

root@d7ed33a6cd26:/# python3 /qtdemo.py
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
Dumb buffers not supported
linuxfb: Failed to initialize screen
Segmentation fault (core dumped)

Hello @josep.tx
Now I’m able to display GTK screens in Toradex Embedded Linux Demo with LXDE, but still I’m unable to display screens in Torizon containers