Hi,
I do not find how can I compile multiple files at once.
I have this architecture :
/protobuff/
1st.proto
2nd.proto
3rd.proto
drivers/
driver1.proto
driver2.proto
1st.proto is importing 2nd, 3rd, and driver1
2nd is importing driver1
3rd is importing driver1 and driver2
I'm trying to compile using this command :
generator-bin\nanopb_generator .\protobuff\1st.proto
but getting not found errors for each import:
protobuff/1st.proto:8:1: Import "2nd.proto" was not found or had errors.
protobuff/1st.proto:9:1: Import "3rd.proto" was not found or had errors.
protobuff/1st.proto:11:1: Import "drivers/driver1.proto" was not found or had errors.
etc...
I guess that's not the right way to compile it ?
A second annoying thing I encounter is that I need to duplicate each proto file because for nanopb to output C code for a byte array for example :
optional bytes EPC = 2 [(nanopb).max_size = 24];
We need to specify the max_size like this.
The thing is that when trying to compile the same file with protoc to output java code, it does not compile due to this.