Open gmabey opened 3 years ago
Ok the error you observe causes that Protobuf_INCLUDE_DIRS variable is not set when QtProtobufWellKnownTypes is trying to resolve its dependencies. There might be multiple possible reasons for this behavior. Could you please check if /usr/include/google/protobuf/message.h is present in your system?
I have feeling that you need to set the correct CMAKE_INCLUDE_PATH cache variable. Perhaps something like: -DCMAKE_INCLUDE_PATH=/usr/include/64
I'm attempting to build my application (and QtProtobuf) for CentOS 8.3 -- there's other platforms I've tried that have ended up with this same error, but I'm just focusing on CentOS 8.3 right now.
I had to install
cmake
3.20.3 (just the binary tarball) and I compiled Qt 5.12.11 from source.I got QtProtobuf to compile, but when I run
cmake
for my application, I get the following error:I've looked at
/usr/lib64/cmake/QtProtobuf/FindWrapProtobuf.cmake
but can't make any sense out of it.To build QtProtobuf I've tried using OS-provided versions of protobuf as well as the submodule
3rdparty
with identical results. I just don't understand what's going on in FindWrapProtobuf ...My questions are:
/usr/lib/64/cmake/
is a problem?cmake
I'm using?cmake
that has been used to build QtProtobuf?