From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-pc10.blackberry.com (smtp-pc10.blackberry.com [74.82.81.42]) by mx.groups.io with SMTP id smtpd.web11.5628.1632408362752935629 for ; Thu, 23 Sep 2021 07:46:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@blackberry.com header.s=corp19 header.b=Tpi4+KRL; 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 18NEc6qe183432; Thu, 23 Sep 2021 10:45:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackberry.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=corp19; bh=hsvaBifktvxkw1UvvBDTrZxURv3Tolsq3M3CdjV0hqk=; b=Tpi4+KRL92QbcAp+jFamv1+HoxUwM5VtKszd0V60aCffok1/+kCGEOLa/+LMizqUvXAK f7OoL2dNyf+TO//IVDjum4QxqIXCwds3Pz8qD2RT1559IEdvIXoR5ELKoteIaX3xlpmN AOp75svBkKWcae98ecvPGLlVk3QN3PvDILjXxWoM2HEhDc2pFBxTmY5p58ElZr8zAnNg oBVQxKv6YtwJ+87a0lNiQU7n5VUh9Jiw2VsMQHZHo1D2hyVZPyOGhgjQN6ZigAnZybbH VOUDwqlwqSbhnJuH6S65MPxqSx96m9+vxScIxnb89oYtmchpnA/9mftr2mZkrFaBVx8s sg== Received: from xch214cnc.rim.net (xch214cnc.rim.net [10.3.27.119]) by mhs400cnc.rim.net with ESMTP id 3b7q5wux3k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 23 Sep 2021 10:45:57 -0400 Received: from XCH211YKF.rim.net (10.12.114.211) by XCH214CNC.rim.net (10.3.27.119) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Thu, 23 Sep 2021 10:45:57 -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; Thu, 23 Sep 2021 10:45:57 -0400 From: "Lijun Chen" To: Federico Pellegrin CC: "yocto@lists.yoctoproject.org" Subject: Re: [yocto] googletest shared library Thread-Topic: [yocto] googletest shared library Thread-Index: AQHXrvNmR2vvZSsL30OJxestQkC5W6uuznCAgAARxluAASeUKIAAaj2A///jB82AAUnfsIAAVIyA///AtJk= Date: Thu, 23 Sep 2021 14:45:57 +0000 Message-ID: <6be47b6387624c2686df9b5bdab5d1e1@blackberry.com> References: <3925c5329d6f46f78c5921fe7965662b@blackberry.com> <16A6EE364B338B15.22723@lists.yoctoproject.org> <15166f538f2144adabe2299deb3b2a3c@blackberry.com> <4440837f-5f69-28c4-7d8b-57653935790c@gmail.com> <16A735F63BB00E6A.1967@lists.yoctoproject.org> <1b84a7a456b54acaae9d98efc5731549@blackberry.com>, In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [100.64.197.219] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-09-23_04:2021-09-23,2021-09-23 signatures=0 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_6be47b6387624c2686df9b5bdab5d1e1blackberrycom_" --_000_6be47b6387624c2686df9b5bdab5d1e1blackberrycom_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" I tried INSANE_SKIP_${PN} +=3D "dev-elf" and "dev-so", still got the QA err= or: ERROR: googletest-1.10.0-r0 do_package_qa: QA Issue: -dev package googletes= t-dev contains non-symlink .so '/usr/lib/libgmock.so' -dev package googletest-dev contains non-symlink .so '/usr/lib/libgtest_mai= n.so' -dev package googletest-dev contains non-symlink .so '/usr/lib/libgmock_mai= n.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. Pleas= e consider fixing them. ERROR: Logfile of failure stored in: /home/lijchen/hdd/ivdp/yocto/imx8/imx-= yocto-bsp-Hardknott/build-imx8qmmek/tmp/work/cortexa72-cortexa53-crypto-pok= y-linux/googletest/1.10.0-r0/temp/log.do_package_qa.24701 ERROR: Task (/home/lijchen/hdd/ivdp/yocto/imx8/imx-yocto-bsp-Hardknott/sour= ces/meta-openembedded/meta-oe/recipes-test/googletest/googletest_git.bb:do_= package_qa) failed with exit code '1' I also tried adding " -DCMAKE_INSTALL_PREFIX=3D/usr/local" to EXTRA_OEMAKE,= and got the following error: ERROR: googletest-1.10.0-r0 do_package: QA Issue: googletest: Files/directo= ries were installed but not shipped in any package: /usr/local/include /usr/local/lib/libgmock.so /usr/local/lib/libgtest_main.so /usr/local/lib/libgmock_main.so /usr/local/lib/libgtest.so /usr/local/lib/cmake /usr/local/lib/pkgconfig /usr/local/lib/cmake/GTest /usr/local/lib/cmake/GTest/GTestTargets.cmake /usr/local/lib/cmake/GTest/GTestConfigVersion.cmake /usr/local/lib/cmake/GTest/GTestConfig.cmake /usr/local/lib/cmake/GTest/GTestTargets-noconfig.cmake /usr/local/lib/pkgconfig/gtest_main.pc /usr/local/lib/pkgconfig/gtest.pc /usr/local/lib/pkgconfig/gmock_main.pc /usr/local/lib/pkgconfig/gmock.pc /usr/local/include/gtest /usr/local/include/gmock /usr/local/include/gtest/gtest_prod.h /usr/local/include/gtest/gtest-test-part.h /usr/local/include/gtest/gtest_pred_impl.h /usr/local/include/gtest/gtest-matchers.h /usr/local/include/gtest/gtest-printers.h /usr/local/include/gtest/gtest.h /usr/local/include/gtest/gtest-param-test.h /usr/local/include/gtest/gtest-death-test.h /usr/local/include/gtest/gtest-typed-test.h /usr/local/include/gtest/gtest-message.h /usr/local/include/gtest/gtest-spi.h /usr/local/include/gtest/internal /usr/local/include/gtest/internal/gtest-death-test-internal.h /usr/local/include/gtest/internal/gtest-filepath.h /usr/local/include/gtest/internal/gtest-param-util.h /usr/local/include/gtest/internal/gtest-string.h /usr/local/include/gtest/internal/gtest-type-util.h /usr/local/include/gtest/internal/gtest-internal.h /usr/local/include/gtest/internal/gtest-type-util.h.pump /usr/local/include/gtest/internal/gtest-port-arch.h /usr/local/include/gtest/internal/gtest-port.h /usr/local/include/gtest/internal/custom /usr/local/include/gtest/internal/custom/gtest-printers.h /usr/local/include/gtest/internal/custom/gtest.h /usr/local/include/gtest/internal/custom/README.md /usr/local/include/gtest/internal/custom/gtest-port.h /usr/local/include/gmock/gmock-function-mocker.h /usr/local/include/gmock/gmock-generated-function-mockers.h /usr/local/include/gmock/gmock-generated-actions.h.pump /usr/local/include/gmock/gmock-matchers.h /usr/local/include/gmock/gmock-generated-matchers.h /usr/local/include/gmock/gmock-more-matchers.h /usr/local/include/gmock/gmock.h /usr/local/include/gmock/gmock-generated-actions.h /usr/local/include/gmock/gmock-nice-strict.h /usr/local/include/gmock/gmock-spec-builders.h /usr/local/include/gmock/gmock-more-actions.h /usr/local/include/gmock/gmock-generated-function-mockers.h.pump /usr/local/include/gmock/gmock-cardinalities.h /usr/local/include/gmock/gmock-actions.h /usr/local/include/gmock/gmock-generated-matchers.h.pump /usr/local/include/gmock/internal /usr/local/include/gmock/internal/gmock-port.h /usr/local/include/gmock/internal/gmock-pp.h /usr/local/include/gmock/internal/gmock-internal-utils.h /usr/local/include/gmock/internal/custom /usr/local/include/gmock/internal/custom/gmock-port.h /usr/local/include/gmock/internal/custom/gmock-generated-actions.h.pump /usr/local/include/gmock/internal/custom/gmock-matchers.h /usr/local/include/gmock/internal/custom/gmock-generated-actions.h /usr/local/include/gmock/internal/custom/README.md Please set FILES such that these items are packaged. Alternatively if they = are unneeded, avoid installing them or delete them within do_install. googletest: 69 installed and not shipped files. [installed-vs-shipped] ERROR: googletest-1.10.0-r0 do_package: Fatal QA errors found, failing task= . ________________________________ From: Federico Pellegrin Sent: Thursday, September 23, 2021 10:27:39 AM To: Lijun Chen Cc: yocto@lists.yoctoproject.org Subject: Re: [yocto] googletest shared library Hi, To skip the QA you can use: INSANE_SKIP_${PN} +=3D "dev-elf" (or any QA part you'd like to skip, ie. dev-elf or dev-so ...) Cheers, Federico Il giorno gio 23 set 2021 alle ore 15:33 Lijun Chen > ha scritto: Hi, If I switch to the default setting of the googletest recipe, the header fil= es are included in the SDK image. However, the libgtest libraries are stati= c. Looks FILES_SOLIBSDEV =3D "" disables googletest-dev to be included in the = SDK. Is there a way to change the library to dynamic and keep the header files? = i.e. just add EXTRA_OECMAKE =3D "-DBUILD_SHARED_LIBS=3DON " but skip the do= _package_qa part to avoid the QA issue due to un-versioned library? Thanks, Lijun ________________________________ From: yocto@lists.yoctoproject.org > on behalf = of Lijun Chen > Sent: Wednesday, September 22, 2021 1:45 PM To: Khem Raj; yocto@lists.yoctoproject.org Subject: Re: [yocto] googletest shared library Tried adding googletest to TOOLCHAIN_TARGET_TASK. The gtest .h files are st= ill not showing up. Thanks, ________________________________ From: Khem Raj > Sent: Wednesday, September 22, 2021 11:28:05 AM To: Lijun Chen; yocto@lists.yoctoproject.org Subject: Re: [yocto] googletest shared library 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 =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/pok= y/tree/meta/recipes-graphics/spir/spirv-tools_2021.2.bb*n34__;Iw!!COg3wY07H= nb7!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. > > > > ________________________________ 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. ---------------------------------------------------------------------- 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_6be47b6387624c2686df9b5bdab5d1e1blackberrycom_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

