Protobuf generator and bindings for Qt framework
|
|
6 gadi atpakaļ | |
|---|---|---|
| 3rdparty | 7 gadi atpakaļ | |
| cmake | 6 gadi atpakaļ | |
| examples | 6 gadi atpakaļ | |
| src | 6 gadi atpakaļ | |
| tests | 6 gadi atpakaļ | |
| .gitignore | 7 gadi atpakaļ | |
| .gitmodules | 7 gadi atpakaļ | |
| CMakeLists.txt | 7 gadi atpakaļ | |
| Doxyfile.in | 7 gadi atpakaļ | |
| LICENSE | 7 gadi atpakaļ | |
| ProjectConfig.cmake.in | 7 gadi atpakaļ | |
| README.md | 7 gadi atpakaļ |
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 . [--config <RELEASE|DEBUG>] -- -j<N>
Download and install:
Note: All applications should be in PATH
Enter to 3rdparty folder and run command:
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 . [--config <RELEASE|DEBUG>] -- /m:<N>
protoc --plugin=protoc-gen-qtprotobuf=<path/to/bin>/qtprotobufgen --qtprotobuf_out=<output_dir> <protofile>.proto [--qtprotobuf_opt=out=<output_dir>]
cd <build directory>
ctest