Received: from smtp-pc10.blackberry.com (smtp-pc10.blackberry.com [74.82.81.42]) by mx.groups.io with SMTP id smtpd.web12.6804.1632316711864361482 for ; Wed, 22 Sep 2021 06:18:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@blackberry.com header.s=corp19 header.b=jg5pjWmn; spf=pass (domain: blackberry.com, ip: 74.82.81.42, mailfrom: lijchen@blackberry.com) Received: from pps.filterd (mhs400cnc.rim.net [127.0.0.1]) by mhs400cnc.rim.net (8.16.0.43/8.16.0.43) with SMTP id 18MDGfac112630 for ; Wed, 22 Sep 2021 09:18:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackberry.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=corp19; bh=cC2k8RqYEnGzh7np739lL0NmKtBtO1tTdkgFfl2uLt8=; b=jg5pjWmnfYdUENPJ3xIQToHCXGpp06Qk69jSQMO7o4B5B9CZn+2kGN5aciAcMu3E33np rwajz8o1Apr8YWtYcYMicltHpJ/HCNxsKE2pGDivcEQduZleXFfvj0d7NC1GFIug38aL SMrByTIfP4wk16h6XpC3+0+G4EAwpGxak/3f82d9RxUT1qhsMFmSi+LhOJU+JHNgQVhs tBfXED04DlXUw7/E8J4vKJQBxMNhEG2/4D3qipfPxTKUo4alJDEuNJKaDpk7T/rxcfRX t8+4NOvBXMi4FpbFLApZnQiTHFsnTEvxk8oLlzIvJQ7wGQV2YzcJrM9gm16HA+dBWc1a Jg== Received: from xch213ykf.rim.net (xch213ykf.rim.net [10.12.114.213]) by mhs400cnc.rim.net with ESMTP id 3b7q5wscrg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 22 Sep 2021 09:18:30 -0400 Received: from XCH211YKF.rim.net (10.12.114.211) by XCH213YKF.rim.net (10.12.114.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Wed, 22 Sep 2021 09:18:29 -0400 Received: from XCH211YKF.rim.net ([fe80::dca:23f8:c2c0:7180]) by XCH211YKF.rim.net ([fe80::dca:23f8:c2c0:7180%5]) with mapi id 15.01.2308.014; Wed, 22 Sep 2021 09:18:29 -0400 From: "Lijun Chen" To: "yocto@lists.yoctoproject.org" Subject: Re: [yocto] googletest shared library Thread-Topic: [yocto] googletest shared library Thread-Index: AQHXrvNmR2vvZSsL30OJxestQkC5W6uuznCAgAARxluAASeUKA== Date: Wed, 22 Sep 2021 13:18:29 +0000 Message-ID: <15166f538f2144adabe2299deb3b2a3c@blackberry.com> References: <3925c5329d6f46f78c5921fe7965662b@blackberry.com>,,<16A6EE364B338B15.22723@lists.yoctoproject.org> In-Reply-To: <16A6EE364B338B15.22723@lists.yoctoproject.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [100.64.197.76] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-09-22_05:2021-09-22,2021-09-22 signatures=0 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_15166f538f2144adabe2299deb3b2a3cblackberrycom_" --_000_15166f538f2144adabe2299deb3b2a3cblackberrycom_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" 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 he= ader files to the SDK image? Looks the following lines affect that? SOLIBS =3D ".so" FILES_SOLIBSDEV =3D "" Thanks, Lijun ________________________________ From: yocto@lists.yoctoproject.org on behalf= of Lijun Chen 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 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 =3D "-DBUILD_SHARED_LIBS=3DON " > > > 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!!COg3wY07Hnb= 7!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 info= rmation, privileged material (including material protected by the solicitor= -client or other applicable privileges), or constitute non-public informati= on. Any use of this information by anyone other than the intended recipient= is prohibited. If you have received this transmission in error, please imm= ediately reply to the sender and delete this information from your system. = Use, dissemination, distribution, or reproduction of this transmission by u= nintended recipients is not authorized and may be unlawful. ---------------------------------------------------------------------- This transmission (including any attachments) may contain confidential info= rmation, privileged material (including material protected by the solicitor= -client or other applicable privileges), or constitute non-public informati= on. Any use of this information by anyone other than the intended recipient= is prohibited. If you have received this transmission in error, please imm= ediately reply to the sender and delete this information from your system. = Use, dissemination, distribution, or reproduction of this transmission by u= nintended recipients is not authorized and may be unlawful. --_000_15166f538f2144adabe2299deb3b2a3cblackberrycom_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

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 av= ailable 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 =3D ".so"
FILES_SOLIBSDEV =3D ""

Thanks,
Lijun


From: yocto@lists.yoctopr= oject.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_g= it.bb:
>
> EXTRA_OECMAKE =3D "-DBUILD_SHARED_LIBS=3DON "
>
>
> The shared libraries were built successfully. However, there are error= s
> 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.cg= i/poky/tree/meta/recipes-graphics/spir/spirv-tools_2021.2.bb*n34__;Iw!!COg3= wY07Hnb7!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 th= an
> the intended recipient is prohibited. If you have received this
> transmission in error, please immediately reply to the sender and dele= te
> this information from your system. Use, dissemination, distribution, o= r
> reproduction of this transmission by unintended recipients is not
> authorized and may be unlawful.
>
>
>
>

This transmission (including any attachments) may contain confidential info= rmation, privileged material (including material protected by the solicitor= -client or other applicable privileges), or constitute non-public informati= on. Any use of this information by anyone other than the intended recipient is prohibited. If you have rec= eived this transmission in error, please immediately reply to the sender an= d delete this information from your system. Use, dissemination, distributio= n, 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 solic= itor-client or other applicable privileges), or constitute non-public infor= mation. Any use of this information by anyone other than the intended recip= ient is prohibited. If you have received this transmission in error, please= immediately reply to the sender and delete this information from your syst= em. Use, dissemination, distribution, or reproduction of this transmission = by unintended recipients is not authorized and may be unlawful.
--_000_15166f538f2144adabe2299deb3b2a3cblackberrycom_--