QT6 Yocto Compile Error with Ubuntu 20.04

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

QT6 Yocto Compile Error with Ubuntu 20.04

跳至解决方案
2,682 次查看
muhammedk97
Contributor III

Hi everyone,

I am trying to compile Yocto 6.1.36_2.10 version with imx-image-full. When I use Ubuntu 22.04, it goes okay but with Ubuntu 20.04 it gives the error during qtbase: do_install_ptest_base at the attachment.

I installed all the necessary packages according to Yocto manuel of nxp. Why does the error occurs?

I have to compile it in Ubuntu 20.04 and the manual says Ubuntu 20.04 is fine for it.

Regards,

According to the log:

FAILED: tests/auto/testlib/selftests/cmptest/CMakeFiles/cmptest.dir/tst_cmptest.cpp.o

/Linux_6.1.36_2.1.0/imx-yocto-bsp/build/tmp/work/armv8a-poky-linux/qtbase/6.5.0-r0/recipe-sysroot/usr/include/c++/12.3.0/cmath:45:15: fatal error: math.h: No such file or directory
45 | #include_next <math.h>
| ^~~~~~~~ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,661 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @muhammedk97 

It seems that there is no math library on Ubuntu20.04 host. Please install it and try again.

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,662 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @muhammedk97 

It seems that there is no math library on Ubuntu20.04 host. Please install it and try again.

 

0 项奖励
回复