Questions tagged [cross-compilation]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
281 views

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/...
0
votes
1answer
441 views

Cross-compiling with nfs-mount as sysroot fails due to absolute links

I want to cross-compile C++-applications for the raspi using the rpi-tools, CMake and a raspbian sysroot I'm exporting via nfs from a running raspi. My CMake-toolchain-file is OK, header-files and ...
1
vote
1answer
148 views

Raspbian Kernel Cross Compiling Peripherals not working

I am having trouble compiling the Raspbian kernel from source. I used the instructions here: https://www.raspberrypi.org/documentation/linux/kernel/building.md. I am cross compiling on Ubuntu 16.04 ...
0
votes
1answer
305 views

Cross compiler gcc on Raspbian

Is it possible to install cross compiler on Raspbian? I mean arm-linux-gcc. I would like to try compile cross platform project on Raspbian instead of on virtual machine with Ubuntu.
1
vote
1answer
438 views

Android Development on RPi3

My RPi is the Raspberry Pi 3 I have access to a Dell PowerEdge running Ubuntu (Not server) 17, x86_64 processor I have a cross-compiler for the RPi on the PowerEdge I only have access to the PE ...
2
votes
1answer
3k views

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 ...
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
1answer
306 views

Development environment C++ for Pi

I have a pi zero that I have to develop a project for. Unfortunately the Pi has to be remote so it isn't the best, hardware and input wise, to develop on. I can do SSH and I can do samba and even ...
1
vote
1answer
2k views

Host errors after cross-compilation of Qt 5.9.2

I've cross-compiled Qt 5.9.2 for Raspbian Stretch with the following setup: git clone -b 5.9 git://code.qt.io/qt/qt5.git cd qt5 ./init-repository ./configure -release -opengl es2 -device linux-rasp-...
1
vote
1answer
2k views

xmpp chat client for raspbian to send and receive messages & files cross platform devices

I have setup XMPP Prosody a communication-chat server on my raspberry pi 3. It works great! I have installed chat clients Adium on Mac and Astrachat on iPhone and Android phone. AstraChat client is ...
1
vote
1answer
934 views

How to run program that accesses GPIO as remote application in Eclipse?

