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.

87 questions
26
votes
4 answers

Which CPU flags are suitable for gcc on Raspberry Pi?

gcc takes the -mcpu= (or -march=) flags to produce optimized code for a particular CPU type. There's a plethora of arm variants, and the gcc Arm target also provides numerous FPU types. Which -mcpu=/-march= flags and -mfpu= flags are the…
nos
  • 1,106
  • 2
  • 10
  • 14
21
votes
2 answers

Install software on raspberry pi offline

As of now I don't have a wifi adapter for Raspberry Pi with me. If I want to update or install any software, my Rpi should be connected to internet. Is there any way I can install software in offline mode? Is there any source where I can find…
11
votes
0 answers

How to install Python 3.7 with SSL?

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 upgrade $ sudo apt-get dist-upgrade $ sudo apt-get install…
swizzlevixen
  • 313
  • 1
  • 2
  • 12
10
votes
2 answers

How can I build MongoDB?

It seems to me like there's currently two way to go about this: https://github.com/skrabban/mongo-nonx86 https://github.com/RickP/mongopi I settled for the mongo-nonx86 fork. I installed the dependencies as described in Install Mongodb in…
Oliver Salzburg
  • 1,794
  • 1
  • 19
  • 33
10
votes
1 answer

Is there a port of DirectFB?

The website states that progress has been made "using Raspberry PI or other Broadcom hardware". I've looked at their graphics support and BCM2835 wasn't there. If it has been ported then what are the required libraries and tools to compile it for…
ArchHaskeller
  • 1,435
  • 12
  • 35
9
votes
3 answers

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-bit instruction set, so please stick to the…
7
votes
2 answers

Trying to execute 'a.out' returns "-bash: a.out: command not found."

I wrote a simple C program on a different Linux computer. I would compile it using gcc guess.c That would output an a.out file. I would then just type the command a.out, and my C program would run. I attempted to run the same C program on my Pi. It…
Morgan Kenyon
  • 173
  • 1
  • 1
  • 6
7
votes
1 answer

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/net/core#debian but it seems that install script…
Hrvoje Kusulja
  • 385
  • 1
  • 4
  • 9
6
votes
1 answer

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 with textual input/output via console)…
jmlietaer
  • 63
  • 1
  • 6
6
votes
3 answers

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://github.com/skrabban/mongo-nonx86 but it fails top…
X0r0N
  • 173
  • 1
  • 8
5
votes
2 answers

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 installer). Is it reasonable to give it a shot…
VaNa
  • 211
  • 2
  • 7
5
votes
2 answers

How to automagically have yaourt / makepkg add the armv6h platform to PKGBUILD?

Thanks to yaourt it's pretty simple to install non-standard software. However in most cases I have to manually edit the PKGBUILD file from arch=('x86_64' 'i686') to arch=('x86_64' 'i686' 'armv6h') for the compilation to start. Is there any way to…
Tobias Kienzler
  • 720
  • 1
  • 7
  • 23
5
votes
2 answers

How to compile with qt for raspberry

Is it possible to compile for Raspberry Pi using the Qt framework or is it possible to install the Qt creator on the actual Raspberry?
opc0de
  • 654
  • 5
  • 11
  • 18
5
votes
2 answers

Compiling Objective C with Clang

I have installed clang on my Raspberry Pi. How can I compile a .m file (Objective C) through the terminal? Let's say I called it bob.m and I want the output file to be called bob and I'm already in the correct directory, what is the exact command?
user1628
  • 161
  • 1
  • 3
4
votes
3 answers

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.
K_Mil0
  • 41
  • 1
  • 1
  • 2
1
2 3 4 5 6