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
68 views

“apt-get: command not found” issue on raspberry pi os built using Buildroot

I have built a sdcard.img for raspberry pi using Buildroot. When I run apt-get command it throws error "apt-get: command not found". I did not find apt-get/dpkg package to enable in 'make menuconfig' ...
1
vote
0answers
10 views

Linux headers missing from a custom kernel built through cross-compilation

Helo, I have followed the instructions given at https://www.raspberrypi.org/documentation/linux/kernel/building.md to build a custom kernel. (I have cross-compiled it on an x86 box.) The custom ...
1
vote
0answers
61 views

Qt cross compilation *QOpenGLShaderProgram: could not create shader program* error

I am using the QT Creator for my laptop (Linux LMDE 3 Cindy OS) And for Raspberry Zero Cross-compiling. I have installed the QT based of this instruction and by this setting: mkdir ~/raspi ...
0
votes
0answers
58 views

Developing in Ada 2012 in Windows 10 for Raspberry Pi

I would like to develop in Ada 2012 in Windows 10 for Raspberry Pi. I would prefer not to install the GPS on the Raspberry Pi, at least , not at first; not least because I want a headless Pi and to ...
1
vote
1answer
121 views

Is there a way to cross-compile for armv6 using gcc-7?

I am trying to cross-compile for raspberry B/raspberry zero on ubuntu18.04 using crossbuild-essential-armhf. I installed it using : apt-get install -y crossbuild-essential-armhf In order to test I ...
1
vote
0answers
55 views

Raspberry Pi Qt toolchain on Ubuntu 16.04

I have issues creating a tool-chain for cross compiling Raspberry Pi 3 Qt applications through Ubuntu. I used directions from this guide, https://wiki.qt.io/Raspberry_Pi_Beginners_Guide, to help me ...
2
votes
0answers
213 views

Latest Qt5 does not provide EGLFS during cross-compilation

Some time ago I set up a Linux host to cross-compile Qt5. I used this configure command: ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/opt/tools/arm-...
3
votes
1answer
238 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 (...
0
votes
1answer
106 views

Not able to compile the u-boot 2017.09

This is the OS info that I am using in my pi3 (BCM 2837) board. pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux [ am I using the ...
2
votes
1answer
32 views

Building an old kernel is not possible because the arch/arm/boot/dts/overlays/ directory does not exist

I've been trying to build a kernel from the 4.14.85 version. I followed the instructions from the official documentation but instead of using the latest version you can find in the repository I ...
1
vote
0answers
61 views

Cross-compiling for Raspberry Pi 0/1

I am trying to cross compile FFmpeg for a Raspberry Pi 0/1 running Raspbian Strech. I am following this guide on the official site but I have come to a standstill. Although I am trying to compile ...
0
votes
0answers
55 views

Cross-compiling glibc on Ununtu 18.10 (or 18.04) for RaspberryPi 3 B+

I naively tried cross-compile glibc with gcc 4.7.3.0 on Ubuntu 18.04 using the following command line: ../glibc/configure --prefix=/usr --host=arm-linux-gnueabihf After fixing all compilation errors ...
0
votes
0answers
146 views

Trying to compile arm binary using Dockerfile, failing

so I have a Dockerfile that I need to compile parity an ethereum client for ARM architecture. Attached is the Dockerfile: FROM ubuntu:16.04 WORKDIR /build # install tools and dependencies RUN apt-...
4
votes
1answer
73 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 ...
0
votes
1answer
92 views

Compiling modules for cross-compiled arm64 kernel fails with Syntax error

I successfully cross-compiled the current Raspi Kernel on my 64-bit machine to the target architecture arm64. I went through all the necessary steps for inserting the newly built kernel into my Dietpi ...
0
votes
1answer
48 views

Parallel compilation linux real time kernel

Within the framework of a lab I had to compile a kernel using several commands such as: make zImage j-8 make modules j-8 make dtbs j-8 j-8 means I used parallel compilation but I am asked this ...
0
votes
1answer
356 views

How to Install OpenCV in Visual C++ for Linux Development [closed]

I want to use this plug-in for Visual Studio Visual C++ for Linux Development to develop applications for the Raspberry Pi with code generated from another computer using Visual Studio. In my laptop ...
0
votes
0answers
97 views

Kernel module can't be loaded - “invalid module format”

Headline: I've cross-compiled a kernel module for the Raspberry Pi, but on attempting to load it, I get the following error: insmod: ERROR: could not insert module testmod.ko: Invalid module format ...
1
vote
1answer
365 views

Cross Compiling ARM Kernel on 64bit machine

I've been trying to cross compile a kernel for my Pi 1 on my 64bit Desktop, following this guide: https://www.raspberrypi.org/documentation/linux/kernel/building.md At this command (in the last ...
0
votes
0answers
44 views

Rpi -3 fail to run `esptool`

In order to communicate with ESP32 to run miropython code, I needed to install esptool on my RPI ( done successfully )- using this guide . When executing, I got an error message that it doesnot exit- ...
0
votes
0answers
179 views

cross compile Qt 5.7 for rpi3 : help needed

i am trying to cross compile QT 5.7 for rpi 3 and following following links for the same: https://www.ics.com/blog/configuring-qt-creator-raspberry-pi https://wiki.qt.io/RaspberryPi2EGLFS on ...
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
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 ...
1
vote
1answer
247 views

Adding gcc compiler to Poky image for raspberry Pi

I am using raspberry Pi 3 running a poky image built using the Yocto project. Is there any possible solution to add gcc compiler to the image? I found the cross-compilation very complicated and ...
1
vote
1answer
111 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 ...
1
vote
2answers
2k views

Cross compiling from Fedora 27

I'm attempting to cross-compile a C++11 project for my Raspberry pi. In my searching online, I have come to the conclusion that I need the g++-arm-linux-gnueabihf compiler (please correct me if I am ...
0
votes
1answer
310 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 ...
0
votes
0answers
842 views

Qt 5.9 cross-compilation guide for Raspberry Pi

G'day, I've been attempting to setup a cross-compile workflow for the last week, and have not had any success, despite the numerous guides and how-to's online. My host machine is running 64-bit ...
1
vote
1answer
377 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
967 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
225 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 ...
4
votes
1answer
4k 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 ...
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 ...
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
0answers
124 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
564 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? ...
2
votes
1answer
1k views

Cross compiling Qt on windows for raspberry pi, missing xcb dependencies

I am trying to start with Qt for Raspberry Pi on a Windows Dev System. To begin with to setup the environment, I followed the below as per the official wiki page. From starting at various stages, I ...
7
votes
2answers
7k 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-...
0
votes
1answer
675 views

U-Boot for raspberry pi Install cross compiler and export environment variables:

I have done below procedure but failures occurs root@caravel:/home/ram/Desktop/u-boot-2017.01# sudo apt-get install gcc-arm-linux-gnueabi Reading package lists... Done Building dependency tree ...
0
votes
1answer
662 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
218 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
1k 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 ...
1
vote
0answers
410 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
2answers
1k 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
1answer
469 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 ...
0
votes
1answer
408 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 ...
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 ...
-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
270 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 ...
0
votes
1answer
293 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.