Re: [OE-core] gtest and gmock not added to SDK
On Fri, May 22, 2020 at 3:50 PM Tom Hochstein wrote: > On Fri, May 22, 2020 at 03:33 PM, Andre McCurdy wrote: > On Fri, May 22, 2020 at 5:48 PM Tom Hochstein wrote: > > The gtest and gmock packages provided by googletest are not added to the SDK > by default. I assume it is because the googletest main package is empty? > > Are you including googletest in the image used to create the SDK or > gmock and gtest? > > It looks like gmock and gtest are only mentioned in the googletest > recipe as PROVIDES, so they are aliases for build time dependencies > only. For run time dependencies you should use googletest. > > Right, I should have mentioned that. I have a DEPENDS on gtest for a package > in my image. To fix the SDK, I added an RDEPENDS on googletest from the same > package. What you have done is probably the best solution. You could alternatively add googletest to the image. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138616): https://lists.openembedded.org/g/openembedded-core/message/138616 Mute This Topic: https://lists.openembedded.org/mt/74408257/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] gtest and gmock not added to SDK
On Fri, May 22, 2020 at 03:33 PM, Andre McCurdy wrote: > > On Fri, May 22, 2020 at 2:29 PM Otavio Salvador > wrote: > >> On Fri, May 22, 2020 at 5:48 PM Tom Hochstein >> wrote: >> >>> The gtest and gmock packages provided by googletest are not added to the >>> SDK by default. I assume it is because the googletest main package is >>> empty? >> >> > > Are you including googletest in the image used to create the SDK or > gmock and gtest? > > It looks like gmock and gtest are only mentioned in the googletest > recipe as PROVIDES, so they are aliases for build time dependencies > only. For run time dependencies you should use googletest. Right, I should have mentioned that. I have a DEPENDS on gtest for a package in my image. To fix the SDK, I added an RDEPENDS on googletest from the same package. > > > >> >>> I added an RDEPENDS_${PN} from the dependent package to fix it. Is there a >>> better solution? >> >> You can change the packages to have their `-dev` to rdepends on >> `gtest/gmock-dev` for example. >> >> -- >> Otavio Salvador O.S. Systems >> http://www.ossystems.com.br http://code.ossystems.com.br >> Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138615): https://lists.openembedded.org/g/openembedded-core/message/138615 Mute This Topic: https://lists.openembedded.org/mt/74408257/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] gtest and gmock not added to SDK
On Fri, May 22, 2020 at 2:29 PM Otavio Salvador wrote: > > On Fri, May 22, 2020 at 5:48 PM Tom Hochstein wrote: > > The gtest and gmock packages provided by googletest are not added to the > > SDK by default. I assume it is because the googletest main package is empty? Are you including googletest in the image used to create the SDK or gmock and gtest? It looks like gmock and gtest are only mentioned in the googletest recipe as PROVIDES, so they are aliases for build time dependencies only. For run time dependencies you should use googletest. > > I added an RDEPENDS_${PN} from the dependent package to fix it. Is there a > > better solution? > > You can change the packages to have their `-dev` to rdepends on > `gtest/gmock-dev` for example. > > -- > Otavio Salvador O.S. Systems > http://www.ossystems.com.brhttp://code.ossystems.com.br > Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138613): https://lists.openembedded.org/g/openembedded-core/message/138613 Mute This Topic: https://lists.openembedded.org/mt/74408257/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] gtest and gmock not added to SDK
On Fri, May 22, 2020 at 5:48 PM Tom Hochstein wrote: > The gtest and gmock packages provided by googletest are not added to the SDK > by default. I assume it is because the googletest main package is empty? > > I added an RDEPENDS_${PN} from the dependent package to fix it. Is there a > better solution? You can change the packages to have their `-dev` to rdepends on `gtest/gmock-dev` for example. -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138611): https://lists.openembedded.org/g/openembedded-core/message/138611 Mute This Topic: https://lists.openembedded.org/mt/74408257/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[OE-core] gtest and gmock not added to SDK
The gtest and gmock packages provided by googletest are not added to the SDK by default. I assume it is because the googletest main package is empty? I added an RDEPENDS_${PN} from the dependent package to fix it. Is there a better solution? Tom -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138610): https://lists.openembedded.org/g/openembedded-core/message/138610 Mute This Topic: https://lists.openembedded.org/mt/74408257/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-