NanoPB beheben: MyProtocol.proto: Option "(nanopb)" unknown.
English
Deutsch
Problem:
Beim Versuch, ein Projekt mit NanoPB zu kompilieren, wird eine Warnung wie diese angezeigt
nanopb_import_fix.txt
MyProtocol.proto:11:27: Option "(nanopb)" unknown. Ensure that your proto definition file imports the proto which defines the option.Lösung
Fügen Sie am Anfang der in der Warnung genannten .proto-Datei, direkt nach syntax = "proto3";, die folgende Zeile hinzu:
import_nanopb_proto_fix.proto
import "nanopb.proto";Danach sollte der Fehler behoben sein.
Check out similar posts by category:
NanoPB
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow