JC_
JC_

Reputation: 45

Installing Bazel on Raspberry pi 3

I am trying to build Bazel from source for Raspberry Pi 3 (Model B). I encounter error

Protobuf compiler not found in third_party/protobuf/protoc-linux-arm32.exe

Earlier I tried downloading the available .deb package which failed to install (even after force architecture, worth noting Pi 3 is a armhf 64 system) as dependency on JDK7 was not resolved. JDK7 is not available through apt-get.

My understanding of Bazel, Protocol Buffer is very limited, Please help me with:

  1. The steps I can take to successfully build Bazel on Raspberry Pi 3
  2. Someone is able to do so or their any repository I can include directly?

I think it is very much possible to build because Tensorflow repository for Raspberry Pi is successfully installed on Pi 3, which I grabbed from here

Upvotes: 2

Views: 9926

Answers (3)

Keivan
Keivan

Reputation: 1779

I have explained how to build/install Bazel on Raspberry Pi step by step here and for test I have used Raspberry Pi 3B+ 1.4GHz Cortex-A53 Rev. 1.3 with 1GB RAM and 16GB SD card. Thereafter you can use the official TF documentation to build TF on Raspberry Pi.

Upvotes: 0

Pete Warden
Pete Warden

Reputation: 2878

There's a guide to building TensorFlow using Bazel on the Pi 3 here that may help: https://github.com/samjabrahams/tensorflow-on-raspberry-pi/blob/master/GUIDE.md

Upvotes: 3

Damien Martin-Guillerez
Damien Martin-Guillerez

Reputation: 2370

You would need to get a version of protobuf compiler 3.0 and put it in third_party/protobuf/protoc-linux-arm32.exe.

Upvotes: 1

Related Questions