All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: Lijun Chen <lijchen@blackberry.com>,
	"yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] googletest shared library
Date: Wed, 22 Sep 2021 08:28:05 -0700	[thread overview]
Message-ID: <4440837f-5f69-28c4-7d8b-57653935790c@gmail.com> (raw)
In-Reply-To: <15166f538f2144adabe2299deb3b2a3c@blackberry.com>

The .h files will be in dev pkg in this case googletest-dev
what happens if you add googletest to TOOLCHAIN_TARGET_TASK

On 9/22/21 6:18 AM, Lijun Chen wrote:
> Hi,
> 
> 
> Now I included googletest to the IMAGE_INSTALL in my image file, and 
> built both board image and SDK image. I can see libgtest.so is available 
> in both images. However, gtest/gtest.h is a not present in SDK. How do I 
> add the header files to the SDK image? Looks the following lines affect 
> that?
> 
> SOLIBS = ".so"
> FILES_SOLIBSDEV = ""
> 
> Thanks,
> Lijun
> 
> ------------------------------------------------------------------------
> *From:* yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> on 
> behalf of Lijun Chen <lijchen@blackberry.com>
> *Sent:* Tuesday, September 21, 2021 3:50 PM
> *To:* Konrad Weihmann; yocto@lists.yoctoproject.org
> *Subject:* Re: [yocto] googletest shared library
> 
> Thanks Konrad. That worked.
> 
> ------------------------------------------------------------------------
> *From:* Konrad Weihmann <kweihmann@outlook.com>
> *Sent:* Tuesday, September 21, 2021 10:26:19 AM
> *To:* Lijun Chen; yocto@lists.yoctoproject.org
> *Subject:* Re: [yocto] googletest shared library
> 
> On 21.09.21 16:18, Lijun Chen wrote:
>> Hi,
>> 
>> I would like to include libgtest.so into my Yocto image. I added 
>> googletest to IMAGE_INSTALL and added the following line to 
>> sources/meta-openembedded/meta-oe/recipes-test/googletest/googletest_git.bb:
>> 
>> EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON "
>> 
>> 
>> The shared libraries were built successfully. However, there are errors 
>> in do_package_qc as following:
>> 
>> 
>> ERROR: googletest-1.10.0-r0 do_package_qa: QA Issue: -dev package 
>> googletest-dev contains non-symlink .so '/usr/lib/libgmock.so'
>> -dev package googletest-dev contains non-symlink .so 
>> '/usr/lib/libgtest_main.so'
>> -dev package googletest-dev contains non-symlink .so 
>> '/usr/lib/libgmock_main.so'
>> -dev package googletest-dev contains non-symlink .so 
>> '/usr/lib/libgtest.so' [dev-elf]
>> ERROR: googletest-1.10.0-r0 do_package_qa: QA run found fatal errors. 
>> Please consider fixing them.
> 
> https://urldefense.com/v3/__http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-graphics/spir/spirv-tools_2021.2.bb*n34__;Iw!!COg3wY07Hnb7!4NI6d6tXUoxCQFleF-343dfbdFGnkZnqrYRVg3nYTCBoGJTY9-K0NANM4iMsNNleww$ 
> <https://urldefense.com/v3/__http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-graphics/spir/spirv-tools_2021.2.bb*n34__;Iw!!COg3wY07Hnb7!4NI6d6tXUoxCQFleF-343dfbdFGnkZnqrYRVg3nYTCBoGJTY9-K0NANM4iMsNNleww$> 
> 
> (and the next lines) might give you a hint what to do in this case.
> Although one could also consider that's something that needs to be fixed
> in the installation script of googletest, as versioned libraries are the
> expected default
> 
>> 
>> 
>> Any idea to fix this?
>> 
>> 
>> Thanks,
>> 
>> Lijun
>> 
>> 
>> ------------------------------------------------------------------------
>> This transmission (including any attachments) may contain confidential 
>> information, privileged material (including material protected by the 
>> solicitor-client or other applicable privileges), or constitute 
>> non-public information. Any use of this information by anyone other than 
>> the intended recipient is prohibited. If you have received this 
>> transmission in error, please immediately reply to the sender and delete 
>> this information from your system. Use, dissemination, distribution, or 
>> reproduction of this transmission by unintended recipients is not 
>> authorized and may be unlawful.
>> 
>> 
>> 
>> 
> ------------------------------------------------------------------------
> This transmission (including any attachments) may contain confidential 
> information, privileged material (including material protected by the 
> solicitor-client or other applicable privileges), or constitute 
> non-public information. Any use of this information by anyone other than 
> the intended recipient is prohibited. If you have received this 
> transmission in error, please immediately reply to the sender and delete 
> this information from your system. Use, dissemination, distribution, or 
> reproduction of this transmission by unintended recipients is not 
> authorized and may be unlawful.
> ------------------------------------------------------------------------
> This transmission (including any attachments) may contain confidential 
> information, privileged material (including material protected by the 
> solicitor-client or other applicable privileges), or constitute 
> non-public information. Any use of this information by anyone other than 
> the intended recipient is prohibited. If you have received this 
> transmission in error, please immediately reply to the sender and delete 
> this information from your system. Use, dissemination, distribution, or 
> reproduction of this transmission by unintended recipients is not 
> authorized and may be unlawful.
> 
> 
> 
> 

  reply	other threads:[~2021-09-22 15:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21 14:18 googletest shared library Lijun Chen
2021-09-21 14:26 ` [yocto] " Konrad Weihmann
2021-09-21 19:50   ` Lijun Chen
     [not found]   ` <16A6EE364B338B15.22723@lists.yoctoproject.org>
2021-09-22 13:18     ` Lijun Chen
2021-09-22 15:28       ` Khem Raj [this message]
2021-09-22 17:45         ` Lijun Chen
     [not found]         ` <16A735F63BB00E6A.1967@lists.yoctoproject.org>
2021-09-23 13:32           ` Lijun Chen
2021-09-23 14:27             ` Federico Pellegrin
2021-09-23 14:45               ` Lijun Chen
2021-09-24  2:10                 ` Federico Pellegrin
2021-09-29 14:56                   ` Lijun Chen
2021-09-23 17:54             ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4440837f-5f69-28c4-7d8b-57653935790c@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=lijchen@blackberry.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.