How can I get Yocto with GTest configured properly for use in SDK

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

How can I get Yocto with GTest configured properly for use in SDK

ソリューションへジャンプ
4,457件の閲覧回数
tfarnham
Contributor II

I have added "gtest" to my IMAGE_INSTALL setup for the image I am creating.  I then run "bitbake <my-image> -c populate_sdk" and execute the resulting script to unpack the SDK.

This all seems to work properly.  The resulting SDK contains a .../usr/include/gtest with the header files I would expect for building gtest applications.  However, I am not finding the gtest source anywhere.  For example, I would expect there to exist in the SDK a .../usr/src/gtest/src that contains files such as gtest_main.cc.

Has anyone run into this sort of problem?  Is there some way I can manipulate the recipes to force the the gtest "src" folder to be copied into the sdk properly?

Thanks,

Terry Farnham

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
3,541件の閲覧回数
tfarnham
Contributor II

It seems that the Yocto populate_sdk procedure produces a pre-built set of the gtest libraries.  So the cmake procedures that we used to include gtest had to be altered to accommodate a pre-built gtest library, rather than building gtest on-the-fly with the typical cmake process.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
3,542件の閲覧回数
tfarnham
Contributor II

It seems that the Yocto populate_sdk procedure produces a pre-built set of the gtest libraries.  So the cmake procedures that we used to include gtest had to be altered to accommodate a pre-built gtest library, rather than building gtest on-the-fly with the typical cmake process.

0 件の賞賛
返信