Tagged Questions

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. This tag is for questions about the use of C++ on the Raspberry Pi.

learn more… | top users | synonyms

0
votes
1answer
43 views

Cross Compiling Protobuf for Raspberry Pi

I'm trying to cross compile google Protocol buffers for the Raspberry Pi, so I can cross compile my own software. I've installed protobuf-2.6.0 to the directory ~/ExternalLibs/protobuf-2.6.0, where I ...
0
votes
0answers
18 views

Rendering Issues

Im currently trying to make a multi-purpose-screen for my raspberry pi that will run on my 1080p monitor. The problem is that the raspberry pi seems to be too slow to render the fading effect in the ...
1
vote
1answer
53 views

Raspicam C++ API mmal linking

I have installed the raspicam API as instructed here: http://www.uco.es/investiga/grupos/ava/node/40 It appears to be installed correctly. When I compile any programs linking libmmal I get the ...
0
votes
0answers
29 views

Fake bcm2835 library

I'm developing something in C++ that needs to use SPI communication, The fastest way I've seen is using the bcm2835 library for RaspberryPi. I'm doing all the developing process on my pc and cross ...
0
votes
2answers
55 views

Use interrupts in i2C between Ardiono and Raspberry Pi

I'm really new to Raspberry Pi and Arduino programming (+ I2C). Recently I start working on a project where I have to connect an Arduino and a Raspberry Pi to send and receive data from each other. ...
0
votes
1answer
102 views

[C++]Trying to control GPIO pins but I get a Device or Resource busy error. How can I stop Raspbian from hogging the GPIO?

I'm using a class that I found on github to control the GPIO pins. That class can be found here: https://github.com/halherta/RaspberryPi-GPIOClass-v2 From what I understand this class works by ...
1
vote
1answer
101 views

Installing opencv (C++) on Raspberry pi and other misc packages

I've been doing a fair amount of research in regards to installing opencv on to a raspberrian distro, but the problem is that there is far too many different methods to installing it and truth be ...
1
vote
0answers
64 views

Raspberry Pi GPIO Virtualization,Possible?

So i have (planned) a project that utilize the GPIO.From what i know GPIO can be programmed and sending or receiving digital I/O. But since i don't have enough fund (yet) i need to know is there any ...
0
votes
1answer
58 views

So is there any C++ alternative for PiUi?

So actually i have a little project that require the Pi to communicate to a Smartphone (in this case android device) to transact data (sending and receiving command,etc) via any available connection ...
0
votes
0answers
52 views

Using Arduino .h files when programming in python

I have a working Arduino script that I'd like to clone in Python in Raspberry Pi. The script uses the: #include "U8glib.h" library. I'd like to write a python script that uses this c++ library. ...
0
votes
0answers
99 views

Opening omxplayer with c++ system() call on raspberry pi

For a larger project I'm trying to play simple youtube movies on my raspberry pi. I found that the easiest way to do this is to download the clip and play it with omxplayer. This because the only ...
0
votes
0answers
88 views

Fast os for Raspberry Pi

I'm creating a project with raspberry pi and I need an "os" which boots in a few seconds when the power is turned on. The os has to have the following features: audio driver (3.5mm) c/c++ running ...
0
votes
0answers
162 views

ArchLinux Qt eglfs

here is what I did. I updated everything to latest, than I installed Qt5 and some related packages pacman -S gcc make qt5-base qt5-declarative qt5-imageformats qt5-multimedia qt5-quickcontrols ...
1
vote
0answers
72 views

GLIBCXX_3.4.19 not found

I am trying to run a program, written in C++ using the new C++11 standard. I use Code::Blocks on my PC and cross-compile for the Raspberry Pi using these tools: https://github.com/raspberrypi/tools/. ...
1
vote
1answer
479 views

Sample program for RaspiCam API not compiling

I have been trying to compile the sample RaspiCam program provided on their project page. When I try to compile the code using the following: g++ simpletest_raspicam.cpp -o simpletest_raspicam ...
0
votes
0answers
278 views

Installing openCV on raspberry pi for video detection error avformat.h not found

I want to install opencv on the raspberry pi for image detection on a video I have followed this tutorial but the videos are not to be played or proccessd. I tried to install it again to make sure ...
0
votes
0answers
119 views

Interfacing Raspbian OS and webcam

I need to connect a webcam to Raspberry Pi for capturing images. I am using Raspberry Pi model B, and Raspbian Wheezy OS. Please help me out with the code. After capturing images I have to apply ...
2
votes
1answer
264 views