Cross-compilation with remote launch from Eclipse is very useful approach to develop RaspberryPi applications. There is a serious security problem however. One who need access to GPIO (ex, using ...
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 ...
0
votes
1answer
837 views

Raspberry Pi Kernel Compilation Problem

I am trying to cross compile a raspberry Pi kernel with RT Preempt patch. I am following this tutorial. I have downloaded the latest kernel sources rpi-4.9.13 and the corresponding rt patch patch-4.9....
1
vote
0answers
159 views

Cross Compile on maxOS fails linking System library (CMake), but other libraries succeed

tl;dr - CMake fails at linker not finding System library with precompiled RaspberryPi toolchain when other libraries work So I've been fighting this for a few days, and I believe I'm nearing the end ...
1
vote
0answers
582 views

Remote python debugging with Visual Studio Code from Mac

I am trying to remote debug from Visual Studio Code on Mac OS. I would like to know if anyone has managed this or if it only possible from Visual Studio for Windows, or if not, what am I doing wrong? ...
1
vote
1answer
566 views

Disable expert mode

I'm trying to recompile a kernel with audit support for that a use the following command: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig -j 12 make menuconfig arch=arm When I try ...
1
vote
0answers
471 views

Raspberry Pi + Qt4 + Opencv cross compile from windows

Hi I want to know how to use opencv in raspberry pi. I have cross compiled qt raspberry from windows and succeed but I cannot add library opencv.
0
votes
1answer
3k views

cross compiling fails. no rule to make module install

I am trying to cross compile a Linux kernel for my Raspberry Pi. following this tutorial. I am trying to run this command: make modules_install ARCH=arm \ CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-...
1
vote
0answers
231 views

Cross compiling QT and example program does not find platform

I followed the follwoing guide to cross-compile QT 5.6 on a Ubuntu 16.04 machine for the raspberrypi2 running jessie: https://wiki.qt.io/RaspberryPi2EGLFS#A_modern_guide_for_cross-compiling_Qt_5....
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
763 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 ...
5
votes
1answer
767 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?
6
votes
2answers
241 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 ...
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 ...
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 ...
0
votes
1answer
266 views

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 ...
1
vote
0answers
446 views

Raspberry Pi 2 Cross Compile is not including sysroot

I have set up the cross compiler for Raspberry pi in ubuntu. Also, I have followed steps mentioned in this blog to set up eclipse. When I compile a plain Hello World program, it compiles fine. But if ...
1
vote
1answer
2k views

ssh: connect to host pi adress port 22: Connection refused

i'm having some trouble when trying to connect to my raspberry b+. i have used buildroot and add dropBear package for SSH . I gave the pi a static adress 10.42.0.5 and it's detected correctly in my ...
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-...
1
vote
2answers
2k views

Library to allow use of Pi camera in projects?

I've been looking for a library so that I can take pictures on the pi using the pi camera (not a usb webcam). I've tried RaspiCam but that is having issues compiling in visual studio 2015 (yes i'm ...
1
vote
2answers
8k views

Drivers for dwa-171 wifi usb dongle

I'm having trouble to compile and use drivers for dwa-171 wifi usb. I have tried a lot of things but currently i'm unable to load module. Recap of what i have done so far: Getting kernel sources: ...
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 ...
0
votes
1answer
437 views

Cross compile problem?

I am trying to build applications for my Raspberry Pi using a cross compiler by using crosstool-ng. My build system is Ubuntu 14.04 LTS. When I tried building a test program, it works. On build ...
-2
votes
1answer
53 views

Build source code of OS to work on pi

I have raspberry-pi 2 And i want to Build tails OS to work on it I downloaded the source code and installed cmake and gcc-arm-linux-gnueabi but i have no idea how to do that. I searched online but i ...
0
votes
1answer
285 views

Make a linux to run on ARM architecture

I have a Raspberry pi board and I need to make a linux distros to run on my board without use Raspberry pi kernel. My main purpose is Make a .img file and write to SD-Card then run on my raspberry ...
2
votes
0answers
371 views

Docker image to cross compile node modules for RPI?

I am wondering if anyone knows a way(preferably docker container) to use a Linux Machine, to cross compile a nodejs application, with native modules, such as serialport and run it on a RPI? Thanks
0
votes
3answers
91 views

Unable to Compile and Run Object Files on an RPi

I have a binary file that shows [URL] [port number] when I run it on Linux. I want the same thing to happen in the Pi, but instead I get cannot execute binary file Is there anything I could do to ...
0
votes
1answer
419 views

execute cpp code written with visual studio on the Raspberry Pi 2

I am new to the Raspberry Pi and opencv lib, I have spent some time learning opencv up until I finished my first program written in c++ . Now I want to compile and execute the same c++ file on the Pi ...
0
votes
1answer
349 views

undefined reference to QCamera constructor

I'm writing a simple camera project for Raspberry Pi, via cross compiler visual studio. step 1: I created a qt project using visual studio step 2: coding for project When coding for project, I ...
1
vote
2answers
3k views

Install older kernel (3.6.11+) on Raspberry Pi 2

Somewhere in the upgrade from the 3.6.11+ kernel to the 3.10 kernel, the ability to receive video through a USB capture card broke (capture card is based on the stk1160 chipset). It is documented in ...
1
vote
1answer
2k views

Cross Compile Error Using arm-linux-gnueabihf-gcc

I am trying to cross compile a C binary from Ubuntu Trusty Tahr x64 to Arch Linux ARM on my Raspberry Pi Zero. Here is my hello-world.c code: #include <stdio.h> int main(int argc, char *argv[]...
2
votes
1answer
167 views

Cross compile kernel error

While compiling rt kernel following this http://www.frank-durr.de/?p=203 I got that error
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 ...
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 ...
2
votes
1answer
1k views

Failed to cross compile Qt 5.6 on RPi 2 (fatal error: bcm_host.h: No such file or directory)

I tried to cross compile Qt 5.6 for RPi 2 by following the tutorial RaspberryPi2EGLFS, but I got this error: qeglfsbrcmintegration.cpp:35:22: fatal error: bcm_host.h: No such file or directory #...
1
vote
2answers
243 views

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

Cross-compiling with Windows using Eclipse

I have started to read a book with Rpi Hacks in which I want to build the kernel. Unfotunately everywhere I search there are crosscompilers for linux only. I want to use Eclipse and rsync executable ...
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 ...
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 ...
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....