Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [cross-compilation]

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

Filter by
Sorted by
Tagged with
82
votes
8answers
51k views

How do I build a GCC 4.7 toolchain for cross-compiling?

I already asked this question on Stack Overflow, but I would like to know if anyone managed to build a GCC 4.7 toolchain for ARM cross-compilation (for a x86/x86-64 Linux host). There are many ...
42
votes
4answers
12k views

Is there a Linux From Scratch (LFS) ARM equivalent

I'd like to demonstrate how it's possible to 'bootstrap' up from a near-bare installation of Linux to something useful and productive. The Tiny Core and LFS projects demonstrate this well. However ...
16
votes
3answers
46k views

How do I cross-compile the kernel on a Ubuntu host?

I would like to understand more about how the kernel works. Part of this is to compile it myself. How do I cross-compile the Kernel on a Ubuntu host?
15
votes
3answers
1k views

How do I install node.js if my package manager doesn't include it?

Node.js, server side javascript sitting on top of Google's v8 engine, is not available for install from the Debian squeeze's default repositories and doesn't easily compile for ARM. Are there any ...
12
votes
2answers
18k views

building kernel image (.img) including ramdisk

I have built my Linux kernel (3.0.1) for my Raspberry Pi with these following steps: 1. Downloading kernel source 2. tar xvf source.tar.bz2 3. downloading arm cross compilation tool. 4. tar xvf arm-...
10
votes
2answers
40k views

How do I see which ARM CPU version I have?

When compiling a package for the Pi I came across a message like this: CFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8 and CFLAGS += -mtune=arm1176jzf-s -...
10
votes
1answer
5k views

How do I install distcc?

I have read How to build a GCC 4.7 toolchain for cross-compiling? and have successfully built a simple test program that works on my RPi. To do this, I had to run arm-unknown-linux-gnueabi-gcc hello....
8
votes
3answers
2k views

What's causing these crashes after cross-compiling?

I'm trying to cross-compile a large library (TensorFlow) using gcc on Ubuntu. I've installed the g++-arm-linux-gnueabihf toolchain, and was able to successfully build my binary. The process I'm using ...
8
votes
1answer
2k views

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 ...
8
votes
2answers
5k views

How can I cross-compile to the Raspberry Pi using Clang/LLVM?

I would like to cross-compile C-family languages (C, C++, Objective-C, and Objective-C++) to the Raspberry Pi using Clang and LLVM on a build computer of a different architecture. How may I do this?
7
votes
1answer
5k views

Cross Compiling to Raspberry Pi from Windows with External Libraries

Following this guide, http://www.a2p.it/wordpress/tech-stuff/development/remote-debugging-raspberrypi/ , I was able to cross compile from Windows to Raspberry Pi. But is it possible to cross compile ...
7
votes
2answers
8k views

How to cross-compile Python 3.6 for the Raspberry Pi

I am trying to cross-compile Python 3.6 for my Raspberry Pi based on the instructions on this post, which boil down to setup then env vars so we use the linaro toolchain: export CC=arm-bcm2708hardfp-...
6
votes
2answers
240 views

Will compiled binaries run on other Linux boxes?

I don't have a Linux box at home, so I'd like to use my Raspberry Pi to try out some development on Linux. Will binaries compiled on it run on other, more standard Linux boxes, or will they only run ...
6
votes
3answers
25k views

Compile my RPi programs on my PC [duplicate]

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 ...
6
votes
1answer
3k views

Cross-compile x86-64 code on Raspberry Pi 2

I'm doing experiments regarding compilation of the Linux kernel on various platforms, but mainly on the RPi and on x86-64 machines. There's no shortage to the links on Google describing how to compile ...
6
votes
1answer
8k views

tutorial on crosscompiling .deb packages?

I'd really like to get to know debian packaging for the RPi I have read several useful tutorials on how to crosscompile with tools from https://github.com/raspberrypi/tools/tree/master/arm-bcm2708 ...
6
votes
1answer
1k views

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 ...
6
votes
3answers
7k views

