Questions tagged [software-compilation]

Some programming languages use compilers that 'translate' code into a lower level language before executing it. Use this tag for any questions about how to compile code on the Pi.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

C++ Long Double or equivalent on ARM64

I'm having a hard time getting a straight answer about long double precision on ARM64 architecture. I'm engineering a scientific machine requiring extreme precision, and the driver, which I will write ...
1
vote
0answers
40 views

How to compile firefox nightly on Raspberry Pi 3?

I am running ArchLinux ARM on the Raspberry Pi 3 model B. I would like to install Firefox nightly on the raspberry pi 3 model B. I can find similar questions on the internet, but most of the answers/...
1
vote
2answers
48 views

What is the Raspbian data model for pointer (size_t) and long ints?

I'm looking at portability of some code that others want to use on the Raspberry Pi using gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516 ("Raspbian GNU/Linux 9 (stretch)"). In particular I'm ...
0
votes
0answers
25 views

How to link gmp to g++ on Raspberry?

I attempt to compile a small code that uses bitcoin.hpp with the line g++ -o file file.cpp $(pkg-config --cflags --libs libbitcoin) and get an error related to gmp. /usr/bin/ld: /home/pi/libbitcoin/...
2
votes
1answer
966 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 ...
0
votes
0answers
75 views

How to build gst-omx on raspberry pi 3b+?

I am trying to build gst-omx and I keep getting errors, specifically: No package 'brcmegl' found Here is my script: #!/bin/bash export MAKEFLAGS="-j 4" set -e BRANCH="1.16" [ -n "$1" ] && ...
1
vote
1answer
452 views

How to set up the Edimax EW-7611ULB combo Bluetooth WIFI dongle

Although, this dongle works (for awhile), there is a problem with the bluetooth driver. After streaming for about an hour, the driver eats up all the Pi memory and the Pi stops responding. Power ...
0
votes
0answers
831 views

Installing gstreamer on raspian

I am trying to compile gstreamer 1.14.4 to take advantage of the webrtc module. I was able to successfully compile it using cerbero on my raspberry pi but I have an issue where when testing my webrtc ...
1
vote
0answers
83 views

Running cockroachdb on a Raspberry pi 2 model b (32-bit) as a docker container

I'm trying to run cockcroachdb on a Raspberry Pi within a docker container, but they only provide 64-bit versions of cockroach as they explained it here . But I do see references of running cockroach ...
1
vote
0answers
177 views

OpenCv compilation on raspberry pi stops at 16%

I was installing OPENCV on raspberry pi and all are done but when the compilation of opencv it stops at 16%.I used make -j4 as well as make -j1.It gives no error and it comes to build folder. This is ...
0
votes
1answer
33 views

Where to put manually compiled binaries?

I manually built the latest version of BlueZ (5.50) and I need to access some tools from Python. Where is the recommended location to put compiled binaries so that they are accessible for all users? ...
10
votes
0answers
14k views

How to install Python 3.7 with SSL? [closed]

I have compiled and installed Python 3.7 on my Raspberry Pi, but SSL is not working. These are the steps I took to install the new Python: Prerequisites: $ sudo apt-get update $ sudo apt-get ...
0
votes
1answer
46 views

RPi Unistalling All Upgraded Packages

After following this article, https://askubuntu.com/questions/101802/packages-having-unmet-dependencies-broken-packages, to fix an issue on my RPi when compiling QEMU, I ran sudo apt-get remove glib2* ...
0
votes
0answers
736 views

Invalid string offset errors when compiling RaspiCam C++ Library

I am getting these warnings with the RaspiCam C++ library, and wondering if anyone has a fix for them? My program is also crashing and I'm wondering if it's related. /usr/bin/ld: /usr/local/lib/...
1
vote
0answers
307 views

How do I build a custom RPi kernel DEB package?

I've got a couple of patches to the kernel that I want to apply and use in Raspbian. If I follow the Kernel building guide, I can apply the patch and get my kernel image and modules working just fine -...
1
vote
0answers
86 views

Installing a higiher version of GCC on Wheezy that doesn't rely on a newer glibc [closed]

We have software that we distributed to a bunch of Pis that have Raspian Wheezy. Recently, we've added in a bit of code that uses C++ standards that aren't integrated until >=gcc-4.8. If I compile on ...
1
vote
1answer
68 views

