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

3
votes
1answer
68 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
3answers
254 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
1answer
90 views

trying to build file with gcc getting several errors

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 ...
2
votes
2answers
644 views

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

Can I use my Ubuntu desktop to cross-compile the GO language environment for my Pi?

As stated on the official Golang site, there is no binary distribution for ARM yet. I'll have to compile GO from source, and it might not be straightforward, and require a few tries. Compilation ...
1
vote
0answers
48 views

Eigen's unit tests fail

I have been trying to compile and install the Eigen library on my Raspi. Compiling seems to go just fine. However, when i try to run the library's unit tests with make test after compilation, all of ...
3
votes
2answers
97 views

What can cause libs to not be found on raspberry pi

On my Raspberry Pi, with Debian Squeeze, I want to link to the shared objects in /opt/vc/lib. I have added this directory to a file in /etc/ld.so.conf.d/ which is included in /etc/ld.so.conf. The ...
2
votes
1answer
317 views

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?
8
votes
3answers
1k views

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 ...
2
votes
2answers
345 views

Compiling Objective C with Clang

I have installed clang using apt-get install on my Raspberry Pi. Now I was wondering how I can compile a .m file (Objective C) in terminal. Let's say I called it bob.m and I want the output file to be ...
1
vote
1answer
745 views

how do you build sample OpenCV programs that come bundled with the OpenCV source?

I have successfully installed OpenCV 2.3.1 on Raspbian image and I would like to build/run some of the C/C++ programs located under the ~/OpenCV-2.3.1/samples directory. For example, if I wanted to ...
2
votes
2answers
395 views

Compiling for CPAN not possible on raspbian?

I'm trying to install the Perl module Linux::Inotify2. The installation requires some C compiling. Which compiler CPAN uses is the same one Perl was compiled with. Which one that is can be seen with: ...
3
votes
1answer
322 views

Perlbrew install failed on Rasbian Wheezy

I'm trying to install Perl 5.16.1 though perlbrew on my Raspberry Pi and (after many painful hours) the install failed. I installed it with the regular command: perlbrew install perl-5.16.1 The output ...
1
vote
0answers
481 views

How to compile driver for RTL2832

I try to compile this driver for my DVB-T stick. I've downloaded a 3.1.9 kernel-source and prepared the headers as described here. But it doesn't help, instead I get this error: ...