Which toolchain for Raspberry Pi 3 and Qt5

Which is the recommended toolchain to cross-compile Qt5.6 for Raspberry Pi 3? I tried official tools: https://github.com/raspberrypi/tools but it seems they don't support the architecture and flag ...
5
votes
1answer
2k views

Problem with QinHeng CH9200 driver - Pi 2 (4.1.7-v7+)

English is not my native language so please be patient. I'm using a Rasp and the Ethernet port is already taken, so we bought a USB2.0 to Fast Ethernet Adapter, like this one: https://www....
5
votes
1answer
766 views

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?
5
votes
1answer
104 views

Crosscompiling: exact archictecture for all models

I would like to crosscompile some piece of C++ software in a way that I can run on every Raspberry Pi. I am confused about the parameter -march. I've found a great deal of resources recommending to ...
5
votes
1answer
907 views

Can I just copy the libraries built in ARM to Windows (x86) in order to cross compile a source code to ARM?

Regarding cross compiling an external library to ARM. Can I just copy the built libraries in ARM (e.g. raspberry pi) to Windows and link them in CMake in order to compile a source code to be deployed ...
5
votes
1answer
3k views

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

Even though I am including <fcntl.h>, 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() ...
4
votes
3answers
3k views

How to build My own OS for the raspberry or configure an existing one

I'm using Raspbian with raspberry pi 2 ... But i want to customize it and remove some features that i don't really need , to take advantages on the performance and also to understand the procedure of ...
4
votes
1answer
11k views

Compile Qt Application for Pi from Windows

How do I compile an app I made in Qt Creator to my Raspberry Pi? Here's my current setup: Qt Creator 2.4.1 running on Windows 7. I'm using MinGW for windows development, and Yagarto is installed as ...
4
votes
1answer
1k views

Cross compile kernel module

My goal is it to cross-compile a kernel module for my raspberry pi. But I have some compatibility issues with my kernel sources on my pc and the version on my raspberry pi. My Pi uses this version: ...
4
votes
2answers
409 views

How to cross compile large projects?

Read through the posts on the website, and tried many scratchbox2/qemu attempts. I am beat when it comes to compiling large projects, that have many dependences. I found it easy to compile a single .c ...
4
votes
1answer
762 views

No modules found in custom Arch kernel

In order to test the patch linked to in the following post: https://github.com/raspberrypi/linux/issues/29#issuecomment-6884170 I need to compile a custom kernel for my Pi. To do this, I followed the ...
4
votes
1answer
2k views

How do I install Tensorflow Lite on Raspbian Stretch?

Thanks for your help. I want to deploy a tensorflow neural network to a Raspberry Pi 3 B+ with the Raspbian Stretch OS, and I'd like to know the best way to install Tensorflow Lite (or Tensorflow ...
4
votes
1answer
5k views

