Questions tagged [raspberry-pi4]

PROGRAMMING QUESTIONS ONLY. Questions about general use should be asked on https://raspberrypi.stackexchange.com/

The Raspberry Pi 4B comes in three different models, the only difference being the amount of SDRAM (1GB, 2GB or 4GB).
The most notable spec improvements, compared to older models are:

  • 1.5GHz 64-bit quad-core Cortex-A72 ARM v8 CPU
  • 1GB, 2GB or 4GB LPDDR4-3200 SDRAM (depending on model)
  • Gigabit Ethernet
  • 2.4 / 5GHz 802.11ac Wireless LAN
  • Bluetooth 5.0 BLE
  • 2x USB 2.0, 2x USB 3.0
  • 2x micro HDMI ports (both support up to 4kp60)

Visit Raspberrypi-Stackexchange for general questions about the Raspberry Pi.
Also useful might be the original raspberry-pi tag info.

1309 questions
4
votes
0 answers

Error while installing canvas on Raspberry PI 4

I've tried installing node canvas multiple times on my Raspberry PI 4, and every time, no matter what permissions I give, no matter how many times I install node-pre-gyp, it will always result in this same error. > canvas@2.6.1 install…
4
votes
2 answers

How do I cross-compile LLVM/Clang for AArch64 on x64 host?

I want to use clang-11 on my AArch64 Raspberry Pi 4, running Ubuntu 20.04 Focal. I looked at https://apt.llvm.org/, but AArch64 prebuilt binaries do not seem available? I tried building clang on the Raspberry Pi directly, but it was very slow and I…
user7610
  • 25,267
  • 15
  • 124
  • 150
4
votes
3 answers

How to enable hardware support for H.264 encoding on raspberry Pi 4B

I am trying to enable the hardware support for H264 encoding on raspberry pi 4B model. Compiling FFmpeg source enabling the configurations sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi…
MSD Paul
  • 1,648
  • 3
  • 13
  • 31
4
votes
1 answer

MetalLB with Kubernetes, Can't connect to VIP or Port

Can't connect to Kubernetes Deployment (App) when using the MetalLB load balancer. Attempting to configure floating IP so when one node fails and the workload moves across, I still know what the IP is when on the new node with new…
Anton2079
  • 41
  • 3
4
votes
3 answers

Google Cloud Error: ERROR: INVALID_ARGUMENT: Request contains an invalid argument

I'm making a voice recognition program, but I can't seem to be able to send a request to the Cloud. Whenever I try: gcloud projects add-iam-policy-binding [PROJECT_ID] --member…
Rishy
  • 45
  • 1
  • 1
  • 7
3
votes
1 answer

Raspberry Pi Camera captures green-tinted images with .NET 7

I'm trying to capture images with a Raspberry Pi Camera V2.1 on a Raspberry Pi 4B using .NET 7. I've set up my code to capture an image with the following code: using Iot.Device.Media; VideoConnectionSettings settings = new…
Seszele
  • 31
  • 2
3
votes
1 answer

Open GL performance on the Raspberry PI 4B and another SBC

Good day! I got a project from a firm and now I need to develop an arcade cabinet with Raspberry Pi 3. It has a joystick and some external devices, which are controlled via GPIO. I have already organized the communication between the RPI 4B 8Gb and…
3
votes
0 answers

Cannot read button state from user space application

I have build custom image for Raspberry Pi 4 using Yocto. I connected microswitch to GPIO17 and I want to read its state in user space application. The event occures when I press switch, which I'm 100% sure because I patched gpio-keys driver adding…
grandzello
  • 43
  • 4
3
votes
2 answers

Linux PREEMPT_RT: SCHED_OTHER performs better than SCHED_FIFO. Why?

I'm experimenting with the realtime capabilities of the Raspberry Pi 3/4. I've written the following C++ program to test. // Compile with: // g++ realtime_task.cpp -o realtime_task -lrt && sudo setcap CAP_SYS_NICE+ep realtime_task #include…
Verax
  • 2,409
  • 5
  • 27
  • 42
3
votes
1 answer

PHP Compiler is using 32 bit Architecture on a Raspberry Pi 4 64 bit Kernel

The PHP-compiler on my Raspberry Pi 4 is only using 32 bits instead of 64 bits. I double-checked my kernel-architecture. Everything is configured to 64 bits... Do i need to add a additional configuration to compile 64 bit php-code? PHP test (on my…
xy8000
  • 31
  • 4
3
votes
4 answers

How can I resolve this issue: libm.so.6: version `GLIBC_2.29' not found, C/C++?

When I've tried to execute my C++ demo app on RPI CM4, app that was cross compiled on Ubuntu OS: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal This is my…
User
  • 67
  • 1
  • 1
  • 8
3
votes
1 answer

C linker Cross compiler error - undefined reference to `fcntl64@GLIBC_2.28'

I' ve tried to cross compile a simple C curl demo for RPI CM4. This is my C demo code: #include #include #include int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { …
User
  • 67
  • 1
  • 1
  • 8
3
votes
0 answers

chromium is unresponsive when loading from autostart (Raspian Bullseye)

I am launching chromium from the autostart and it will not load anything, not a localhost page or even an external page. The browser window does launch, but it just sits there with "Loading" in the tab title area. Eventually it pops up with the…
gcorwin
  • 31
  • 1
  • 4
3
votes
1 answer

docker buildx armv7 platform missing

I am trying to build a docker image for a raspberry pi 4 (linux/arm/v7). I am using Ubuntu WSL. I have been able to build the image for Ubuntu WSL with no issues. I am using docker buildx to build the image for raspberry pi4 (armv7). I created the…
Jorge
  • 1,353
  • 10
  • 25
3
votes
2 answers

ImportError: libportaudio.so.2: cannot open shared object file: No such file or directory in raspberry-pi4

My code: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("talk") audio_text = r.listen(source) print("time over") try: text = r.recognize_google(audio_text) …
1 2
3
86 87