Re: googletest shared library
Lijun Chen
I tried INSANE_SKIP_${PN} += "dev-elf" and "dev-so", still got the QA error:
ERROR: googletest-1.10.0-r0 do_package_qa: QA Issue: -dev package googletest-dev contains non-symlink .so '/usr/lib/libgmock.so'
I also tried adding " -DCMAKE_INSTALL_PREFIX=/usr/local" to EXTRA_OEMAKE, and got the following error:
-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. ERROR: Logfile of failure stored in: /home/lijchen/hdd/ivdp/yocto/imx8/imx-yocto-bsp-Hardknott/build-imx8qmmek/tmp/work/cortexa72-cortexa53-crypto-poky-linux/googletest/1.10.0-r0/temp/log.do_package_qa.24701 ERROR: Task (/home/lijchen/hdd/ivdp/yocto/imx8/imx-yocto-bsp-Hardknott/sources/meta-openembedded/meta-oe/recipes-test/googletest/googletest_git.bb:do_package_qa) failed with exit code '1'
ERROR: googletest-1.10.0-r0 do_package: QA Issue: googletest: Files/directories 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 <fede@...>
Sent: Thursday, September 23, 2021 10:27:39 AM To: Lijun Chen Cc: yocto@... Subject: Re: [yocto] googletest shared library Hi,
To skip the QA you can use:
INSANE_SKIP_${PN} += "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@...> ha scritto:
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. |
|