gtest header files in SDK image

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

gtest header files in SDK image

ソリューションへジャンプ
898件の閲覧回数
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 解決策
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 件の賞賛
返信
2 返答(返信)
882件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
873件の閲覧回数
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 件の賞賛
返信