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
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
0answers
11 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 ...
0
votes
1answer
118 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
6k 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
32 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
72 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
50k 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 ...
0
votes
1answer
103 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
2answers
121 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
116 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
12 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
1answer
269 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
122 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
0answers
63 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
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-...
1
vote
1answer
228 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
696 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-...
2
votes
0answers
293 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
289 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
34 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
83 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
59 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
175 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
80 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
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 ...
0
votes
1answer
51 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 ...
8
votes
2answers
35k 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
988 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
100 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
409 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
46 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
190 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
0answers
852 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 ...
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
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: ...
16
votes
3answers
45k 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
278 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
325 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
113 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
295 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
385 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
980 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 ...