QT6 Yocto Compile Error with Ubuntu 20.04

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

QT6 Yocto Compile Error with Ubuntu 20.04

ソリューションへジャンプ
2,628件の閲覧回数
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,607件の閲覧回数
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,608件の閲覧回数
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 件の賞賛
返信