Questions tagged [cross-compilation]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Cross compiler fails to compile C code that includes a library (eg. libusb)

I need to control the USB ports of my Raspberry Pi 1 B+ in order to disconnect/reconnect USB devices without physically accessing the machine/cable. I have found hub-ctrl.c which seems to be just fine ...
1
vote
1answer
378 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
0answers
48 views

Cross compiling 64bit to 32bit

Is there a means of compiling applications on 64bit RaspbianOS to run on 32bit Raspbian? I'm trying to compile Google Test on a 32bit Pi at the moment and I'm not getting very far. So I'm guessing an ...
1
vote
1answer
509 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
57 views

Cross compile opencv WITH gstreamer on raspberry pi 3/4

I want to compile opencv WITH gstreamer for an application to run on my Raspberry pi 3b+. I am unsure what to do as many tutorials are outdated or complicated and there is no build with gstreamer ...
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
215 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 ...
1
vote
1answer
64 views

How to install pi libraries to cross compile for pi-zero in wsl2

I started developing a dbus based code for pi-zero, and compilation is slow. I would like to cross compile in my PC to speed things up. I have WSL2(Ubuntu) setup on my PC and copied the pi toolchain ...
1
vote
0answers
30 views

How to cross-compile a binary for a Raspberry Pi written in Haskell in Ubuntu Linux? [closed]

In the past I have compiled binaries for different architectures on an x86_x64 with the resulting target binary generated for a different architecture; For instance the target binary might be for ...
2
votes
1answer
2k 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 ...
1
vote
0answers
66 views

OpenCV cross-compilation fails

I have cross-compiled Qt on my CentOS host for my Raspberry Pi and now I want to cross-compile OpenCV with the following script: CORES=4 IP=192.168.178.52 TEMP_PATH=/home/kampi/OpenCV SYSROOT_PATH=/...
1
vote
0answers
75 views

Compile Linux kernel with toolchain built for aarch64 and uClibc

I am using RPI3 model B I have compiled toolchain using crosstool-ng with the following sample. ./ct-ng aarch64-rpi3-linux-gnu Using ./ct-ng menuconfig, I changed C library from glibc to uClibc. ...
0
votes
2answers
118 views

How can I run a cross-compile binary on my RPi?

I compile a simple Hello World programm with different compilers (from https://github.com/raspberrypi/tools): ./arm-linux-gnueabihf-c++ ~/Desktop/hello.c -o ~/Desktop/myapp -static The compilation ...
2
votes
5answers
2k 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 ...
0
votes
1answer
172 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 ...
2
votes
0answers
461 views

Cross compiling and sysroot

I've been following instructions to cross compile code for the Raspberry Pi but I need some clarification regarding the tool chain and sysroot. My setup is as follows: Host: 4.15.0-76-generic x86_64 ...
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
0answers
116 views

Cross-compiling QT interface to a Raspberry PI 3

I'm trying to install Qt interface to a Raspberry Pi 3, which raspbian is the "2016-05-27-raspbian-jessie". I didn't want to install, directly, all the packages on the raspberry so as to let ...
7
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 ...
0
votes
1answer
953 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 ...
1
vote
1answer
154 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
697 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
1k 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 ...
2
votes
0answers
889 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-...
0
votes
1answer
134 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 ...
2
votes
1answer
2k 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
2k 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
352 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 ...
3
votes
2answers
9k 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
69 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
199 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 ...
84
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
2k 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
478 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
48 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
165 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
12k 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
1k 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
108 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
234 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 ...
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
337 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
241 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 ...
9
votes
2answers
6k 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?
5
votes
1answer
7k 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
72 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 ...
4
votes
1answer
2k 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 ...