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
0answers
17 views

How to compile OpenCV 3 sample C++ programs? [closed]

How can I compile OpenCV 3 C++ samples? In OpenCV 2.4.8, there is a build_all.sh file but OpenCV 3 doesn't have one.
1
vote
1answer
33 views

Using I2c port as standart GPIO

When I try to use I2c1 SDA pin (GPIO 2 BCM number) via GpioController::OpenPin() func, it compiles OK but it throws an exception HRESULT:0x80070490 Element not found. How should I use I2c pins as any ...
2
votes
1answer
51 views

lens for raspberry pi 2 to expand the field of view

Hi all i'm using raspberry pi 2 with raspbian , i'm working on face and eyes detection using opencv and c++ , i want to expand the field of view for the pi official camera module any suggestions will ...
0
votes
0answers
43 views

How to use floating point support in raspberry pi 2

I'm using raspberry pi 2 with raspbian and I'm working on face and eyes detection using opencv and c++. I want to improve the performance and the execution of my program and I was wondering if I can ...
1
vote
0answers
34 views

Removing a delay function while capturing image using c++ API for picamera gives me completely black jpeg images

I am working on reducing the image capturing time for pi camera module ..and I found out a way of capturing the image within 10 ms using a c++ API This the my main program from where I try to ...
1
vote
0answers
81 views

Raspicam C++ library — captured image requires several grab()s to be properly bright

Note that I am referring to the C++ library, raspicam (http://www.uco.es/investiga/grupos/ava/node/40), not the raspberry pi camera in general. Unfortunately, I don't have the reputation to make a ...
0
votes
0answers
44 views

../nptl/sysdeps/unix/sysv/linux/raise.c error

I have been trying to understand and resolve some error I have been facing in my Raspberry PI 2, running (up-to-date) Raspbian, for a couple of days so far. The problem is, I have a code which can ...
1
vote
1answer
60 views

How to set a fixed Frequency and change duty cycle from 0 to 100 in Raspberry Pi hardware PWM? [duplicate]

I am trying to control a fan using Raspberry Pi. For that I tried to use the PWM pin in raspbery Pi. I am using Qt C++ to control the fan. I installed the wiring Pi and run the Wiring pi using command ...
1
vote
0answers
68 views

Multiple webcams - cannot open in openCV & corrupted image

I've connected four USB webcams via well powered USB hub to RasPi2. I want to use them in openCV. So I setup a simple program, where I opened the cameras using cvCaptureFromCAM, captured a cv::Mat and ...
0
votes
2answers
80 views

Is this possible to read internal CPU temp sensor directly from cpp code?

I am working on the kind of RPi platform to collect some external sensors data or control relays (using the remote tools like web or sms). Next problem I am tring to solve now is to get the direct ...
0
votes
3answers
87 views

Run code on raspberry pi without gui

I am developing an application based project and I am almost done with it. Now I need to covert that to a commercial level product. As it is application specific I want my code to run as soon as I ...
0
votes
1answer
38 views

Infinity cascade IO expand module [closed]

Has anybody used Infinity cascade IO expand module for Raspberry PI? Like the one described here http://www.bananapi.com/index.php/purchase/2-uncategorised/36-banana-pi-io-extend-board, but only red. ...
1
vote
0answers
29 views

Is it safe to read/write register values without Data Memory Barriers?

I'm trying to utilize the BCM2835's BSC/SPI slave peripheral to use the Pi as an effective I2C slave, however I've been running across some segmentation faults when I try to write to the configuration ...
1
vote
2answers
83 views

Not able to fetch register values using Mike M's BCM2835 C code

I'm attempting to utilize the bcm2835_peri_read(uint32_t*) function from Mike M's BCM2835 code, however console-output-debugging indicates I'm continually getting back my address. I'm using g++ on ...
1
vote
1answer
256 views

Process terminate with SIGILL using valgrind

I tried to use valgrind in order to debug some memory corruption, but when I run the program to debug using valgrind it ends reporting Illegal instruction. So I tried with this very simple code : ...
5
votes
1answer
508 views

How to debug without “Program received signal SIGILL” using the 3.18 kernel (3.12 works)?

I tried to debug a program with gdb in Raspbian, but all I get is: Program received signal SIGILL, Illegal instruction. 0xb6fe8acc in ?? () from /lib/ld-linux-armhf.so.3 It doesn't help to set the ...
0
votes
0answers
385 views

SunFounder Raspberry Pi CPU/RAM Display Mini LCD 84*48 PCD8544 Shield For Model B+/B

this display is driving me nuts! i almost tried all available samples/libraries. the only one i got working was this one https://github.com/ronanguilloux/Raspberry-Pi-Utils all the other ones ...
2
votes
1answer
453 views

RPi camera module with opencv [duplicate]

I am trying to use the raspberry pi camera module as the live video feed in my opencv code(c++). However, the pi camera module does not work the same as the USB camera. eg: for USB webcam: ...
4
votes
1answer
184 views

Raspberry Pi Camera - When is it ready for next frame

When using apis like the C++ or raspicam api, you poll the camera with a grab(), or similar, method. When a frame is ready, the method returns. Is there a way of checking if the camera is ready ...
1
vote
0answers
2k views

H264 IP camera stream by Raspberry Pi 2 with OpenCV and GStreamer: Gstreamer unable to start pipeline

I'm trying to get working OpenCV with GStreamer to get IP camera rtsp stream. But it is giving error which is (with opencv-master branch, Gstreamer 1.2.4, Raspbian 3.18.7-v7+: GStreamer Plugin: ...
0
votes
1answer
273 views

Raspberry Pi 2 and its FPU

I've been looking into switching a floating point heavy application from my B+ to a B 2. However, there are some things I don't quite understand about the 2: Is there a FPU for each core or is there ...
0
votes
0answers
146 views

Raspberry Pi for real-time ARtoolkit & Opencv based recognition?

I im supposed to develop a real-time interactive display unit with marker recognition & other CV stuff. I m considering Raspberry Pi for this purpose & I have few questions, it would be great ...
1
vote
1answer
546 views

PiGPIO Library Example for Bit-Banging a UART

The PiGPIO library http://abyz.co.uk/rpi/pigpio/index.html mentions that one of it's features is "software serial links using any user gpio". I take this to mean that you can use it to generate a ...
1
vote
1answer
426 views

How to compile OpenCV software on Raspberry?

I want compile an OpenCV program on Raspberry, the problem is that I didn't figure out how to do so. I installed OpenCV following this guide. $ pkg-config --modversion opencv 2.4.1 OpenCV can be ...
1
vote
0answers
125 views

Raspberry Pi + Qt4 + Opencv cross compile from windows

Hi I want to know how to use opencv in raspberry pi. I have cross compiled qt raspberry from windows and succeed but I cannot add library opencv. Thanks for any help
1
vote
1answer
371 views

programming raspberry pi with C/C++ simd instructions [closed]

Is it possible to use C/C++ SIMD instructions in a program and run it on a raspberry pi model b+ ? The raspberry pi has an arm processor, and there's a C/C++ SIMD instructions set for the ARM ...
1
vote
1answer
924 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
27 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 ...
2
votes
1answer
1k 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
93 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
372 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
564 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
2answers
2k 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
98 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
136 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
109 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
177 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 ...
-2
votes
2answers
122 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 ...
1
vote
0answers
459 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
132 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
2answers
963 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
434 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
180 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
430 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
281 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
759 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 ...
2
votes
2answers
2k 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
1answer
393 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
99 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
366 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 ...