mingw32-make run failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mingw32-make run failed

18,447 次查看
moticsoft
Contributor I

请教:

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

0 项奖励
回复
20 回复数

11,949 次查看
DING-YI
Contributor I

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

0 项奖励
回复

18,002 次查看
Angle145
Contributor I

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

0 项奖励
回复

17,937 次查看
bigheadJano
Contributor I
我尝试过用管理员身份运行,还是一样会提示错误
0 项奖励
回复

17,925 次查看
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 项奖励
回复

18,169 次查看
醒时笑
Contributor I

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

0 项奖励
回复

18,163 次查看
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 项奖励
回复

18,161 次查看
醒时笑
Contributor I

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

0 项奖励
回复

18,145 次查看
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 项奖励
回复

18,137 次查看
醒时笑
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 项奖励
回复

18,131 次查看
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 项奖励
回复

18,114 次查看
醒时笑
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 项奖励
回复

18,104 次查看
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 项奖励
回复

18,097 次查看
醒时笑
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 项奖励
回复

18,086 次查看
LiubinGong
NXP Employee
NXP Employee

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

0 项奖励
回复

18,401 次查看
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 项奖励
回复

18,332 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @TieNiu 

 

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

 

BR

Alice

0 项奖励
回复

18,286 次查看
moticsoft
Contributor I

error.png

0 项奖励
回复

18,129 次查看
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 项奖励
回复

18,417 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @moticsoft 

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

 

BR

Alice

0 项奖励
回复

18,399 次查看
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 项奖励
回复