Protobuf generator and bindings for Qt framework
Alexey Edelev 02e424b7e7 Improve registration of qtprotobuf classes | il y a 5 ans | |
---|---|---|
3rdparty | il y a 5 ans | |
cmake | il y a 5 ans | |
examples | il y a 5 ans | |
src | il y a 5 ans | |
tests | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.gitmodules | il y a 5 ans | |
CMakeLists.txt | il y a 5 ans | |
Doxyfile.in | il y a 5 ans | |
LICENSE | il y a 5 ans | |
ProjectConfig.cmake.in | il y a 5 ans | |
README.md | il y a 5 ans |
Protobuf plugin to generate Qt classes
Check installation of protobuf and grpc in your system. Minimum required versions are protobuf-3.6.0 and grpc-1.15.0.
Note: Older versions could be supported as well but not officially tested.
If required versions of libraries are not found in your system, you may use all-in-one build procedure for prerequesties
Clone grpc project from official repository to 3rdparty folder:
git submodule update --init --recursive
mkdir build
cd build
cmake ..
cmake --build . -j <N> [--config <RELEASE|DEBUG>]
Download and install:
Note: All applications should be in PATH
Clone grpc project from official repository to 3rdparty folder:
git submodule update --init --recursive
Open Qt MSVC command line and follow steps:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
cd <directory with qtprotobuf project>
mkdir build
cd build
cmake ..
cmake --build . -j <N> [--config <RELEASE|DEBUG>]
protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobuf --qtprotobuf_out=<output_dir> <protofile>.proto [--qtprotobuf_opt=out=<output_dir>]