Hot answers tagged

27 votes
Accepted

Turning 'tvservice' on and off leaves screen blank

tvservice is not the best to turn off and on the screen. Much better way to do this (found after a day of searching) is using vcgencmd command (more on this here). vcgencmd display_power 0 turns off ...
user avatar
  • 673
13 votes
Accepted

PyQt5 on a Raspberry Pi

OK... I managed to get this to work. This is what I did. QT Core needs to be installed with sudo apt-get install qt5-default You'll need to copy over sip and PyQt5 to your Raspberry Pi (I used SFTP)...
user avatar
11 votes

PyQt5 on a Raspberry Pi

In Raspbian Stretch Lite the following worked for me: sudo apt-get update sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools
user avatar
  • 111
10 votes
Accepted

Qt applications don't work due to libEGL

It's a usual linux and Unix problem, nothing Pi-related. Here is the problem: your libs need to be symlinked. Do sudo -s and become a root for such an operation. And let's troubleshoot it! First, ...
user avatar
5 votes

Installing Qt on Raspberry Pi 3

Here is a working way to install Qt5. For Qt5 there is no need for dev-tools. So this command is not relevant: sudo apt-get install qt4-dev-tools The two commands needed to install Qt5 fully are: ...
user avatar
  • 51
5 votes
Accepted

ImportError: No module named 'PyQt5'

Generally a good idea is to do a search on the Pi. apt-cache search pyqt5 Perhaps the command you need is sudo apt-get install python3-pyqt5 I suggest you always preferentially use apt-get rather ...
user avatar
  • 66.5k
4 votes
Accepted

QtPy5 on Raspbian, getting ImportError: cannot import name QtCore

You did a couple things wrong. First off, running sudo pip install python-qt5 made Python2.7's pip download. You can in future avoid this with py -3 -m pip install python-qt5. py is a very useful tool ...
user avatar
3 votes

PyQt5 on a Raspberry Pi

I can't leave a comment, not enough reputation, but thought I should mention this in case it helps anyone using VirtualEnv: In my case (Raspbian on a Raspberry Pi 3, Python 3 in a virtual environment)...
user avatar
  • 131
3 votes

PyQt5 on a Raspberry Pi

I developed a similar application using PyQt4 and Qt4-designer. You have to install pyqt4 all modules: sudo apt-get install qt4-default qt4-designer qt4-doc qt4-dev-tools python-qt4 So in your case ...
user avatar
3 votes
Accepted

Install PyQt4 for Python 3.4

Python 3.4.2 is the Python3 version used in jessie. If you are using wheezy I suggest you upgrade to jessie. If you are using something else you should include that information in your question.
user avatar
  • 66.5k
3 votes

Run Qt Application on Startup

I guess you are using Raspbian Stretch. This comes with systemd so you should start your qt project as service. First create a new service: rpi3 ~$ sudo systemctl edit --force --full my_qt_project....
user avatar
  • 39.6k
2 votes

Qt for Raspberry 2

Anything compiled for ARMv6 should work on the RPi2. Raspbian is still based on ARMv6 and the tool chain I use to remotely develop for the Pi 2 is the one I use for earlier Pi models.
user avatar
  • 66.5k
2 votes

qt5 adafruit touch screen on raspberry pi moves pointer too fast

Your natively compiled app is running on EGL instead of X (QT_QPA_EGLFS_PHYSICAL_WIDTH is used by EGLFS, a qt plugin for EGL). When you run a QT app in X, X passes input events to your app. On EGL qt ...
user avatar
  • 131
2 votes

Failed to cross compile Qt 5.6 on RPi 2 (fatal error: bcm_host.h: No such file or directory)

The error clearly states that the problem is that the compiler is missing bcm_host.h. You should be able to fix this by installing libraspberrypi-dev. The command below should fix it. sudo apt-get ...
user avatar
  • 11.7k
2 votes

Is it possible to install Qt5 on Ubuntu MATE or Raspbian with Raspberry pi 2?

Raspbian jessie appears to have qt5 in the repository. If you're still on Wheezy, you can upgrade it through this tutorial. $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="...
user avatar
  • 66.5k
2 votes

Which toolchain for Raspberry Pi 3 and Qt5

I'm going through the same thing. You need to use the 4.9.2 compiler: Look under arm-bcm2708 for the arm-rpi-4.9.3-linux-gnueabihf folder. I still haven't been able to cross-compile QT for Pi3, but ...
user avatar
  • 21
2 votes

Qt applications don't work due to libEGL

In my case this fixed the issue sudo ln -s /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 /usr/lib/arm-linux-gnueabihf/libGLESv2.so
user avatar
  • 21
2 votes
Accepted

Installing Qt on Raspberry Pi 3

Not particularly sure why you are trying to install that package, the App Note for installing Qt Creator on Raspberry Pi says to install sudo apt-get install qt4-dev-tools and sudo apt-get install ...
user avatar
  • 321
2 votes
Accepted

How to get qt4 runtime libraries

sudo apt-get install libqtgui4 worked for me. HTH
user avatar
2 votes
Accepted

Qt Application crashing on Raspberry Pi 3 with Adafruit 2.8" PiTfT touchscreen

I found a way to avoid the crash: Compiling Qt with libinput support and using libinput instead of evdev.
user avatar
  • 133
2 votes

Access RPi's camera stream in OpenCV C++ (Qt)

I found the answer here. Turns out the best scenario was available. OpenCV has a method for acquiring mjpeg streams. Perfect! Here is the same code, adapted to my setup: #include <stdio.h> #...
user avatar
  • 141
2 votes

How do I build Qt's mysql-plugin on Raspbian Buster

I found a solution although this is not the straightforward way to compile all at once. First I compiled and installed Qt 5.12.4 without the MySQL driver plugin as described in the tutorial ...
user avatar
  • 43
2 votes

installing qt on raspberry pi 4

I update Raspbian Buster and the problem was solved. From the original Author.
user avatar
  • 2,451
2 votes

Updating text file with sensor datas from three different threads

Maybe a Queue could work for you? Link. Queues are FirstInFirstOut so you could have your threads putting stuff in it and then have, I don't know, a fourth thread that will be grabbing stuff from the ...
user avatar
2 votes
Accepted

autostart application on raspberry pi 4 (systemd)

You created a configuration which is impossible to resolve: application_one.service must start after graphical.target (G before A) graphical.target requires multi-user.target (M before G) multi-user....
user avatar
1 vote

PyQt5 on a Raspberry Pi

You can try steps mentioned below. It will take some time to make and make install. Please be patient. sudo apt-get install qt5-default wget https://www.riverbankcomputing.com/static/Downloads/sip/4....
user avatar
  • 11
1 vote

QT segmentation fault when using BCM2835 for SPI

I had the same problem and I discovered that was my fault, I mean you have to check the return value of a function and manage it in case of error. In this case the function bcm2835_spi_begin(); ...
user avatar
  • 111
1 vote

Run Qt Application on Raspberry Pi 3

You have two* different options when launching a QT program on RasPi, you can either run it on the EGLFS (Extended Graphics Library Full Screen) platform which is the default platform your program ...
user avatar
  • 321
1 vote

wiringPiSetup: Must be root (Did you forget sudo ?)

Add this to your code before calling wiringPiSetup(): setenv("WIRINGPI_GPIOMEM", "1", 1);
user avatar
  • 41
1 vote

wiringPiSetup: Must be root (Did you forget sudo ?)

If you are using netbeans use the below steps. Open the properties of your project Select "Run" Select "Manage Platforms..." Select the Remote Java SE platform you created In the "Platform Properties"...
user avatar
  • 838

Only top scored, non community-wiki answers of a minimum length are eligible