How can I build the C++ protocol-buffer runtime as part of my project? It's Qt multi-platform.

39 views
Skip to first unread message

Gavin Stokes

unread,
Apr 20, 2019, 1:22:22 AM4/20/19
to Protocol Buffers
Hi all.

I'm building an application in Qt for numerous platforms, and thus I need the protobuf runtime to be built for the appropriate target platform and architecture automatically.

I've tried integrating the protobuf source code directly into my project as a library subproject, and eventually got it to build. However, any attempt to use it resulted in hundreds of "missing symbol" errors, despite many symbols being present in the lib.

Does anyone know how to simply integrate the compilation of the protobuf runtime (I only need C++) into a Qt C++ project?

Thanks!

Lukasz

unread,
May 8, 2019, 1:05:25 PM5/8/19
to Protocol Buffers
Hello,

You can look into MySQL source code. To be exact, look into repo/cmake/protobuf.cmake and repo/extra/protobuf/protobuf-3.6.1/*

Best Regards,
Lukasz
Reply all
Reply to author
Forward
0 new messages