Hi, You need to read and follow the instruction from the <DIR>/README.txt (<DIR> is where your protobuf-x.x.x resding) file to configure/compile/check/install the package before you can use it (That for the C++ portion). For the Java portion, you need to read and follow the instruction in the <DIR>java/README.txt to build the library, after that, install your *.jar file according to the JAVA standard to use it.
Hope this would help, Steven On Tue, Apr 6, 2010 at 2:19 AM, Bo Zhang <zhan...@google.com> wrote: > Hi, > > I'm new to both protocol buffer and to linux system, so excuse me for > simple questions. :) > > > I try to "make" in the example directory. I got the following errors: > > > > ...../protobuf-2.3.0/examples$ make > pkg-config --cflags protobuf # fails if protobuf is not installed > -pthread -I/usr/local/include > c++ add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config -- > cflags --libs protobuf` > In file included from add_person.cc:6: > addressbook.pb.h:9:42: error: google/protobuf/stubs/common.h: No such > file or directory > addressbook.pb.h:12:2: error: #error This file was generated by a > newer version of protoc which is > addressbook.pb.h:13:2: error: #error incompatible with your Protocol > Buffer headers. Please update > addressbook.pb.h:14:2: error: #error your headers. > addressbook.pb.h:22:52: error: google/protobuf/ > generated_message_util.h: No such file or directory > ......(many more) > > My questions are: > 1. Why it tells me that protobuf is not installed? > > 2. It keeps failing in finding google/protobuf/.... files. Why does > this happen? > > > > Thanks a lot > > Zhang Bo > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to proto...@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.