TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Build a GCC Cross-Compiler for the Raspberry Pi

34 pointsby bezziabout 10 years ago

8 comments

dima55about 10 years ago
Heh? Debian cross toolchains work fine: <a href="https:&#x2F;&#x2F;packages.debian.org&#x2F;sid&#x2F;gcc-4.9-arm-linux-gnueabi" rel="nofollow">https:&#x2F;&#x2F;packages.debian.org&#x2F;sid&#x2F;gcc-4.9-arm-linux-gnueabi</a> for armel and <a href="https:&#x2F;&#x2F;packages.debian.org&#x2F;sid&#x2F;gcc-4.9-arm-linux-gnueabihf" rel="nofollow">https:&#x2F;&#x2F;packages.debian.org&#x2F;sid&#x2F;gcc-4.9-arm-linux-gnueabihf</a> for armhf
评论 #9362341 未加载
评论 #9362259 未加载
hannibalhornabout 10 years ago
I&#x27;d recommend just using a project like buildroot - it&#x27;s really easy to begin with, and afterwards every odd device you eventually decide you need to cross compile for (old router with a MIPS CPU, etc.) becomes just as easy.
slikenabout 10 years ago
I have one of the new Pi&#x27;s with 1GB ram. With a fast 64GB microsd card ($21 on black friday). I&#x27;ve been pretty impressed with fast it compiles with make -j4.
评论 #9362468 未加载
fit2ruleabout 10 years ago
Great, this brings me one step closer to a dream: setting up distcc on every computer in the house so I can build rPi software in seconds, not hours..
oso2kabout 10 years ago
Couldn&#x27;t tell from the guide, is this armv6 (A&#x2F;A+, B&#x2F;B+, Compute) or armv7 (B2)?
jwatteabout 10 years ago
I went one step further and built a Canadian that was built on x64, ran on raspberry pi, and targeted teensy cortex m4!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jwatte&#x2F;teensy-canadian" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jwatte&#x2F;teensy-canadian</a>
poseidabout 10 years ago
thanks for sharing! understanding how to cross-compile is increasingly important for upcoming (cheap) embedded hardware. maybe related a blog post on compiling a sketch for Arduino: <a href="http:&#x2F;&#x2F;thinkingonthinking.com&#x2F;an-arduino-sketch-from-scratch&#x2F;" rel="nofollow">http:&#x2F;&#x2F;thinkingonthinking.com&#x2F;an-arduino-sketch-from-scratch...</a>
karmicthreatabout 10 years ago
You might consider building Linaro instead, especially if you are going to use a RPI 2.