How to install latest gputils?

I'm trying to compile C for a PIC16F using SDCC on the RPi. It's going slow but I hope that installing an up to date version of gputils as per here will help. So how do I do that? I previously ...
2
votes
2answers
1k views

How to install CouchDB 2 on Raspberry Pi

I've tried installing CouchDB 2.1.0 and 2.1.1 on Raspbian Stretch following the instructions in this blog: http://andyfelong.com/2017/09/couchdb-2-1-on-raspberry-pi-raspbian-stretch/ However when I ...
1
vote
0answers
40 views

Compiling pascal applications to .elf on PC

I am making a pascal app on my pc for use on my Raspberry Pi, I thought that coding the app on my Raspberry Pi would be inefficient. I have completed the app and now I need to test the app on my ...
2
votes
1answer
1k 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 ...
4
votes
2answers
3k views

Miniconda for ARMv6 (Zero W)

I want to install miniconda on my Zero W, but it has ARMv6 architecture and that does not seem to be supported by Continuum Analytics. See https://repo.continuum.io/miniconda/ (just one outdated ARMv6 ...
0
votes
1answer
182 views

Compiling errors when compiling “MATRIX Hardware Abstraction Layer (HAL)”

git clone https://github.com/matrix-io/matrix-creator-hal.git cd matrix-creator-hal mkdir build cd build cmake ../ when i cmake, i get this error -- The C compiler identification is GNU 4.9.2 -- ...
1
vote
0answers
155 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 ...
0
votes
1answer
210 views

Twilio installation problem

During the installation of Twilio, using the command sudo pip install twilio, I get the following error: compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 ...
1
vote
0answers
1k views

How to compile printer driver?

I installed CUPS on raspbian but while adding The printer the driver/ppd file for Epson L210 series is not available and neither on epson website the driver/ppd file for armh is available , I guess ...
0
votes
0answers
501 views

How to setup a C++ virtual environment on the raspberry pi 3?

I am currently trying to install openCV on my raspberry pi 3 and found this very nice tutorial to help me with that:http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-...
0
votes
0answers
2k views

How to install raspberrypi-kernel-headers for 4.4.44-v7+

I am running kernel 4.4.44-v7+ on Raspbian 8 (jessie-lite) and trying to install the kernel headers using: sudo apt-get install raspberrypi-kernel-headers However, this installs the headers into /...
0
votes
1answer
803 views

Compile Raspivid from userland

I downloaded the userland repository from https://github.com/raspberrypi/userland and I wanted to compile just RaspiVid.c file. It's because I wanted to use the RaspiVid.c code in my project. But i ...
1
vote
1answer
624 views

How to update QupZilla on Ubuntu Mate?

The lightweight browser QupZilla is fairly outdated on Ubuntu Mate. I wonder how I can update/compile QupZilla from source? Upstream, there is no ARM package available for download.
1
vote
1answer
2k views

Compiling driver for raspbian jessie 4.4.21-v7+

I'm trying to compile the driver of rtl8812AU (github.com/diederikdehaas/rtl8812AU). I've downloaded and installed the last version of raspbian. The following is written in the change log, among ...
0
votes
1answer
2k views

How to install mpi4py on for Python3 on Raspberry Pi after installing MPICH?

I have installed MPICH on my Pi. I am making a cluster. sudo apt-get install python-mpi4py installs mpi4py. However, it also install openmpi which conflicts with MPICH. So, I started from scratch ...
2
votes
1answer
1k views

Raspberry Pi 2 NEON instruction set, vector report generation?

Lately I have been trying to generate a vector report of an OpenCV project implemented on the raspberry pi 2 model B, but for some reason there is no output. The same algorithm produces vector report ...
2
votes
1answer
120 views

Arguments for execl compiling with gcc [closed]

I have a weird problem with a Raspberry Pi 2 (model b). I'm compiling the following program in GCC in Raspbian Jessie (Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/...
4
votes
1answer
2k views

Raspberry Pi and Ada Compiler (gnat on Raspbian) - GPIO