I tried INSANE_SKIP_${PN} +=3D "dev-elf" and "d= ev-so", still got the QA error:

ERROR: googletest-1.10.0-r0 do_package_qa: QA Issue: -dev package goog= letest-dev contains non-symlink .so '/usr/lib/libgmock.so'
-dev package googletest-dev contains non-symlink .so '/usr/lib/libgtest_mai= n.so'
-dev package googletest-dev contains non-symlink .so '/usr/lib/libgmock_mai= n.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. Pleas= e consider fixing them.
ERROR: Logfile of failure stored in: /home/lijchen/hdd/ivdp/yocto/imx8/imx-= yocto-bsp-Hardknott/build-imx8qmmek/tmp/work/cortexa72-cortexa53-crypto-pok= y-linux/googletest/1.10.0-r0/temp/log.do_package_qa.24701
ERROR: Task (/home/lijchen/hdd/ivdp/yocto/imx8/imx-yocto-bsp-Hardknott/sour= ces/meta-openembedded/meta-oe/recipes-test/googletest/googletest_git.bb:do_= package_qa) failed with exit code '1'

I also tried adding " -DCMAKE_INSTALL_PREFIX=3D/usr/local"<= /span> to EXTRA_OEMAKE, and got the following error:

ERROR: googletest-1.10.0-r0 do_package: QA Issue: googletest: Files/di= rectories were installed but not shipped in any package:
  /usr/local/include
  /usr/local/lib/libgmock.so
  /usr/local/lib/libgtest_main.so
  /usr/local/lib/libgmock_main.so
  /usr/local/lib/libgtest.so
  /usr/local/lib/cmake
  /usr/local/lib/pkgconfig
  /usr/local/lib/cmake/GTest
  /usr/local/lib/cmake/GTest/GTestTargets.cmake
  /usr/local/lib/cmake/GTest/GTestConfigVersion.cmake
  /usr/local/lib/cmake/GTest/GTestConfig.cmake
  /usr/local/lib/cmake/GTest/GTestTargets-noconfig.cmake
  /usr/local/lib/pkgconfig/gtest_main.pc
  /usr/local/lib/pkgconfig/gtest.pc
  /usr/local/lib/pkgconfig/gmock_main.pc
  /usr/local/lib/pkgconfig/gmock.pc
  /usr/local/include/gtest
  /usr/local/include/gmock
  /usr/local/include/gtest/gtest_prod.h
  /usr/local/include/gtest/gtest-test-part.h
  /usr/local/include/gtest/gtest_pred_impl.h
  /usr/local/include/gtest/gtest-matchers.h
  /usr/local/include/gtest/gtest-printers.h
  /usr/local/include/gtest/gtest.h
  /usr/local/include/gtest/gtest-param-test.h
  /usr/local/include/gtest/gtest-death-test.h
  /usr/local/include/gtest/gtest-typed-test.h
  /usr/local/include/gtest/gtest-message.h
  /usr/local/include/gtest/gtest-spi.h
  /usr/local/include/gtest/internal
  /usr/local/include/gtest/internal/gtest-death-test-internal.h
  /usr/local/include/gtest/internal/gtest-filepath.h
  /usr/local/include/gtest/internal/gtest-param-util.h
  /usr/local/include/gtest/internal/gtest-string.h
  /usr/local/include/gtest/internal/gtest-type-util.h
  /usr/local/include/gtest/internal/gtest-internal.h
  /usr/local/include/gtest/internal/gtest-type-util.h.pump
  /usr/local/include/gtest/internal/gtest-port-arch.h
  /usr/local/include/gtest/internal/gtest-port.h
  /usr/local/include/gtest/internal/custom
  /usr/local/include/gtest/internal/custom/gtest-printers.h
  /usr/local/include/gtest/internal/custom/gtest.h
  /usr/local/include/gtest/internal/custom/README.md
  /usr/local/include/gtest/internal/custom/gtest-port.h
  /usr/local/include/gmock/gmock-function-mocker.h
  /usr/local/include/gmock/gmock-generated-function-mockers.h
  /usr/local/include/gmock/gmock-generated-actions.h.pump
  /usr/local/include/gmock/gmock-matchers.h
  /usr/local/include/gmock/gmock-generated-matchers.h
  /usr/local/include/gmock/gmock-more-matchers.h
  /usr/local/include/gmock/gmock.h
  /usr/local/include/gmock/gmock-generated-actions.h
  /usr/local/include/gmock/gmock-nice-strict.h
  /usr/local/include/gmock/gmock-spec-builders.h
  /usr/local/include/gmock/gmock-more-actions.h
  /usr/local/include/gmock/gmock-generated-function-mockers.h.pump
  /usr/local/include/gmock/gmock-cardinalities.h
  /usr/local/include/gmock/gmock-actions.h
  /usr/local/include/gmock/gmock-generated-matchers.h.pump
  /usr/local/include/gmock/internal
  /usr/local/include/gmock/internal/gmock-port.h
  /usr/local/include/gmock/internal/gmock-pp.h
  /usr/local/include/gmock/internal/gmock-internal-utils.h
  /usr/local/include/gmock/internal/custom
  /usr/local/include/gmock/internal/custom/gmock-port.h
  /usr/local/include/gmock/internal/custom/gmock-generated-actions.h.p= ump
  /usr/local/include/gmock/internal/custom/gmock-matchers.h
  /usr/local/include/gmock/internal/custom/gmock-generated-actions.h   /usr/local/include/gmock/internal/custom/README.md
