Category : raspberry-pi

I’ve been stuck on this problem for weeks. I’m trying to build opencv on a raspberry pi 4 with x264 support. To do this I need to include ffmpeg, and also build that from source. However when compiling opencv, I’m consistently getting these linker errors: /usr/bin/ld: ../../lib/libopencv_videoio.so.4.5.3: undefined reference to `avcodec_get_context_defaults3′ /usr/bin/ld: ../../lib/libopencv_videoio.so.4.5.3: undefined reference ..

Read more

I’ve created an QMessageBox with customized buttons and they are showing up in gray as the image bellow: Running on Linux is fine! But on Raspberry it gives me in trouble. The snippet of code that I wrote is the following: #include "alertmessage.h" #include <QDebug> #include <QAbstractButton> #include <QCoreApplication> AlertMessage::AlertMessage(QMessageBox *parent): QMessageBox(parent) { this->setFont(QFont("Roboto")); QFont ..

Read more

I’m writing a C++ program for a Raspberry PI 3B+ doing cross compilation using conan.io Docker container conanio/gcc7-armv7 for cross compilation. Everything was working fine until I started printing double values, and getting "nan" or wrong values in the output. I simplified my code to this minimal example that shows the problem: #include <cstdio> #include ..

Read more