المشكلة:
عند محاولة ترجمة مشروع باستخدام NanoPB، ترى تحذيرًا مثل
nanopb_import_fix.txt
MyProtocol.proto:11:27: Option "(nanopb)" unknown. Ensure that your proto definition file imports the proto which defines the option.الحل
في أعلى ملف .proto المذكور في رسالة التحذير، مباشرة بعد syntax = "proto3"; أضف السطر التالي:
import_nanopb_proto_fix.proto
import "nanopb.proto";بعد ذلك، يجب أن يختفي الخطأ.
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