mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
protobuf: add workaround for qtgrpc
If protoc is enabled for the build, recipes using protobuf will fail when protoc is not available in the recipe sysroot: | The imported target "protobuf::protoc" references the file | | ".../recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/protoc-3.21.5.0" | | but this file does not exist. Possible reasons include: | | * The file was deleted, renamed, or moved to another location. | | * An install or uninstall procedure did not complete successfully. | | * The installation package was faulty and contained | | ".../recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/cmake/protobuf/protobuf-targets.cmake" | | but not all the files it references. Use SYSROOT_DIRS to stage the binary to sysroot so it's always available for other recipes. Pick-to: 6.6 6.5 Change-Id: I588c54d0459dbb88bc080e8bf55902e851a0a1d8 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
parent
4a78cb1c2d
commit
f00bd7134e
2
recipes-devtools/protobuf/protobuf_%.bbappend
Normal file
2
recipes-devtools/protobuf/protobuf_%.bbappend
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# CMake requires binaries to exist in sysroot, even if they have wrong architecture.
|
||||
SYSROOT_DIRS += "${bindir}"
|
||||
Loading…
Reference in New Issue
Block a user