Questions tagged [c++]

For questions pertaining to compiling c++ programs on the Raspberry Pi.

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.

262 questions
16
votes
2 answers

Raspberry as an I2C SLAVE

Does anyone know how to setup a Raspberry Pi 3 as an I2C slave (in C++)? Before someone answers saying that it's not possible, it is possible. Here is a link that says it is possible (pigpio documentation) This is the code I'm trying to use (from…
Sebastião
  • 163
  • 1
  • 1
  • 8
11
votes
3 answers

How to install GNU C++ Development Tools on Raspberry Pi (using apt-get)

Is there a well-known package I should install for C++ Development Tools? What do I type at the command-line after sudo apt-get install? Ideally, I want the same tools that were installed with "MinGW" on my Windows computer.
imulsion
  • 771
  • 4
  • 10
  • 19
11
votes
1 answer

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 SIGILL handle to nostop (handle SIGILL…
someonr
  • 253
  • 1
  • 2
  • 9
11
votes
2 answers

PiGPIO Library Example for Bit-Banging a UART

The PiGPIO library http://abyz.me.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 software UART on any 2 free GPIO pins. In the…
PhilBot
  • 71
  • 3
  • 7
  • 25
8
votes
4 answers

Installing Raspberry Pi Cross-Compiler

I am attempting to get cross-compiling for Raspberry Pi working on my Ubuntu machine. During my initial attempts I was using the arm-linux-gnueabi compiler, which is available in the Ubuntu repo. I got this working. I was able to build all my…
Liam Giannini
  • 659
  • 2
  • 10
  • 21
8
votes
1 answer

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 without grabbing the frame? This can be a command line…
user2290362
  • 323
  • 3
  • 11
7
votes
1 answer

libstdc++ Error: `GLIBCXX_3.4.22' not found

I was trying to cross-compile dlib for Raspberry Pi, using the arm-linux-gnueabihf compiler. After successful runs of cmake and make -j4, I ran python setup.py bdist_wheel --repackage, which created the nencessary .so files which I later copied to…
code
  • 211
  • 1
  • 2
  • 4
6
votes
0 answers

Raspberry as I2C Slave, how to slow down transfer rate?

I have had minor success using the PIGPIO library and interfacing the Pi as an I2C Slave (Using GPIO Pins 18 and 19 as SDA and SCL) with a Campbell CR1000X Datalogger I am encountering a problem receiving messages after I slow down the scan rate…
6
votes
2 answers

Can I run TensorFlow on the Raspberry Pi?

I wan't to know if TensorFlow (http://tensorflow.org/) can be used on the Raspberry Pi both the Python API and the C++?
6
votes
1 answer

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 "raspicam" tag. It seems that camera images grabbed…
grayhound4
  • 61
  • 1
  • 1
  • 3
5
votes
1 answer

Running Modern Opengl on raspberry pi

Is there any way to "enable" modern OpenGL on the Raspberry Pi (specifically the Raspberry Pi3)? I would like to use C++ instead of Python, since I'm a lot more familiar with it. I know there is a way of creating graphics using pyOpenGL and pyGame,…
user76098
5
votes
4 answers

How to enable SPI1 and SPI0 at the same time?

I have installed a LCD screen that use my SPI0 bus and I2C but i want to connect my RFID reader to the same raspberry. My lcd screen can you see here: https://www.adafruit.com/product/1601 SPI1 will not be enabled with SPI0, i have searched for…
SmileDeveloper
  • 161
  • 1
  • 1
  • 5
5
votes
1 answer

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 in ARM? Does sudo apt-get install (e.g.…
Xegara
  • 255
  • 3
  • 8
4
votes
3 answers

Raspberry Pi 3 and V4L2 C++ Capture Code for JPEGs

I have a Raspberry Pi 3 with the latest Raspbian Stretch, and the Sony 8MB official camera. I can save a good looking JPEG with the following commands: v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3 v4l2-ctl --stream-mmap=3…
PhilBot
  • 71
  • 3
  • 7
  • 25
4
votes
1 answer

Stream video from Pi to an OpenCV application on a local remote computer

I am working on a project which requires real time processing of frames in a video. I have Pi setup with a Picamera. What I want is to stream video directly to an OpenCV application which is located on a computer in a local network. How can I go…
Abdi
  • 41
  • 2
1
2 3
17 18