cancel
Showing results for 
Search instead for 
Did you mean: 

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

S.Kamath
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Kevin HUBER
ST Employee

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.

View solution in original post

2 REPLIES 2
Kevin HUBER
ST Employee

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.
S.Kamath
Associate II

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...