Skip to main content
S.Kamath
Associate III
March 15, 2023
Solved

Getting error/warning "Gtk-WARNING **: 18:09:46.325: cannot open display:" while executing "hello-world" sample application with STM32MP157F-DK2. Expected a GTK window is NOT displayed on display screen

  • March 15, 2023
  • 2 replies
  • 4119 views

Hi, I'm getting error "(gtk_hello_world:1474): Gtk-WARNING **: 18:09:46.325: cannot open display: " while executing "hello-world" sample application with STM32MP157F-DK2. Expected a GTK window is NOT displayed on display screen

I have followed steps as mentioned in Create a simple hello-world application - stm32mpu

I'm using Ubuntu 22.04.2 LTS installed on Windows 11 laptop with Oracle VM VirtualBox Manager 7.0.6

Error/Warning message screenshot attached

This topic has been closed for replies.
Best answer by Kevin HUBER

Hello @S.Kamath​ ,

Please have a look at this page that explains all the classic problems encountered by the users:

https://wiki.st.com/stm32mpu/wiki/Wayland_Weston_troubleshooting_grid

You can't run "gtk_hello_world" like this, you have to follow what is explained in the Getting started wiki page:

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Create_a_simple_hello-world_application#Deploy_and_execute

Best Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

2 replies

Kevin HUBER
Kevin HUBERBest answer
Technical Moderator
March 15, 2023

Hello @S.Kamath​ ,

Please have a look at this page that explains all the classic problems encountered by the users:

https://wiki.st.com/stm32mpu/wiki/Wayland_Weston_troubleshooting_grid

You can't run "gtk_hello_world" like this, you have to follow what is explained in the Getting started wiki page:

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Create_a_simple_hello-world_application#Deploy_and_execute

Best Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
S.Kamath
S.KamathAuthor
Associate III
March 15, 2023

Thanks Kevin,

I have followed Deploy and execute commands as mentioned in the following YouTube link. I think this video is quite outdated for latest starter Kit package releases.

STM32MP1 workshop - 5 Simple Linux application with Development Package - YouTube

I'm able to make it working by now following above Wiki page...