Please set FILES such that these items are packaged. Alternatively if they = are unneeded, avoid installing them or delete them within do_install.
googletest: 69 installed and not shipped files. [installed-vs-shipped]
ERROR: googletest-1.10.0-r0 do_package: Fatal QA errors found, failing task= .



From: Federico Pellegrin = <fede@evolware.org>
Sent: Thursday, September 23, 2021 10:27:39 AM
To: Lijun Chen
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto] googletest shared library
 

Hi,
To skip the QA you can use:

INSANE_SKIP_${PN} +=3D "dev-elf"

(or any QA part you'd like to skip, ie. dev-elf or dev-so ...)

Cheers,
Federico



Il giorno gio 23 set 2021 alle ore 15= :33 Lijun Chen <lijchen@blackb= erry.com> ha scritto:

Hi,


If I switch to the default setting of the googletest recipe, the header = files are included in the SDK image. However, the libgtest libraries are st= atic.

Looks FILES_SOLIBSDEV = =3D "" disables googletest-dev to be included in th= e SDK.


Is there a way to change the library to dynamic and keep the heade= r files? i.e. just add EXTRA_OECMAKE =3D "-DB= UILD_SHARED_LIBS=3DON " but skip the do_package_qa= part to avoid the QA issue due to un-versioned library?


Thanks,

Lijun




From= : yocto@lis= ts.yoctoproject.org <yocto@lists.yoctoproject.org> on behalf of Lijun = Chen <lijche= n@blackberry.com>
Sent: Wednesday, September 22, 2021 1:45 PM
To: Khem Raj; yocto@lists.yoctoproject.org
Subject: Re: [yocto] googletest shared library
 

Tried adding googletest to TOOLCHAIN_TARGET_TASK. The gtest .h files are still not sh= owing up.

Thanks,


Fr= om: Khem Raj <raj.khem@gmail.com>
Sent: Wednesday, September 22, 2021 11:28:05 AM
To: Lijun Chen; yocto@lists.yoctoproject.org
Subject: Re: [yocto] googletest shared library
 
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 <= br> > built both board image and SDK image. I can see libgtest.so is availab= le
> 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 affec= t
> that?
>
> SOLIBS =3D ".so"
> FILES_SOLIBSDEV =3D ""
>
> 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 <= br> >> 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 e= rrors
>> 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 erro= rs.
>> 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$
> <https://urldefense.com/v3/__http://git.yo= ctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-graphics/spir/spirv-too= ls_2021.2.bb*n34__;Iw!!COg3wY07Hnb7!4NI6d6tXUoxCQFleF-343dfbdFGnkZnqrYRVg3n= YTCBoGJTY9-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 fix= ed
> in the installation script of googletest, as versioned libraries are t= he
> expected default
>
>>
>>
>> Any idea to fix this?
>>
>>
>> Thanks,
>>
>> Lijun
>>
>>
>> ------------------------------------------------------------------= ------
>> This transmission (including any attachments) may contain confiden= tial
>> 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 othe= r 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, 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 =
> 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=
> 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 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_6be47b6387624c2686df9b5bdab5d1e1blackberrycom_--