question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Crosscompiling protobuf

See original GitHub issue

Hi guys, I’ve been looking into integrating protobuf to my project and I need to crosscompile. Right now the recipe fails because it tries to download protoc for a non x86 architecture. My first thought was to add protoc as a build_requirement but I’ve been looking around into old PRs and I saw that you decided to go this road instead. What is the reason for this? Having protoc as a build_requirement seams really convenient. Is there any suggested approach if you need to use protoc in a non x86 architecture? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

0reactions
ericriffcommented, Jun 8, 2020

Hi guys, I ended up creating a custom recipe to pack protoc based on all the links that you shared here. I’m closing this. Thanks for all the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google protocol buffers cross compiling - Stack Overflow
First problem is about compiler options: I'm trying to install Google protocol buffers on a PowerPC machine which requires cross compiling.
Read more >
[question] cross compiling Android binary with protobuf/grpc ...
Hi, I am working on a Android project which needs protobuf/grpc, my CMakeLists.txt is as follows project(some) include(conan.cmake) ...
Read more >
How to Cross-Compile ArmNN on x86_64 for arm64
These are the step by step instructions on Cross-Compiling ArmNN under an x86_64 system to target an Arm64 system. This build flow has...
Read more >
Cross Compiling Protobuf for Raspberry Pi
The problem was that protobuf installs protoc by default in the /usr/local/bin directory, as opposed to /usr/bin .
Read more >
Cross-compile of Google Protocol Buffers fails
The build procedures for GPB don't work when cross-compiling. The crux of the matter is that the build attempts to run tests using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found