QT6 Yocto Compile Error with Ubuntu 20.04

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

QT6 Yocto Compile Error with Ubuntu 20.04

Jump to solution
924 Views
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.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
903 Views
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.

 

View solution in original post

0 Kudos
Reply
1 Reply
904 Views
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 Kudos
Reply