thanks. indeed, building from source also the x86 version and using that one everything went fine
best On 13/giu/2013, at 19:14, Feng Xiao <[email protected]> wrote: On Wed, Jun 12, 2013 at 12:34 AM, Curzio Basso <[email protected]>wrote: > Hi all, > > I've got some problem trying to cross-compile for ARM, apparently related > to the unit tests (but maybe related to wrong > configuration...). Sorry to bother but I did not find any hint in other > messages... which probably means I'm missing something > obvious :-( > > I'm cross-compiling for ARM, on an x86 Ubuntu 13.04. I installed Ubuntu's > protocol buffer packages. This is what I did: > > $ mkdir build-arm > $ cd build-arm > $ ../configure CC=arm-linux-gnueabi-gcc > CXX=arm-linux-gnueabi-g++ --prefix=/usr/local/arm-linux-gnueabi/ --host=arm > --with-protoc=/usr/bin/protoc > You are using a old version protoc which doesn't support the new "import public" syntax. > $ make > > and then I get into the following problem: > > /usr/bin/protoc -I../../src --cpp_out=. > ../../src/google/protobuf/unittest.proto > ../../src/google/protobuf/unittest_empty.proto > ../../src/google/protobuf/unittest_import.proto > ../../src/google/protobuf/unittest_import_public.proto > ../../src/google/protobuf/unittest_mset.proto > ../../src/google/protobuf/unittest_optimize_for.proto > ../../src/google/protobuf/unittest_embed_optimize_for.proto > ../../src/google/protobuf/unittest_custom_options.proto > ../../src/google/protobuf/unittest_lite.proto > ../../src/google/protobuf/unittest_import_lite.proto > ../../src/google/protobuf/unittest_import_public_lite.proto > ../../src/google/protobuf/unittest_lite_imports_nonlite.proto > ../../src/google/protobuf/unittest_no_generic_services.proto > ../../src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto > google/protobuf/unittest_import.proto:53:8: Expected a string naming the > file to import. > google/protobuf/unittest.proto: Import > "google/protobuf/unittest_import.proto" was not found or had errors. > google/protobuf/unittest.proto:97:12: > "protobuf_unittest_import.ImportMessage" is not defined. > google/protobuf/unittest.proto:101:12: > "protobuf_unittest_import.ImportEnum" is not defined. > google/protobuf/unittest.proto:107:12: > "protobuf_unittest_import.PublicImportMessage" is not defined. > google/protobuf/unittest.proto:135:12: > "protobuf_unittest_import.ImportMessage" is not defined. > google/protobuf/unittest.proto:139:12: > "protobuf_unittest_import.ImportEnum" is not defined. > google/protobuf/unittest.proto:165:12: > "protobuf_unittest_import.ImportEnum" is not defined. > google/protobuf/unittest.proto:216:12: > "protobuf_unittest_import.ImportMessage" is not defined. > google/protobuf/unittest.proto:221:12: > "protobuf_unittest_import.ImportEnum" is not defined. > google/protobuf/unittest.proto:227:12: > "protobuf_unittest_import.PublicImportMessage" is not defined. > google/protobuf/unittest.proto:256:12: > "protobuf_unittest_import.ImportMessage" is not defined. > google/protobuf/unittest.proto:261:12: > "protobuf_unittest_import.ImportEnum" is not defined. > google/protobuf/unittest.proto:291:12: > "protobuf_unittest_import.ImportEnum" is not defined. > make[2]: *** [unittest_proto_middleman] Error 1 > make[2]: Leaving directory `/home/basso/protobuf-2.5.0/build-arm/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/basso/protobuf-2.5.0/build-arm' > make: *** [all] Error 2 > > However, line google/protobuf/unittest_import.proto:53 seems perfectly ok > to me... > Any idea? Let me know if more information is needed. > > thanks! > curzio > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/protobuf?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.
