gtest header files in SDK image

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

gtest header files in SDK image

跳至解决方案
897 次查看
lchen
Contributor III

Hi,

I've build imx8 SDK image for imx-image-full type and the gtest (googletest) header files are available in the SDK (usr/include/gtest/). However, when I try imx-image-core image type, the gtest header files are not present even I added googletest in  IMAGE_INSTALL. There is libgtest library, but no header files.

Any idea how to include gtest header files in the SDK image?

Thanks,

Lijun

0 项奖励
回复
1 解答
871 次查看
lchen
Contributor III

Probably I was not clear in the original question. The issue is if I change googletest cmake to support shared library by:

EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"

The header file is not included in the SDK image.

Turns out we have to change RDEPENDS_${PN}-dev += "${PN}-staticdev" to

RDEPENDS_${PN}-dev += "${PN}-dev"

 

Thanks,

Lijun

在原帖中查看解决方案

0 项奖励
回复
2 回复数
881 次查看
jimmychan
NXP TechSupport
NXP TechSupport

I think the package you need to install is "imx-gpu-sdk"

0 项奖励
回复
872 次查看
lchen
Contributor III

Probably I was not clear in the original question. The issue is if I change googletest cmake to support shared library by:

EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"

The header file is not included in the SDK image.

Turns out we have to change RDEPENDS_${PN}-dev += "${PN}-staticdev" to

RDEPENDS_${PN}-dev += "${PN}-dev"

 

Thanks,

Lijun

0 项奖励
回复