Problema:
Ao tentar compilar um projeto usando NanoPB, você vê um warning como
nanopb_import_fix.txt
MyProtocol.proto:11:27: Option "(nanopb)" unknown. Ensure that your proto definition file imports the proto which defines the option.Solução
No topo do arquivo .proto mencionado na mensagem de warning, logo após syntax = "proto3"; adicione a seguinte linha:
import_nanopb_proto_fix.proto
import "nanopb.proto";Depois disso, o erro deveria sumir.
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