Hi Steven, Thanks for your reply. In deed I was following the instructions.
Anyway I had a rerun. Make check fails one test (again, which I forgot to mention before), as shown below: [==========] 729 tests from 102 test cases ran. (2899 ms total) [ PASSED ] 728 tests. [ FAILED ] 1 test, listed below: [ FAILED ] BootstrapTest.GeneratedDescriptorMatches . . . . ========================================== 1 of 5 tests failed Please report to [email protected] ========================================== Could anyone explain to me why this test fails? Seems to me that there's something wrong with version. How could I fix this? Thanks a lot Zhang Bo On Apr 6, 10:07 pm, Steven Ong <[email protected]> wrote: > 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 <[email protected]> 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<protobuf%[email protected] > > om> > > . > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
