mingw32-make run failed

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

mingw32-make run failed

16,715 Views
moticsoft
Contributor I

请教:

Gui_Guider 1.5.0 , 模拟器,选择C语音,然后出现提示: mingw32-make run failed ,应当如何解决?

0 Kudos
Reply
20 Replies

10,218 Views
DING-YI
Contributor I

先点击编译部署c试试,我点完就可以了

0 Kudos
Reply

16,270 Views
Angle145
Contributor I

管理员身份运行打开软件就可以了

0 Kudos
Reply

16,205 Views
bigheadJano
Contributor I
我尝试过用管理员身份运行,还是一样会提示错误
0 Kudos
Reply

16,193 Views
LiubinGong
NXP Employee
NXP Employee

Hi bigheadJano

    Can you check the java version on your host? if it is lower than 1.8.

please upgrade the Java version to 1.8.0 or higher, Reopen the GUIGuider and rebuild this project. if it still doesn't work, Please share the test project for debugging. Thank you very much for your support. BR Liubin

0 Kudos
Reply

16,437 Views
醒时笑
Contributor I

Is this problem solved? Now, also experiencing the same issue.

0 Kudos
Reply

16,431 Views
LiubinGong
NXP Employee
NXP Employee

In order to better reproduce the problem, please provide the following information:

  1. host OS
  2. project created version(1.5.0 or other version)
  3. Is there a 'make' in the system environment variable? 
  4. would you share the error log info? 
  5. v7 work fine, but v8 failed, all right?

Best Regards

Liubin

0 Kudos
Reply

16,429 Views
醒时笑
Contributor I

操作系统使用 win10,创建 8.3 版本时出错,7.x 版本正常,系统环境变量有 make 编译器。

0 Kudos
Reply

16,413 Views
LiubinGong
NXP Employee
NXP Employee

Can you build this project by command line mode?  Please follow blew steps:

  1. cd {project path}/lvgl-simulator
  2. make -r -j4;

And would you please share the full build log? Thanks 

Best Regards

Liubin

0 Kudos
Reply

16,405 Views
醒时笑
Contributor I

C:\Users\admin\Desktop\test\demo\lvgl-simulator>make
"Linking simulator.exe"
build/object/main.o:main.c:(.text.startup+0xf5): undefined reference to `video_play'
build/object/main.o:main.c:(.text.startup+0x109): undefined reference to `__mingw_sleep'
d:/program files (x86)/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build/object/main.o: bad reloc address 0x20 in section `.eh_frame'
d:/program files (x86)/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile:112: recipe for target 'default' failed
make: *** [default] Error 1

0 Kudos
Reply

16,399 Views
LiubinGong
NXP Employee
NXP Employee

Can you check the java version on your host? if it is lower than 1.8,

  1. please upgrade the Java version to 1.8.0 or higher,
  2. Reopen the GUIGuider and rebuild this project.

if it still doesn't work, Please share the test project for debugging. Thank you very much for your support.

BR 

Liubin

0 Kudos
Reply

16,382 Views
醒时笑
Contributor I

这是Python版本。Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 位 (AMD64)] 在 win32 上”

下面是测试演示。

0 Kudos
Reply

16,372 Views
LiubinGong
NXP Employee
NXP Employee

According to checking your test project, I found that the code of GUI GUIder is not generated, it should be the problem with the version of JAVA,  Would you check your java version? 


Best Regards

Liubin

0 Kudos
Reply

16,365 Views
醒时笑
Contributor I

更换成 Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32还是有相同的问题.

0 Kudos
Reply

16,354 Views
LiubinGong
NXP Employee
NXP Employee

是java 版本不能低于1.8, 不是python 版本。请您检查一下您系统中安装的java 版本

0 Kudos
Reply

16,669 Views
TieNiu
Contributor I

"Compiling C:/NXP/GUI-Guider-Projects/cc12/lvgl-simulator/../generated/gui_guider.c" "Compiling C:/NXP/GUI-Guider-Projects/cc12/lvgl-simulator/../generated/events_init.c" "Compiling C:/NXP/GUI-Guider-Projects/cc12/lvgl-simulator/../custom/custom.c" main.c: In function 'main': main.c:76:9: warning: implicit declaration of function 'video_play' [-Wimplicit-function-declaration] 76 | video_play(&guider_ui); | ^~~~~~~~~~ "Linking simulator.exe" ' collect2.exe: error: ld returned 1 exit status mingw32-make: *** [default] Error 1 Makefile:112: recipe for target 'default' failed

0 Kudos
Reply

16,600 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @TieNiu 

 

Could you please take a screenshot show your steps, thanks!

 

BR

Alice

0 Kudos
Reply

16,554 Views
moticsoft
Contributor I

error.png

0 Kudos
Reply

16,397 Views
LiubinGong
NXP Employee
NXP Employee

I guess your problem is caused by the wrong generated code, please check your java version. It cannot be lower than 1.8. would you check the generated code status? 

Best regards

Liubin

0 Kudos
Reply

16,685 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @moticsoft 

Could you please show your step, I will reproduce it on my side.

 

BR

Alice

0 Kudos
Reply

16,667 Views
TieNiu
Contributor I
我也遇到同样的问题 v7是正常的 v8会报下面错误



"Compiling C:/NXP/GUI-Guider-Projects/cc12/lvgl-simulator/../generated/gui_guider.c"
"Compiling C:/NXP/GUI-Guider-Projects/cc12/lvgl-simulator/../generated/events_init.c"
"Compiling C:/NXP/GUI-Guider-Projects/cc12/lvgl-simulator/../custom/custom.c"
main.c: In function 'main':
main.c:76:9: warning: implicit declaration of function 'video_play' [-Wimplicit-function-declaration]
76 | video_play(&guider_ui);
| ^~~~~~~~~~
"Linking simulator.exe"
'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [default] Error 1
Makefile:112: recipe for target 'default' failed


0 Kudos
Reply