Can't run gtk_hello_world example on STM32MP157A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 02:15 AM
Hi, i dont know if it is a stupid question or not but anyways, I was following the STM32MP157A-DK2 tutorial for developing on ARM Cortex A7
i maked the example given for hello_world.c with given makefike. It works fine on my linux pc but the borad i cant run it on the board. it gives this error every time.
@@@@�0hello_world: line 1: can't open @8
0
��: no such file
./gtk_hello_world: line 1: ./gtk_hello_world: line 6: : not found
./gtk_hello_world: line 1: �qXX���+�l��: not found
ELF: not found
./gtk_hello_world: line 1: ?h?p?x?�?��?: not found
./gtk_hello_world: line 6: ./gtk_hello_world: line 2: �?
�?
�?�?�?�?��H�H��/H��t��H���5�/��%�h���������h���������h���������h��������h��������h��������h��������h��q��������a������h: not found
can't open-�8?8@0
@00*@0�: no such file./gtk_hello_world: line 3: ��A������h
��1������h
��������h��������h�����������%�.D����%.D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D�H�=3�z-��H�=�-H��-H9�tH�V-H��t: File name too long
./gtk_hello_world: line 1: can't open K: no such file
./gtk_hello_world: line 1: E�: not found
./gtk_hello_world: line 6: : not found
./gtk_hello_world: line 6: �: not found
it always gives me error i cant even run just a printf line:
#include <gtk/gtk.h>
int main ()
{
printf("Hello_World!!");
}
it gives
root@stm32mp1:/usr/local# ./gtk_hello_world
./gtk_hello_world: line 1: syntax error: unexpected "("
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 02:53 AM
Hi @Mustafa Çerçi​
it's not only a matter of installation of SDK but source the env prior to make
You should get :
PC $> echo $CROSS_COMPILE
arm-ostl-linux-gnueabi-
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 02:24 AM
Hi @Mustafa Çerçi​
Same executable can not work both on your linux station and on Target
If working well on your station I suspect you forget, or not properly, load the SDK prior to call make command in order to cross-compile for MP1.
Double check your procedure.
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 02:50 AM
Thanks for the fast answer, I installed SDK before i can do it again, now deleted every file now started installing again. After i finish that i will try to build again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 02:53 AM
Hi @Mustafa Çerçi​
it's not only a matter of installation of SDK but source the env prior to make
You should get :
PC $> echo $CROSS_COMPILE
arm-ostl-linux-gnueabi-
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 03:01 AM
Alright, im gonna check it thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 03:54 AM
it is solved after re-installation, i dont know maybe some corrupted file or my linux got confused, or maybe i got confused and forget to source SDK, thanks for the fast answer!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 03:57 AM
Btw is there any example for me to wirte code for ARM-A7 on CubeIDE? even hello world is enough for now, just want to if i need import anything or to see important project settings for A7 projects etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 05:06 AM
Hi @Mustafa Çerçi​
yes please look at this post :
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 05:15 AM
OH, thanks a lot, i will look at it as soon as possible, it is kinda hard to learn an work on this kind of environment after woking on Visual Studio and pyCharm, they are so easy to learn comparing to this.
