nanopb in windows.

1,122 views
Skip to first unread message

mrlu...@gmail.com

unread,
Mar 22, 2013, 7:48:12 AM3/22/13
to nan...@googlegroups.com
Hi,

I am a bit puzzled to get understand how can I used this project libs in windows.

I think it misses some more help installing and use this framework both for windows and linux.

Thanks

petteri...@gmail.com

unread,
Mar 22, 2013, 8:17:31 AM3/22/13
to nan...@googlegroups.com
Hi,

> I am a bit puzzled to get understand how can I used this project
libs in windows.

The hard part is to get the generator running. Basically you need the
Google Protocol Buffers "protoc.exe", to generate .pb files from your
.proto files.

After that, you also need Python to run the nanopb generator to generate
the .pb.c and .pb.h files.

After that it is just a matter of adding the .c files to your project
and compile, whatever C compiler you are using should just work.

I agree that the generator setup is a bit cumbersome. It is listed as an
issue on the tracker, but I haven't bothered to make an installation
package for the generator yet.

--
Petteri

mrlu...@gmail.com

unread,
Mar 22, 2013, 8:24:06 AM3/22/13
to nan...@googlegroups.com
I will try.

I think you should add some real examples for some microcontrollers IDE target will help.
(Or make a tutorial to add automation to Eclipse)

Unfortunately still nowadays most of windows companies have their tool for windows :/

mrlu...@gmail.com

unread,
Mar 22, 2013, 9:27:17 AM3/22/13
to nan...@googlegroups.com, mrlu...@gmail.com
What do you mean with:

"To compile the library, you'll need these libraries:
protobuf-compiler python-protobuf libprotobuf-dev"

to compile with library? the nanopb library? pb.h pb_decode.c.. etc?
and where do we get that libraries?

Petteri Aimonen

unread,
Mar 22, 2013, 9:43:11 AM3/22/13
to nan...@googlegroups.com
Hi,

> "To compile the library, you'll need these libraries:
> protobuf-compiler python-protobuf libprotobuf-dev"

It would be more proper to say: "to run the nanopb-generator".

They all come with the Google's official Protocol Buffers library.

--
Petteri
Reply all
Reply to author
Forward
0 new messages