I am looking for programming examples written in Ada (gnat) to access GPIO. I just started using a RPi3 with Raspbian, works fine. Then installed the gnat compiler and my first programs (simple tests ...
1
vote
1answer
51 views

g++ typedef strange behaviour

I am having trouble compiling some very simple C++ code on my Raspberry Pi B+. I wrote the following program in a file called test.cpp #include <stdio.h> #include <stdint.h> /...
6
votes
1answer
2k views

Install dotnet Core on Raspbian 8

I have Raspberry Pi 2 with latest Debian/Raspbian 8 OS. How can I can compile/build run latest dotnet core on this ARM based OS? I have tried install from official link: https://www.microsoft.com/...
3
votes
3answers
19k views

Linux headers in Raspbian Jessie

I have problem to install linux-headers in Raspbian on my RPi2. My kernel version is 4.1.17-v7+. I can't find the linux-headers package with apt-get.
8
votes
3answers
1k views

Is it possible to run Raspberry Pi 3 with a 64-bit kernel and 32-bit user space?

I just got my hands on a Raspberry Pi 3 and I would like to start experimenting on it, specially regarding the 64-bit instruction set. I'm well aware of the pros and cons of the 32-bit versus the 64-...
0
votes
1answer
184 views

NXP XTRINSIC-SENSE-BOARD using C

https://www.element14.com/community/thread/37836/l/reverse-engineered-sensorso-with-source https://github.com/larsch/rpi-mems-sensor Hello Everyone :) I have a raspberry V1 and a NXP senseboard, ...
0
votes
2answers
625 views

How do you compile a c++ programs to use Hard Float in Raspberry using Debian OS?

How do you compile a c++ program to use Hard Float registers? It is said in the FAQ section of Raspbian that the following tags are the only ones required when compiling. -march=armv6 -mfpu=vfp -...
2
votes
0answers
689 views

How to compile boost libraries [closed]

I'm trying to compile boost libraries that I need for compiling and installing Ocelot tracker on the Raspberry Pi. I tried with libraries from apt-get but it doesn't work. These are instructions for ...
4
votes
3answers
4k views

How to install seafile client

The seafile-client from https://www.seafile.com/en/download/ it not working, because it is not compiled for arm. How can I install seafile-client for raspberry pi?
2
votes
1answer
1k views

Pi with Arch Linux and OpenCV: errors when running cmake

I have a Pi running a fresh Arch Linux installation and I want to install OpenCV 3, but I am facing an error that I do not have when installing OpenCV on my other computers. I wrote a script that ...
2
votes
1answer
844 views

ARMv6 optimized x.264 compile fails; any ideas?

I'm using Mencoder on a Raspberry Pi B (1st gen) with modernized raspbian (i.e. the new builds that work on RP2) to make timelapse films. In general it works well, but i wanted to add x264 codec ...
6
votes
3answers
893 views

Installing MongoDB On Raspberry Pi 2

i have been trying for 2 days to get MongoDB installed on my raspberry pi but i am unable to get it to work. i know that the official mongo isn't for for ARM, but there is a fork i found at: https://...
3
votes
1answer
197 views

Compile GCC for Raspberry Pi 2B - Patches required?

I need to compile a modern version of GCC in order to compile CMake in order to compile OpenCV 3.0.0. So I want to compile a modern and stable version of GCC for the Raspberry Pi 2b. I've read this ...
2
votes
1answer
467 views

Error compiling kernel using guide provided on Raspberry Pi website

I'm encountering errors while trying to compile the kernel from source. I've looked around but I'm not finding anything that deals with the error I'm seeing specifically. I am using the guide on the ...
3
votes
1answer
6k views

RPI2 Kernel module compilation (kernel 3.18.11+ vs 3.18.11-v7+)

I want to recompile a kernel module/driver on my RPI2 for my RPI2. The command uname -a gives me: Linux cpf 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux Q1) What ...
1
vote
0answers
173 views

How can I compile raspberry2 drivers?

I downloaded raspberry2 drivers from github. When I typed ./buildme I get ./buildme: line 3: arch: command not found ./buildme: line 3: [: armv6l: unary operator expected ./buildme: line 3: arch: ...
3
votes
1answer
2k views

FFmpeg with x264 NEON support

I was wondering if there any FFmpeg binaries that support NEON on the Raspberry Pi 2? Specifically x264 with NEON support compiled into the FFmpeg binary, x264 supports NEON on Android so it should ...