라즈베리파이에서는 pip로 PyQt가 설치가 안됨. 아래와 같이 리눅스 명령어로 설치해줘야함.
sudo apt-get install -y python3-pyqt5
sudo apt-get install -y qttools5-dev-tools
sudo apt-get install -y libqt5multimedia5-plugins
sudo apt-get install -y python3-pyqtgraph
sudo apt-get install -y python3-pyqt5.qtmultimedia
sudo apt-get install -y python3-pyqt5.qtsql
sudo apt-get install -y qt5-default
sudo apt-get install -y qtcreator
http://mercury.pr.erau.edu/~siewerts/cs415/documents/qt-install-r-pi.txt
Installing Qt on R-Pi
---------------------
(adapted from https://raspberrypi.stackexchange.com/questions/61078/qt-applications-dont-work-due-to-libegl)
To install Qt on a raspberry pi, and develop GUIs on the rpi, the following are the steps that you want to follow:
1. Update your raspberry pi - Code: Select all
sudo apt-get update
2. Upgrade your raspberry pi - Code: Select all
sudo apt-get upgrade
3. Install Qt - (I have used Qt5) - Code: Select all
sudo apt-get install qt5-default
4. Install Qt creator - Code: Select all
sudo apt-get install qtcreator
5. Open Qtcreator and go to Help > about plugins and and untick Remote Linux
6. Restart your raspberry pi
7. Again open Qt creator, go to "Tools > Options > Build and Run" and go to Compilers. Add "GCC" set compiler path as /usr/bin/gcc
8. Normally Qt version and Debugger will be automatically set, but you can also set them
9. Then go to Kits (Still inside the Build and Run) and check whether Compiler, Debugger and Qt version are set
10. That's it , click Ok and create a new project
Installing Docs & Examples
--------------------------
1) sudo apt-get install qt5-doc
2) sudo apt-get install qt5-doc-html
3) sudo apt-get install qtbase5-doc-html
4) sudo apt-get install qtbase5-examples
Errors:
-------
libEGL warning: DRI2: failed to authenticate
https://raspberrypi.stackexchange.com/questions/61078/qt-applications-dont-work-due-to-libegl
'엣지컴퓨팅 > 라즈베리파이' 카테고리의 다른 글
Tensorflow Lite 설치 (feat. Raspberry Pi) (0) | 2022.07.19 |
---|---|
[에러해결] libEGL warning: DRI2: failed to authenticate (0) | 2022.07.12 |
라즈봇 센서/모터 GPIO Mapping (0) | 2022.07.06 |
GPIO 와 사용 방법 (0) | 2022.06.24 |
라즈베리파이에 텐서플로우 및 OpenCV 설치 (0) | 2022.06.21 |