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.

learn more… | top users | synonyms

0
votes
0answers
5 views

Add new tags [ada-language] [gnat-compiler] [cobol-language] [gnucobol-compiler] [migrated]

While creating my question I found that there are no tags for the ADA language, the GNAT compiler, nor the COBOL language and the GNUCOBOL compiler. ADA is used in many real-time critical ...
3
votes
1answer
27 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
22 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> /...
3
votes
1answer
82 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/...
0
votes
0answers
16 views

I can't build apache 2.4.20 correctly

When i finish compiling and installing Apache 2.4.20 with apr, apr-util and pcre on Raspbian lite 4.4, I only have these directories in /usr/local/apache2/: bin, build, include, lib and modules. ...
0
votes
0answers
23 views

Having trouble configuring the Pocket PiGRRL from the 2 button config to the 4 button config

I require assistance on attempting to change the code in the system. When I updated the code and make the retrogame command as stated in the Adafruit guide, I get a huge error: http://imgur.com/...
3
votes
2answers
1k 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.
6
votes
1answer
325 views

It is 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
48 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
52 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
59 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 ...
2
votes
2answers
415 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?
0
votes
1answer
367 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 ...
0
votes
0answers
89 views

Compiling Qt 5.4.1 fails for compiling owncloud client

I have compiled Qt 5.41 following the manual I have not seen any problems during the process, and have verified that the LD_LIBRARY_PATH and PATH variables are correct. When try compiling owncloud ...
2
votes
1answer
159 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 ...
0
votes
0answers
154 views

No available video device SDL2

I'm trying to get a simple window with OpenGL up with C (CodeBlocks IDE). I'm using SDL2 as a window manager. However, when I start it up SDL_Init fails and SDL_GetError "No available video device". ...
6
votes
3answers
342 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
102 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
110 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
3k 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
88 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: ...
2
votes
1answer
496 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 ...
0
votes
1answer
70 views

Compiling source code fundamentals: general steps to compile some program for any Linux

I have compiled source codes some times for some Linux programs, so I was wondering if it could be done too for Raspberry. I have a Raspberry Pi 2 running Ubuntu v14.04.2 LTS. I don't know if the ...
2
votes
1answer
418 views

G++ 4.8 optmization for compile on Raspberry Pi 2

I have installed G++ 4.8 with the C++11 standard. Searching around the internet I found some flags that apparently should decrease compile time considerably. I have ended with this, it compiles fine ...
2
votes
1answer
255 views

si7013 driver install raspberry pi

I bought a Silicon Labs si7013/20/21 usb dongle and now I'm trying to install it onto a raspberry pi 1 running raspbian with kernel 3.18 + I compiled a kernel after adding the drivers to drivers/...
2
votes
1answer
3k views

How to run 2 servos with wiringpi2 on Raspberry pi 2

Hello I want to use 2 servo with different gpio pins. But Raspberry has one hardware pwm (GPIO 18). first of all I tried another pin to run servo and my code: wiringpi.pinMode(18,2) wiringpi....
1
vote
0answers
65 views

How to make a battery powered and re-programmable robot with raspberry pi? [closed]

Normally using a microcontroller what we do to make a robot: We write the code and compile it We connect the programmer to the computer and then transfer it to the microcontroller Now once we have ...
3
votes
2answers
658 views

How do I compile gcc 5 for my Raspberry Pi 2

I have a Raspberry Pi 2. What is the best way to get a functional gcc 5 (from the current trunk) on the Raspberry Pi? Since compiling gcc takes a good two hours on my x86-based computer and probably ...
1
vote
1answer
108 views

Should I provide additional parameters for make on Raspberry Pi2?

I was wondering if make would need extra parameters to make use of the 4 core A7 on the Raspberry Pi 2? I have read that you can specify make -j# at a rate of cores x 1.5 to run parallel jobs within ...
0
votes
1answer
173 views

“…relocation truncated to fit: R_AVR_13_PCREL against symbol…” using PlatformIO on Raspbmc through ssh

