Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
15 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
24 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
0answers
124 views

How to Install OpenCV in Visual C++ for Linux Development

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
30 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
1answer
84 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
52 views

Qt project deployment on rpi 3 board

I am done with cross compiling Qt 5.10.1 for rpi 3 board and took me nearly 7-8 days. now everything is set and when i tried to run the deployed project on rpi3 : The error popped out: relocation ...
0
votes
0answers
14 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
80 views

cross compilation Qt 5.9.1 with rpi 3

I am trying to cross compile QT 5.9.1 for Rpi3 board. when i run make command i am getting following errors: make[5]: *** [../../../../lib/libQt5EglFSDeviceIntegration.so.5.9.1] Error 1 make[5]: ...
0
votes
0answers
99 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
101 views

SWUpdate Cross-Compile for Rasbian Raspberry Pi 3b+

I'm trying to cross-compile SWUpdate for Rasbian with the Tool given by raspberrypi, but I keep getting library error include/parselib.h:22:23: fatal error: libconfig.h: No such file or directory ...
3
votes
1answer
543 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
1k 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
120 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
76 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
778 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
156 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
719 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
246 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 ...
0
votes
0answers
57 views

To compile AODV-UU, getting error (modversions.h: No such file or directory)

I'm using Raspberry pi 3 (Raspbian_ARMv7_4.9.67-V7+) to compile AODV-UU. When I am trying to do make then getting below error: cc1: fatal error: /lib/modules/4.9.67-v7+/build/include/linux/...
2
votes
1answer
729 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 ...
1
vote
1answer
110 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
2k 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
841 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
88 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
487 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? ...
6
votes
2answers
3k 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
544 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
481 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
179 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....
5
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
340 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
795 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
361 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
341 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
1k 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
47 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
221 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
254 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
0answers
328 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
7
votes
3answers
6k views

Which toolchain for Raspberry Pi 3 and Qt5

Which is the recommended toolchain to cross-compile Qt5.6 for Raspberry Pi 3? I tried official tools: https://github.com/raspberrypi/tools but it seems they don't support the architecture and flag ...
9
votes
3answers
2k views

What's causing these crashes after cross-compiling?

I'm trying to cross-compile a large library (TensorFlow) using gcc on Ubuntu. I've installed the g++-arm-linux-gnueabihf toolchain, and was able to successfully build my binary. The process I'm using ...
2
votes
2answers
682 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
1answer
875 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
1k 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
307 views

undefined reference to QCamera constructor

I'm writing a simple camera project for Raspberry Pi, via cross compiler visual studio. step 1: I created a qt project using visual studio step 2: coding for project When coding for project, I ...
0
votes
1answer
327 views

execute cpp code written with visual studio on the Raspberry Pi 2

I am new to the Raspberry Pi and opencv lib, I have spent some time learning opencv up until I finished my first program written in c++ . Now I want to compile and execute the same c++ file on the Pi ...
0
votes
1answer
203 views

Cross compiling cross-compiler for Raspberry Pi

I want to build programs with distcc on a Raspberry Pi for my desktop (x86-64). My idea: Build crossdev-ng on my desktop. Build cross-compiler on my desktop to run on desktop and generate code for ...
0
votes
3answers
78 views

Unable to Compile and Run Object Files on an RPi

I have a binary file that shows [URL] [port number] when I run it on Linux. I want the same thing to happen in the Pi, but instead I get cannot execute binary file Is there anything I could do to ...
0
votes
1answer
2k views

Cross Compile Error Using arm-linux-gnueabihf-gcc

I am trying to cross compile a C binary from Ubuntu Trusty Tahr x64 to Arch Linux ARM on my Raspberry Pi Zero. Here is my hello-world.c code: #include <stdio.h> int main(int argc, char *argv[]...