Details
-
Bug
-
Resolution: Fixed
-
P0: Blocker
-
6.5
-
None
-
-
e8c56f733 (dev), 545400add (dev), 0ae19cc74 (6.5), 3715cc356 (6.5), db7cd689e (6.5), 1f2984484 (dev)
Description
Yocto does a mingw cross-build on linux which fails to configure after change https://codereview.qt-project.org/c/qt/qtgrpc/+/457103
| -- Configure summary: | | Qt Protobuf tools: | Qt Protobuf generator .................. yes | Qt GRPC: | gRPC support ........................... yes | Native gRPC support .................... no | Qt GRPC tools: | Qt GRPC generator ...................... yes | | | -- Configuring done | CMake Error in CMakeLists.txt: | IMPORTED_IMPLIB not set for imported target "protobuf::libprotoc" | configuration "Release". | | | CMake Error in CMakeLists.txt: | IMPORTED_IMPLIB not set for imported target "protobuf::libprotobuf" | configuration "Release".
Also target builds fail when QT_FORCE_BUILD_TOOLS is set.
| FAILED: libexec/qtprotobufgen | /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/qtgrpc/6.6.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld.gold: error: /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/qtgrpc/6.6.0-r0 /recipe-sysroot-native/usr/lib/libprotoc.so.3.21.5.0: incompatible target | /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/qtgrpc/6.6.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld.gold: error: /home/sapiippo/qt6/build/tmp/work/cortexa57-poky-linux/qtgrpc/6.6.0-r0 /recipe-sysroot-native/usr/lib/libprotobuf.so.3.21.5.0: incompatible target
Where build tries to link against host libs instead of the target libs of protobuf.