libstdc++ Error: `GLIBCXX_3.4.22' not found

I was trying to cross-compile dlib for Raspberry Pi, using the arm-linux-gnueabihf compiler. After successful runs of cmake and make -j4, I ran python setup.py bdist_wheel --repackage, which created ...
4
votes
1answer
2k views

Cross compile error from Ubuntu 14.04 to raspberry zero (using arm-linux-gnueabihf-g++)

I'm trying to cross-compile from my Ubuntu 14.04 (host) to the pi zero. Here is what I've done on host to cross compile a very basic example : > apt-get install g++-arm-linux-gnueabihf from here ...
4
votes
1answer
974 views

Respberry Pi fails to boot with custom kernel

I'm trying to cross compile my kernel with touchscreen enabled, however my Respberry Pi fails to boot with the custom kernel. I was trying to compile the kernel on my ubuntu 10.4 (x64) with different ...
4
votes
2answers
3k views

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 ...
3
votes
2answers
2k views

Are there any technical limitations when running hard-float binaries on a soft-float OS?

Since the hardware is generally the same between Raspberry Pi's, the target hardware is known to have a hardware floating point unit. I also understand that some operating systems opt to use soft-FP ...
3
votes
3answers
3k views

DHT11 module compilation error

I try to compile the source code of DHT11 module given in [https://www.endian.se/content/?p=127] . I have followed the step of KERNEL compilation in [[http://bchavez.bitarmory.com/archive/2013/01/16/...
3
votes
1answer
6k views

RPI2 Kernel module compilation (kernel 3.18.11+ vs 3.18.11-v7+)

I want to recompile a kernel module/driver on my RPI2 for my RPI2. The command uname -a gives me: Linux cpf 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux Q1) What ...
3
votes
1answer
559 views

Cross compiling for RPi - error while loading shared libraries

I'm trying to compile a simple program on my Ubuntu using the ARM cross compile toolchain (arm-linux-gnueabihf-gcc) and run it on my Raspberry Pi. The program is using the wiringPi shared library (...
3
votes
1answer
2k views

Unloading kernel module does not remove /dev/ device file

I have had success following tutorials for developing kernel modules, running them on a Ubuntu 12.04 LTS virtual machine. Particularly the example in this tutorial works fine on Ubuntu on a 3.2.0 ...
3
votes
1answer
979 views

How to install cross-compiled OpenCV's libraries on Raspberry Pi

My problem is may be complicated, I'll try to detail I cross compiled opencv for ARM (Raspberry Pi) from my host, and everything works fine. I also tried to cross compile an example and it also ...
3
votes
2answers
1k views

Emulating “Baking Pi”

Evening! I'm running through the amazing Baking Pi tutorials, which actually convinced me to buy an rPi in the first place. I realize I (obviously) can't emulate the "status" light, but I read all of ...
3
votes
1answer
1k views

How to cross-compile OpenCV and copy python bindings?

I want to install dlib and OpenCV on Raspberry Pi 2. As you know, if I try to compile those on the Pi directly, then a) It takes a lot of time (3-4 hours for dlib and then 2 for OpenCV) and b) It is ...
3
votes
2answers
7k views

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 ...
3
votes
1answer
1k views

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 ...
3
votes
1answer
1k views

Mongodb cross compilation on linux for Raspberry Pi

I have raspberry pi model B. I want to build mongodb on my Linux system and want to copy build onto raspberry pi. I am using mongo-non86 to build mongodb. I have changed compilers to compile it with ...
3
votes
0answers
38 views

How do I build just some in-tree modules for the Raspbian kernel?

I would like to cross-build some in-tree modules (capi, gigaset) that are included in the kernel source but not in the standard Raspbian kernel. My toolchain is using the tools from https://github....
3
votes
0answers
1k views

Cannot find -lgcc -lc

I'm trying to compile the FreeRTOS port to Raspberry Pi, but when I compile, I get the error: arm-none-eabi-ld: cannot find -lgcc arm-none-eabi-ld: cannot find -lc make: *** [kernel.elf] Error 1 I'm ...
3
votes
0answers
2k views

Compiling Qt Multimedia for Raspberry Pi [closed]

Thanks for taking a look, now to business. I've set up a cross compile env for my Raspberry Pi following this guide. I have been able to port most of my application so far, but I'm running up ...
2
votes
2answers
3k views

Raspbian source code

I´m using Raspbian on RaspBerry Pi and it´s working ok, but now I want to modify the distro according to my needs. I know the source for the kernel is found in kernel.org, but I haven't been able to ...
2
votes
1answer
1k views

Armbian binary compatibility with Raspbian

I was wondering if one can compile binaries on Armbian to be used on Raspbian (without using cross-compilation tools)? Is there binary compatibility? Do I need to link libraries statically (would that ...
2
votes
2answers
4k views

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