Questions tagged [cross-compilation]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
3k 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....
1
vote
1answer
2k views

Cross-Compiling kernel can't find gcc

I am cross compiling the Raspbian kernel since it will take about 12 hours for the Pi to do (Raspberry Pi 1). I have the build tools for ARM and the kernel in two separate folders in /home/gray/...
2
votes
1answer
1k views

What toolchain to use? Any real difference?

I'm starting with buildroot for my Raspberry PI 2 project. I've came to part where I need to select toolchain that will build whole project. I have two main options: use buildroot to build my own ...
2
votes
0answers
1k views

Which gcc compilation flags should use for RPi1 model B ? what is the ABI, architecture and CPU?

I want compile some binaries for RPi model B (revision 2.0) 512MB , I got installed arm-linux-gnueabi-gcc on Fedora 23 dnf copr enable lantw44/arm-linux-gnueabi-toolchain dnf install arm-linux-...
1
vote
1answer
3k views

How to install a cross compiler for Raspi 2

I went through hell installing a cross compiler on Ubuntu for my Raspi. Now, I have Raspi2's and I am I am going through it again. Could someone provide instructions here for myself and others who are ...
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 ...
0
votes
1answer
466 views

Problem with Crosscompiling (std, string) for RaspberryPi from Ubuntu

I'm using Ubuntu and arm-none-eabi to crosscompile some baremetal programs for the Raspberry Pi, my problem now is, that this: char ch[32]; const char doubleout[] = "double received: "; std::...
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 ...
1
vote
1answer
1k views

Linux based cross compiler [duplicate]

I need an ARMv6 cross compiler for my B and B+ pis, primarily for building the kernel since this requires many hours on the pi itself and sometimes requires trial and error to get right. I would also ...
1
vote
2answers
3k views

Cross-compiling to Raspbian

I have Raspbian Jessie installed on my Raspberry PI, and I have a virtual box with a fresh install of Debian Jessie for amd64 with the armhf architecture enabled, and with the ARM cross toolchain from ...
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 ...
1
vote
0answers
282 views

Error is raised when I compile simple driver module on Pi itself with a corss-compiled Kernel

I cross-compiled a new Kernel(3.18.10) on Debian Jessie amd64 for RPi2. Later, when I compile a simple Hello-World module with this kernel, however, an error is raised: make -C /lib/modules/3.18.10-...
1
vote
1answer
1k views

How to install a cross-compiler for the Pi on OSX

I recently started the course from Cambridge University on writing your own OS, but i´m having some trouble. Here is my question: I have tried to install the yagarto tool, but i didnt succed. I have ...
2
votes
1answer
6k views

Cross Compiling Protobuf for Raspberry Pi

I'm trying to cross compile google Protocol buffers for the Raspberry Pi, so I can cross compile my own software. I've installed protobuf-2.6.0 to the directory ~/ExternalLibs/protobuf-2.6.0, where I ...
2
votes
1answer
706 views

si7013 driver install raspberry pi

I bought a Silicon Labs si7013/20/21 usb dongle and now I'm trying to install it onto a raspberry pi 1 running raspbian with kernel 3.18 + I compiled a kernel after adding the drivers to drivers/...
2
votes
1answer
1k views