I ssh into my Raspbmc installation through my iPad (I don't have a keyboard). I was looking into developing for Arduino on the Pi, as I don't have my primary PC with me right now. I installed ...
1
vote
0answers
290 views

xbuild fails to build .csproj on raspbian

I am trying to build a C#-project (written on windows, copied to the Pi): root@raspberrypi:/home/pi# xbuild MDD_Basic.csproj Which leads to two error messages and the build inevitably failing. ...
1
vote
0answers
510 views

Build RTL8188eu wireless drivers on pidora (Fedora remix) [closed]

I'm rather new to the raspberry pi (and linux in general) and am trying to compile the rtl8188eu drivers on pidora (The fedora remix) and have been having some trouble. I have already downloaded the ...
0
votes
1answer
379 views

PJSIP cross compilation linker error unresolvable relocation

I'm trying to write a very small, very simple project using PJSIP. But I'm already stuck on the first step, incorporating PJSIP in my project. I'm trying to build and compile on a Ubuntu 14.04 system ...
2
votes
1answer
231 views

XBMC compilation error

I have the lastest Raspbian version (the 3.12.24+ kernel) and i tried to compile xbmc by following this guide: http://www.raspbian.org/RaspbianXBMC All Worked until the make... I got this error: ...
0
votes
0answers
90 views

C# VCNL4000 Make error with ../version.h

I was trying to use a proximity sensor with the Raspberry PI called the VCNL4000 using this git:https://github.com/silentbobbert/pi_sensors . An existing solution is shown in this video: https://www....
1
vote
0answers
466 views

Why I can't compile and install cgminer on my RaspBerry?

I am trying to install Cgminer on my RaspBerry (it use RaspBian that is a Debian minimalistic version) as explained here: https://bitcointalk.org/index.php?topic=494625.0 In particular the ...
1
vote
1answer
1k views

Sound recording program using Nano

I want to make a sound recording program such as this on my RPI machine with several modifications. The problem is that I get the fatal error message "alsa/asoundlib.h : No such file or directory". I ...
0
votes
1answer
1k views

Installing software with dependencies

I want to install the last version of Minimodem on my Raspi. If I do: sudo apt-get install minimodem I obtain the version 0.8.1, which is not the last one that the author has released. The last ...
1
vote
1answer
132 views

Building ruby on a Raspberry “mini distro”

I installed this little disk image on a 1GB SD card. I would like to run ruby within this system, which is not installed yet. I decided to use rbenv instead of RVM (I have my reasons). My ...
0
votes
0answers
569 views

Compiling Mono 3.x on Raspberry Pi

To get rid of the soft float vs. hard float ABI problem I tried to install an up-to-date version of mono on my Raspberry Pi with git clone https://github.com/mono/mono.git cd mono git submodule init ...
2
votes
1answer
247 views

Fail to compile NancyFX

I'm trying to compile NancyFx on my raspberry using this guide but fail at step 5. The command "rake mono" failes with the error uninitialized constant Albacore:Task So, I guess there is ...
6
votes
2answers
29k views

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. ...
1
vote
1answer
307 views

Building/Running Ur Quan Masters (Arch)

I'm trying to get Star Control II: The Ur-Quan Masters (uqm) running on my Arch Pi. I've downloaded the source and the primary content pack. First, I untarred the source in /root/, producing the ...
2
votes
1answer
2k views

How can I install YouCompleteMe vim plugin on raspbian

You complete me requires vim version 7.3.584+ ,mine version is: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 20 2013 06:48:10) Included patches: 1-547 Can I still install it somehow? I suppose ...
2
votes
2answers
330 views

Lightweight and/or legacy distro for FOTRAN hackery?

My grandfather was a programmer back in the day, and lately he's been hearing about the RPi in the news and he's expressed a desire to try one out. He can remember computers filling whole rooms and ...
11
votes
2answers
13k views

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 ...
1
vote
2answers
120 views

Can I compile R-Pi programs (Qt) on R-Pi itself?

I want to create GUI in Qt and would like to know if I can compile and test the programs on the Pi board itself. That way, I only need to connect to R-Pi using SSH and modify code, compile and test it ...
5
votes
2answers
3k views

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 ...
0
votes
4answers
13k views

javac: command not found - after installing Java

Having just installed Java on the Pi, which in itself was virtually impossible, I have written some Java. Which will not compile. Having written the file, named hello.java, I type: javac hello.java ...
0
votes
2answers
551 views

trying to build file with gcc getting several errors [closed]

I have the code below I am trying to build #include stdio.h #include stdlib.h #include signal.h #include wiringPi.h #include softPwm.h void control_event(int sig); int HARD_PWM_PIN=1; Hardware PWM ...