parent
19f2ca2fb6
commit
e458fd8954
@ -1,55 +0,0 @@
|
||||
#### Build Qt5.12.10 for RPI3 X11 and EGLFS
|
||||
1. Get the source code from:
|
||||
https://download.qt.io/official_releases/qt/5.12/5.12.10/
|
||||
|
||||
2. Uncomment developement source (deb-src) in
|
||||
```
|
||||
sudo nano /etc/apt/sources.list
|
||||
```
|
||||
3. Install these packages on the rpi
|
||||
```
|
||||
sudo apt-get build-dep qt4-x11
|
||||
sudo apt-get build-dep libqt5gui5
|
||||
sudo apt-get install libudev-dev libinput-dev libts-dev libxcb-xinerama0-dev libxcb-xinerama0\
|
||||
|
||||
sudo apt-get build-dep qt5-default
|
||||
sudo apt-get install libiconv-hook-dev libinput-dev libts-dev bluez libbluetooth-dev libgstreamer1.0-dev libegl1-mesa
|
||||
sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libatspi2.0-dev libdbus-1-dev
|
||||
```
|
||||
4. [on RPi] For bluetooth support install
|
||||
```
|
||||
Apt install libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools
|
||||
```
|
||||
5. [on RPi] For Gstreamer1.0 support
|
||||
```
|
||||
sudo apt-get install gstreamer1.0-omx libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
|
||||
```
|
||||
6. [on RPi] Prepare our target directory
|
||||
```
|
||||
sudo mkdir /usr/local/qt5pi
|
||||
sudo chown pi:pi /usr/local/qt5pi
|
||||
```
|
||||
7. [on Host] Create a sysroot. Using rsync we can properly keep things synchronized in the future as well. Replace raspberrypi.local with the address of the Pi.
|
||||
```
|
||||
mkdir sysroot sysroot/usr sysroot/opt
|
||||
rsync -avz pi@raspberrypi.local:/lib sysroot
|
||||
rsync -avz pi@raspberrypi.local:/usr/include sysroot/usr
|
||||
rsync -avz pi@raspberrypi.local:/usr/lib sysroot/usr
|
||||
rsync -avz pi@raspberrypi.local:/opt/vc sysroot/opt
|
||||
```
|
||||
8. [on Host]build configuration:
|
||||
```
|
||||
../configure -release -no-eglfs -qt-xcb -xcb -nomake tests -nomake examples -skip wayland -skip qtscript -skip qtwebengine \
|
||||
-device linux-rasp-pi3-g++ \
|
||||
-device-option CROSS_COMPILE=/media/mehran/extra3/Qt5Pi3X11/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- \
|
||||
-sysroot /media/mehran/extra3/Qt5Pi3X11/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi \
|
||||
-extprefix /media/mehran/extra3/Qt5Pi3X11/raspi/qt5pi -hostprefix /media/mehran/extra3/Qt5Pi3X11/raspi/qt5 -v -no-use-gold-linker
|
||||
|
||||
```
|
||||
9. [on RPI] Fix Could not initialize egl display for EGLFS
|
||||
```
|
||||
cd /opt/vc/lib
|
||||
sudo ln -s libbrcmEGL.so libEGL.so.1
|
||||
sudo ln -s libbrcmGLESv2.so libGLESv2.so.2
|
||||
export LD_LIBRARY_PATH=/opt/vc/lib
|
||||
```
|
Loading…
Reference in new issue