I change my cmake command line to 

cmake -D BUILD_SHARED_LIBS=ON -D CMAKE_BUILD_TYPE=RELEASE 
-DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ 
-DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc 
-DCMAKE_AR=/usr/bin/arm-linux-gnueabihf-ar 
CMAKE_INSTALL_PREFIX=/opt/arm-local/protobuf ..

When i run "make", see the following error:

[ 48%] Generating 
/opt/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/google/protobuf/unittest_no_arena_lite.pb.cc
./protoc: 1: ./protoc: Syntax error: word unexpected (expecting ")")
CMakeFiles/lite-test.dir/build.make:82: recipe for target 
'/opt/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/google/protobuf/unittest_no_arena_lite.pb.cc'
 
failed
make[2]: *** 
[/opt/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/google/protobuf/unittest_no_arena_lite.pb.cc]
 
Error 2
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/lite-test.dir/all' 
failed
make[1]: *** [CMakeFiles/lite-test.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

-- 
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 https://groups.google.com/group/protobuf.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/f46604a9-ed89-4478-89a5-beefb886666b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to