Line 36: |
Line 36: |
| === Protocol Buffers with C Bindings === | | === Protocol Buffers with C Bindings === |
| | | |
− | CRIU uses the [https://github.com/protobuf-c/protobuf-c C language bindings] of [https://developers.google.com/protocol-buffers/ Google Protocol Buffers] for serialization. The <code>protoc</code> tool is required at build time and <code>libprotobuf-c.so</code> is required at build time and at run time, assuming dynamic linking.
| |
| | | |
− | [[CRIT]] also uses python language bindings of Google Protocol Buffers and requires descriptor.proto from developer files that could be found in protobuf-devel package. | + | |
| + | CRIU uses the [https://developers.google.com/protocol-buffers/ Google Protocol Buffers] to read and write [[Images]] and thus requires [https://github.com/protobuf-c/protobuf-c C language bindings] to be built. The <code>protoc</code> tool is required at build time and <code>libprotobuf-c.so</code> is required at build and run time, assuming dynamic linking. [[CRIT]] also uses python language bindings of Google Protocol Buffers and requires <code>descriptor.proto</code> from developer files that could be found in <code>protobuf-devel</code> package. |
| | | |
| ==== Distribution Packages ==== | | ==== Distribution Packages ==== |
− | The easiest approach for most would be to install distribution packages. RPM package names: <code>protobuf-c-compiler</code>, <code>protobuf-c-devel</code>, <code>protobuf-devel</code>, <code>protobuf-python</code>. Debian package names: <code>protobuf-c-compiler</code>, <code>libprotobuf-c0-dev</code>, <code>protobuf-compiler</code>, <code>protobuf-python</code>. | + | The easiest approach for most would be to install distribution packages. |
| + | |
| + | * RPM package names |
| + | ** <code>protobuf</code> |
| + | ** <code>protobuf-c</code> |
| + | ** <code>protobuf-python</code> |
| + | ** <code>protobuf-compiler</code> |
| + | ** <code>protobuf-devel</code> |
| + | ** <code>protobuf-c-devel</code> |
| + | * Debian package names |
| + | ** <code>protobuf-c-compiler</code> |
| + | ** <code>libprotobuf-c0-dev</code> |
| + | ** <code>protobuf-compiler</code> |
| + | ** <code>protobuf-python</code> |
| | | |
| ==== Building Protocol Buffers From Source ==== | | ==== Building Protocol Buffers From Source ==== |
− | If you would like to build from source, you can use the following commands to obtain the source code repositories, configure, and build the code. On a Debian based system, you may have to install the following packages first: <code>autoconf curl g++ libtool</code>. | + | If you would like to build from source, you can use the following commands to obtain the source code repositories, configure, and build the code. On a Debian based system, you may have to do <code>autoconf curl g++ libtool</code> first. |
| | | |
| ===== Native protobuf ===== | | ===== Native protobuf ===== |