gtest header files in SDK image

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

gtest header files in SDK image

Jump to solution
1,148 Views
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 Kudos
Reply
1 Solution
1,122 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,132 Views
jimmychan
NXP TechSupport
NXP TechSupport

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

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