Questions tagged [cross-compilation]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

Cross-compile of Qt for Raspberry Pi fails for XCB support with updated toolchain

I had successfully cross-compiled Qt 5.11.2 for Raspbian Buster on Ubuntu 18.04 host mostly using these guides: https://www.ics.com/blog/configuring-qt-creator-raspberry-pi https://wiki.qt.io/...
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 ...
0
votes
0answers
18 views

Unknown host QEMU_IFLA type: 50 intalling python on docker

I'm trying to create a docker image to compile python libraries for arm on a x86 instance. This is the process I'm following: 1) Install quemu: sudo apt-get install qemu qemu-user-static qemu-user ...
3
votes
1answer
980 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 ...
0
votes
1answer
136 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 ...
1
vote
3answers
633 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 ...
2
votes
0answers
502 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-...
1
vote
1answer
146 views

symbol lookup error: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent

I have cross-compiled executable file from QT 4.8.7. I am running it on a Raspberry PI (Ubuntu), with QT 4.8.7 and QT declarative module installed. When i run the executable file on my raspberry pi, i ...
1
vote
1answer
340 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 ...
0
votes
1answer
127 views

Embedded Xinu for RPi

I have completed with setting up the cross compiler but stuck with the compiling part. I have build all the gnu binutils and the gcc successfully in the directory: /home/admin/xinu/opt. But while ...
1
vote
1answer
151 views

Cross compile for Raspberry Pi Zero from Ubuntu?

I've got a CMake project I'd like to cross-compile for Raspberry Pi zero. I'm able to compile my code using the gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf toolchain and run it over Raspberry ...
2
votes
1answer
931 views

Is it possible to compile AOSP on the Raspberry Pi 4?

I am planning to get the RPi4 with 4GB RAM to replace my desktop. I occasionally build AOSP and Lineage for my android devices, so I wanted to check if RPI4 can be used to compile the same? I have ...
1
vote
0answers
124 views

Cross-compiling for Raspberry Pi I fails using Linaro 7.4.1 toolchain

I downloaded the latest Linaro toolchain (https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/) to cross-compile C++ code for different Raspberry Pis which running a ...
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 ...
0
votes
1answer
755 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
1k views

Is it possible to fix the “cannot find -lgcc” and “cannot find -lgcc_s” error messages when using arm-linux-gnueabihf-g++ as a linker?

I get the following error messages: ./Downloads/tmp/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux‌​-gnueabihf/bin/ld: cannot find -lgcc_s and Downloads/tmp/usr/bin/../lib/gcc/arm-...
0
votes
1answer
2k views

When I compile with arm-linux-gnueabihf-g++ version 4.7, I get error while loading shared libraries: libstdc++.so.6

When I compile with ./gcc-arm-linux-gnueabihf-4.7-master/bin/arm-linux-gnueabihf-g++ -c Steph.cpp on an Ubuntu Linux 16.04 machine which already has gcc 5.3.1 installed: I get the error while loading ...
0
votes
1answer
142 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 ...
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
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....
0
votes
1answer
116 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 ...
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 ...
2
votes
2answers
437 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' ...
2
votes
0answers
288 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 ...
1
vote
0answers
19 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
112 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 ...
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-...
3
votes
1answer
594 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 (...
1
vote
1answer
2k views

Is it possible to cross compile from Arch Linux host with qemu and chroot and how?

I was looking this post and trying to make in on my Arch Linux x86_64 host, but without success. I can't chroot inside and I've noticed that Arch doesn't have qemu-arm-static bins, and it looks that ...
2
votes
1answer
57 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
136 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
90 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 ...
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 ...
0
votes
0answers
211 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-...
5
votes
1answer
108 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 ...
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?
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 ...
0
votes
1answer
60 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 ...
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 ...
11
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 -...
2
votes
2answers
1k views

wiringPi and crosstool-ng

I have a Problem using wiringPi with crosstool-ng. First I got this Error: libwiringPi.so: file not recognized: File format not recognized I think the problem might be that ./build will not use ...
0
votes
0answers
147 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
512 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
48 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
226 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
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
2k 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: ...
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?
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 ...
2
votes
2answers
280 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/...