diff --git a/README.md b/README.md index 085694e..37180f6 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ ssh @ Az ~/rpi4 könytár lesz a kiindulási pont, létrehozás után legyen az az aktuális könyvtár. ``` mkdir -p ~/rpi4/build -mkdir -p ~/rpi4/qt5.15.2 +mkdir -p ~/rpi4/qt5.15.8 mkdir -p ~/rpi4/sysroot cd ~/rpi4 @@ -159,26 +159,26 @@ chmod +x sysroot-relativelinks.py Forráscsomag letöltése. ``` -wget https://download.qt.io/official_releases/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.tar.xz +wget https://download.qt.io/official_releases/qt/5.15/5.15.8/single/qt-everywhere-src-5.15.8.tar.xz ``` Kicsomagolás. ``` -tar xvf qt-everywhere-src-5.15.2.tar.xz +tar xvf qt-everywhere-src-5.15.8.tar.xz ``` 32 bites rendszer (gnueabihf) esetén az mkspecs könyvtárat a fordítóhoz kell igazítani. ``` -cp -R qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-arm-gnueabi-g++ qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-arm-gnueabihf-g++ -sed -i -e 's/arm-linux-gnueabi-/arm-linux-gnueabihf-/g' qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-arm-gnueabihf-g++/qmake.conf +cp -R qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-arm-gnueabi-g++ qt-everywhere-src-5.15.8/qtbase/mkspecs/linux-arm-gnueabihf-g++ +sed -i -e 's/arm-linux-gnueabi-/arm-linux-gnueabihf-/g' qt-everywhere-src-5.15.8/qtbase/mkspecs/linux-arm-gnueabihf-g++/qmake.conf ``` Indulhat a konfigurálás. ``` cd build -../qt-everywhere-src-5.15.2/configure -release -no-opengl -no-eglfs -linuxfb -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot ~/rpi4/sysroot -prefix /usr/local/qt5.15.2 -extprefix ~/rpi4/qt5.15.2 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtwebengine -skip qtlocation -skip qtlottie -skip qtsensors -make libs -pkg-config -no-use-gold-linker -v -recheck-all +../qt-everywhere-src-5.15.2/configure -release -no-opengl -no-eglfs -linuxfb -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot ~/rpi4/sysroot -prefix /usr/local/qt5.15.8 -extprefix ~/rpi4/qt5.15.8 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtwebengine -skip qtlocation -skip qtlottie -skip qtsensors -make libs -pkg-config -no-use-gold-linker -v -recheck-all ``` -A _**-device**_ opciót a céleszköznek megfelelően kell beállítani, az elérhető eszközök megtalálhatók a ~/rpi4/qt-everywhere-src-5.15.2/qtbase/mkspecs/devices könyvtárban, Raspberry Pi változatokhoz az alábbi táblázatban lévők valók: +A _**-device**_ opciót a céleszköznek megfelelően kell beállítani, az elérhető eszközök megtalálhatók a ~/rpi4/qt-everywhere-src-5.15.8/qtbase/mkspecs/devices könyvtárban, Raspberry Pi változatokhoz az alábbi táblázatban lévők valók: | Raspberry Pi modell | ARM architectúra verzió | -device opció | | ------------------- | -----------------------:| ---------------------- | | Raspberry Pi 4 | ARMv8 | linux-rasp-pi4-v3d-g++ | @@ -206,7 +206,7 @@ rm -rf * A lefordított keretrendszer installálható a Raspberry Pi-re. ``` cd ~/rpi4 -rsync -avz --rsync-path="sudo rsync" qt5.15.2 @:/usr/local +rsync -avz qt5.15.8 root@:/usr/local ``` ### Qt Creator beállítása