Skip to content

openvino-inference-engine: use system protobuf instead of bundled#56

Open
kkepka wants to merge 1 commit intomainfrom
use-system-protobuf
Open

openvino-inference-engine: use system protobuf instead of bundled#56
kkepka wants to merge 1 commit intomainfrom
use-system-protobuf

Conversation

@kkepka
Copy link
Contributor

@kkepka kkepka commented Mar 4, 2026

Switch from bundled protobuf submodule to the system protobuf provided by meta-oe (protobuf_6.33.5.bb).

  • Remove protobuf git submodule from SRC_URI and SRCREV
  • Remove patch 0003 (target protoc build for bundled protobuf)
  • Add protobuf and protobuf-native to DEPENDS
  • Enable ENABLE_SYSTEM_PROTOBUF and set Protobuf_PROTOC_EXECUTABLE to the native protoc for cross-compilation
  • Set Protobuf_USE_STATIC_LIBS=OFF since meta-oe builds shared libs only (without this, CMake MODULE fallback fails to find libraries)

Switch from bundled protobuf submodule to the system protobuf
provided by meta-oe (protobuf_6.33.5.bb).

- Remove protobuf git submodule from SRC_URI and SRCREV
- Remove patch 0003 (target protoc build for bundled protobuf)
- Add protobuf and protobuf-native to DEPENDS
- Enable ENABLE_SYSTEM_PROTOBUF and set Protobuf_PROTOC_EXECUTABLE
  to the native protoc for cross-compilation
- Set Protobuf_USE_STATIC_LIBS=OFF since meta-oe builds shared libs
  only (without this, CMake MODULE fallback fails to find libraries)

Co-authored-by: David Nyström <david.nystrom@est.tech>
Signed-off-by: Kepka, Krzysztof <krzysztof.kepka@intel.com>
@kkepka kkepka requested a review from yktyagi March 4, 2026 10:46
@nysan
Copy link
Contributor

nysan commented Mar 4, 2026

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants