Questions tagged [cross-compilation]

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

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
35 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....
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 ...
2
votes
0answers
165 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 ...
2
votes
0answers
350 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-...
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 ...
2
votes
0answers
367 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
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
0answers
42 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 ...
1
vote
1answer
57 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
13 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
74 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 ...
1
vote
0answers
105 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 ...
1
vote
1answer
295 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
0answers
143 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
572 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
0answers
225 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....
1
vote
0answers
417 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
0answers
281 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
0answers
785 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 ...
1
vote
0answers
467 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.
1
vote
0answers
446 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
0answers
2k 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-...
0
votes
1answer
123 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 ...
0
votes
0answers
69 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
189 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-...
0
votes
1answer
116 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
0answers
107 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 ...
0
votes
0answers
47 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
199 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 ...
0
votes
1answer
704 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
125 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 ...
0
votes
0answers
336 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, ...
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, ...