Cross compiling protobuf for ARM on Windows machine

330 views
Skip to first unread message

Steven Feenstra

unread,
Oct 21, 2018, 5:46:48 PM10/21/18
to Protocol Buffers
Hello,

I am using CMake on Windows to cross compile gRPC for the ARM platform, which in turn needs protobuf.  The build gets stuck on the step where you need protoc to run on your native machine:

[ 85%] Running gRPC C++ protocol buffer compiler on src/proto/grpc/status/status.proto
'C:/Users/sfeen/git/grpc/VisualGDB/Debug/third_party/protobuf/protoc' is not recognized as an internal or external command,
operable program or batch file.

I downloaded the Win32 build of protoc from https://github.com/protocolbuffers/protobuf/releases and placed protoc.exe at C:\protoc\bin.

How do I tell CMake to use protoc at this location?

Thanks,
Steve F.

Dibet Garcia

unread,
Jun 5, 2019, 9:37:15 AM6/5/19
to Protocol Buffers
 Hi, i have the same problem. iam using on linux the following command

 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  ..

But i dont know how to especify the protoc binary file.

Do you fix your problem?


Reply all
Reply to author
Forward
0 new messages