building Raspberry PI apps from Windows

I want to build a C++ program for face detection using visual studio and opencv. I already installed the visual studio 2013 express edition and the opencv 2.4.8 on my windows 8 computer and linked the ...
0
votes
0answers
183 views

How to get started with OpenCv on Raspberry-Pi

I have just installed the OpenCV (2.4.8) on my Raspberry-pi working on raspbian using these steps from this blog entry. I can find the cmake in the applications but not the opencv what is the next ...
1
vote
2answers
238 views

C and C++ Library and where is it located actually?

I'm trying to understand a few simple blocks about programming the Raspberry Pi. My questions are as follows.... I've worked on a number of micro-controllers out there and have always used their ...
1
vote
1answer
781 views

Simple web interface to execute C++ program

This is actually a very simple question, but I'm lost at the moment. This is actually with a beaglebone black. But I suppose the problem might translate to RPi too. I was using a beaglebone black ...
0
votes
0answers
197 views

Serial port reading, misses data

I have connected a device which sends data over a serial port, through UART and a usb connector. On my laptop running ubuntu, I have written a C++ program to read this data and store it. It sends 5 ...
2
votes
3answers
88 views

Performance drops after a few seconds

I am running a computer vision program on a Raspberry Pi (Linux raspberrypi 3.10.19+), and when it firsts begins, each iteration of the main loop runs in 6 ms. After a few seconds, the time per loop ...
5
votes
1answer
269 views

Can I just copy the libraries built in ARM to Windows (x86) in order to cross compile a source code to ARM?

Regarding cross compiling an external library to ARM. Can I just copy the built libraries in ARM (e.g. raspberry pi) to Windows and link them in CMake in order to compile a source code to be deployed ...
1
vote
1answer
398 views

C++ / javascript Socket controlled car [closed]

I'm trying to use C++ sockets to control my rpi car/tank , but I'm a bit confused . My goal is to have an html interface with a onscreen joystick , and use javascript to send X and Y coordinates ...
2
votes
1answer
308 views

HD44780 Character LCD C++ Library

I'm looking for a way to connect my Raspberry Pi Model B to my HD44780 LCD, I've tried the Rpi-hw C++ Library but to no avail. You can find the issue about it here. I've been looking ever since for a ...
2
votes
2answers
951 views

What tools can I use for a Basic C++ Interface on Raspberry Pi running Rasbian

I am designing a system using a Raspberry Pi (Model B - 512mb) that depends on OpenCV libraries for Haar-like feature detection, and fswebcam/gpio/libgphoto2. I need more speed than Python can offer. ...
5
votes
2answers
5k views

Can I install Git on Raspbian?

Can I get git on Raspbian to back-up my C/C++ files? Do I need to download anything to use git on my Raspberry Pi? Where can I learn to use it?
0
votes
3answers
1k views

SDL 1.2 for use with C++ on Raspbian?

Can I get the SDL libraries on Raspbian? I don't actually have a Raspberry Pi, but before I get one I want to know if I can. If I can then: Does it have all the features of SDL 1.2? How long does ...
1
vote
1answer
1k views

Opencv on a raspberry PI [closed]

What language would be best to use on a raspberry PI with Opencv. Bearing in mind for each language used : Library updates Development Environment including tool kits Performance ...
1
vote
1answer
88 views

Periodic process stalls

Was wondering if anyone is familiar with this - I've got the RPi working as an LED controller, sending digital color data 60 times per second to some WS2801 LED controller chips. Everything's working ...
1
vote
1answer
828 views

Simple C++ program compiles but does not run

Having installed the g++ compiler, I thought I might finally be allowed to do some C++ rather than Python on my Pi. Not so though, as my program does not run. It compiles fine, with no errors, and ...
3
votes
2answers
15k views

How to install C++ compiler on Raspberry Pi

What to type at command line after sudo apt-get install...? I want the MinGW compiler like I have on my Windows computer
3
votes
2answers
1k views

Using 128bit integers in gcc

I'm trying to compile this on my Raspberry Pi int main() { __int128 a = 0; return 1; } and I get this error pi@raspberrypi ~ $ g++-4.7 main.cpp main.cpp: In function ‘int main()’: ...
0
votes
2answers
3k views

How to add ARM properly to the build target (Code::blocks)

I want to develop C++ applications for my PI on my PC, I made a develop environment in Ubuntu with the Code::blocks IDE. The problem is that my PC is X86, and the PI is ARM. So how can I add ARM to ...