Questions tagged [cross-compilation]

Questions on how to compile software for the Raspberry Pi using other devices.

A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is running.

A great answer for how to cross-compile can be found here:

185 questions
10
votes
1 answer

Can I run hardfp software on a softfp kernel?

How to build a GCC 4.7 toolchain for cross-compiling? explains how to build a cross-compiling GCC and advises choosing softfp, but I understand that hardfp would be much faster. Will software compiled for hardfp work on a softfp kernel or is the ABI…
Alex Chamberlain
  • 15,530
  • 14
  • 67
  • 113
6
votes
1 answer

Cross compiling

We're using eclipse on both windows and linux on pc's to program in C/C++ for the Raspberry Pi as geany's editor is too sluggish for us working on the RPi itself. We're now starting to get issues with the cross compiling when using libraries such…
Skanky
  • 61
  • 2
6
votes
3 answers

Compile my RPi programs on my PC

Since I got my RPi, I have been playing with it and I am really happy that I bought it! I use various programs on it but it takes a long time to build them. So I had an idea. What if I could build my programs on my quad-core PC, it will be a lot…
Tiwenty
  • 213
  • 1
  • 2
  • 5
6
votes
1 answer

How do I compile code?

I would like to compile some code on the Raspberry PI, what is the best way to do this? I'm using Arch Linux, I checked and with the pacman I can only install gcc 4.6. Do I need a cross compiler?
Mokus
  • 983
  • 5
  • 10
  • 19
5
votes
1 answer

Problems with close, read & write filedescriptors while cross-compiling on x86 Linux using Eclipse

Even though I am including , I keep getting 'write' was not declared in this scope 'read' was not declared in this scope 'close' was not declared in this scope even though the open() function works just fine, and it compiles fine for…
tzippy
  • 151
  • 1
  • 3
4
votes
1 answer

Raspberry Pi Kernel Compilation issue - fixdep permission denied

I am trying to compile RPi kernel on Kali Linux. I have downloaded GIT & the tools-master from git. Can anyone help me in resolving this issue & understand why this error comes? Below is the environment variable setup. $ export…
0x07FC
  • 141
  • 3
4
votes
2 answers

Difference between 3.6.11 and 3.6.11+?

On my Raspberry Pi uname -r gives me 3.6.11+ but in the 3.6.y sources the make file has: VERSION = 3 PATCHLEVEL = 6 SUBLEVEL = 11 EXTRAVERSION = I am trying to compile a module. I (skipping some small steps): made a fresh SD card with…
Mike
  • 143
  • 1
  • 3
3
votes
4 answers

fatal error: bcm_host.h: No such file or directory compilation terminated

I am trying to build Qt5 for the RPi board. The compilation worked fine, but I seem to be having problem with the install step. I get the following error: fatal error: bcm_host.h: No such file or directory compilation terminated. I don't see the…
GMahan
  • 39
  • 1
  • 1
  • 3
3
votes
2 answers

crosstool-ng build fails on ubuntu 12.04

I am trying to follow this tutorial http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/ There are no known issues that relate to this 404 not found error Fails on step 15 -> Run ct-ng build. I get this…
peterretief
  • 285
  • 1
  • 4
  • 11
2
votes
1 answer

How to prepare development environment under openSUSE?

I need to prepare development environment for AVR8 and RaspberryPi. I have installed AVR toolchain from http://download.opensuse.org/repositories/CrossToolchain:/avr/. Where to get cross-compiler for RaspberryPi? I have used…
no id
  • 169
  • 1
  • 9
2
votes
2 answers

Missing libcofi_rpi.so on host machine

I successfully cross-compiled a simple hello-world.c program for Raspberry Pi Board on my Ubuntu 12.04 host machine by following the instructions given in this http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/ The…
Jay
  • 233
  • 2
  • 4
  • 8
1
vote
2 answers

Cross compiling Java application using different APIs to access device's peripherals

I want to start developing an embedded application in the near future using Java and Eclipse IDE (On a desktop computer), the problem is that, I know regular Java application will work on Raspberry because Java is cross-platform, but wouldn't using…
1
vote
1 answer

Cross compile opencv WITH gstreamer on raspberry pi 3/4

I want to compile opencv WITH gstreamer for an application to run on my Raspberry pi 3b+. I am unsure what to do as many tutorials are outdated or complicated and there is no build with gstreamer enabled. I have tried following this:…
Kevin
  • 131
  • 1
  • 9
0
votes
1 answer

Cross compiling cross-compiler for Raspberry Pi

I want to build programs with distcc on a Raspberry Pi for my desktop (x86-64). My idea: Build crossdev-ng on my desktop. Build cross-compiler on my desktop to run on desktop and generate code for Pi. Build cross-compiler on my desktop to run on Pi…
0
votes
0 answers

Crosscompile on Ubuntu computer for Rpi Zero 2W

I am trying to follow this manual (https://earthly.dev/blog/cross-compiling-raspberry-pi/) to set up crosscompiling for RPi zero 2w running raspbian bullseye. So far I have failed with any crosscompile setup for Rpi, however I have found out I do…
dtto
  • 1
1
2