Raspberry Pi kernel image installation on new SD Card (no pre installed Raspbian or NOOBS in it - it's free with no partions)

I have been working on kernel compilation of Raspberry Pi on Ubuntu using a cross compiler. I have compiled the kernel, and I got the image file generated (https://www.raspberrypi.org/documentation/...
1
vote
0answers
808 views

Syntax error: word unexpected when compiling for Raspberry Pi 2

I'm running the latest Raspbian from the Raspberry Pi website. I tried to compile this wireless driver from https://github.com/gnab/rtl8812au that supports Raspberry PI but I run into the following ...
0
votes
0answers
353 views

Get libstdc++5 on Raspbian

I'm trying to get a semi-old printer driver (lexmark z600) from ubuntu working on my Raspberry Pi. When I extract the .deb file and poke around in control it looks like it's marked Architecture: all, ...
1
vote
3answers
3k views

Raspberry Pi kernel configuration for USB mouse and keyboard

I've been trying cross compile kernel using this guide. http://elinux.org/Rpi_kernel_compilation#2._Cross_compiling_from_Linux. However, all my kernel doesn't support USB mouse and keyboard. In the ...
0
votes
1answer
556 views

Is it possible to use Haskell on Arch Linux ARM?

There isn't a ghc package for armv6, which is what the pi uses. It does not need to be able to compile on the pi, just run on it.
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 ...
1
vote
1answer
198 views

How to use headerfile from diffrent libraries in same code

In raspberry pi , we got two famous libraries (a) bcm2835 and (b)wiringpi. So,I want to use some header files from library bcm2835 and some from wiringpi in a same code. Is it possible to do so. If so,...
4
votes
2answers
413 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 ...
0
votes
1answer
733 views

PJSIP cross compilation linker error unresolvable relocation

I'm trying to write a very small, very simple project using PJSIP. But I'm already stuck on the first step, incorporating PJSIP in my project. I'm trying to build and compile on a Ubuntu 14.04 system ...
1
vote
1answer
2k views

How to setup eclipse CDT to cross compile the kernel for the Raspberry Pi

How do I setup eclipse CDT to cross compile the kernel for the Raspberry Pi? Is it as simple as File -> New -> Makefile Project with Existing Code? What else has to be considered?
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 ...
1
vote
0answers
455 views

GLIBCXX_3.4.19 not found

I am trying to run a program, written in C++ using the new C++11 standard. I use Code::Blocks on my PC and cross-compile for the Raspberry Pi using these tools: https://github.com/raspberrypi/tools/. ...
1
vote
2answers
2k views

Raspbian kernel source compilation configuration

I try to compile Raspbian, [ http://hermess.no-ip.org/rpi/index.php ] when I Prime kernel with the old config: make ARCH=arm CROSS_COMPILE=${CCPREFIX} oldconfig I get a lot lot of dialog messages, so ...
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/...
1
vote
0answers
3k views

cross compile qt 5.2

I'm following this tutorial to cross compile qt 5.2. But I'm getting this error: You have already accepted the terms of the license. /home/vitor/src/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-...
4
votes
1answer
986 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 ...
0
votes
0answers
1k views

Cross-compilation with OpenCV

I'm stuck in cross-compilation my RPi with OpenCV, my project just one file main.cpp and build success in my computer by this tut. I want to run it in RPi. I read this tut but can't understand much, ...
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() ...
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 ...
5
votes
1answer
925 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 ...
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 ...
0
votes
1answer
2k views

How to solve Qt5 illegal instruction issue in cross-compilation?

I have cross-compiled Qt5 following http://thebugfreeblog.blogspot.it/2012/11/bring-up-qt-50-on-raspberry-pi.html instructions. Unfortunately I have an error when I try to run the compiled program on ...
0
votes
1answer
5k views

Raspberry Pi Cross-Compilation Failure (arm-linux-gnueabi-gccgcc)

I am cross compiling a Linux kernel for my Raspberry Pi from an AMD64 Ubuntu 13.04 system. I found this page to be of help (How do I cross-compile the kernel on a Ubuntu host?), but I still get errors ...
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 ...
2
votes
0answers
1k views

No image file after make (3.6 kernel compiling) [closed]

Overview: I wanted to compile 3.6.11+ linux kernel for my raspberry, after the make command, there were no image files in arch/arm/boot. What I've done: 1 Download the linux code from github.com/...
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 ...
1
vote
1answer
813 views

How to make cross compile development enviroment that can use shared libraries from Pi?

I was able to install toolchain and compile programs that use basic c libs. But that is not really useful when compiling big programs. I've learned that, when cross compiling, compiler will look for ...
0
votes
1answer
2k views

Cross compiling, missing packages

I've set up a cross compile toolchain for raspberry pi and I can compile basic helloworld and run it on raspberry. I'm stuck at compiling some open-source programs as ./configure is complaining about ...
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
2answers
622 views

How to fix build error when building Linaro GCC crosscompiler crossstool-ng-1.17.0?

Crosstool-ng-1.17.0 build-fails-on-ubuntu-12-04.I am getting the below error when i am trying to build crosstool-ng-1.17.0. Please help me to fix the issue. shiny@ubuntu:~/crosstool-ng-1.17.0$ ./ct-...
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 ...
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....
2
votes
0answers
2k views

raspberry pi booting failed on custom kernel [closed]

hello I have compiled my custom kernel and pack initramfs into it. I have created two partition fat32 and ext3. fat32 contains bootloaders and kernel and ext3 contains rootfs. I have made a raw disk ...
2
votes
1answer
5k views

How do you build Open CV programs for raspberry pi using a cross compiler?

I have a cross compiler that allows me to compile code on Mac OS x 10.7 and produce binaries for the Raspberry Pi. Compiling simple "helloworld.cpp" programs works like this: /usr/bin/raspi-g++/...
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 ...

1 2 3