'README.md' módosítása
This commit is contained in:
@@ -50,7 +50,7 @@ apt-get dist-upgrade
|
||||
### Szükséges csomagok telepítése
|
||||
```
|
||||
apt-get install qtcreator qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
|
||||
//apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
|
||||
apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
|
||||
apt-get install gcc git bison python gperf pkg-config gdb-multiarch build-essential
|
||||
```
|
||||
|
||||
@@ -109,7 +109,7 @@ mkdir -p ~/rpi/sysroot
|
||||
|
||||
cd ~/rpi
|
||||
```
|
||||
**sysroot átmesolása a Raspberry Pi-ről**
|
||||
**sysroot átmásolása a Raspberry Pi-ről**
|
||||
|
||||
A hoszton ehhez szükséges az rsync, ha nincs, installálni kell.
|
||||
```
|
||||
@@ -124,10 +124,11 @@ rsync -avz --rsync-path="sudo rsync" --delete <FELHASZNÁLÓNÉV>@<IP-CÍM>:/usr
|
||||
rsync -avz --rsync-path="sudo rsync" --delete <FELHASZNÁLÓNÉV>@<IP-CÍM>:/opt/vc sysroot/opt
|
||||
```
|
||||
|
||||
Az átmásolt könyvtárak tele vannak abszolút szimbolikus linkekkel, ezeket át kell konvertálni relatív linkekké, ehhez a symlink program szükséges
|
||||
Az átmásolt könyvtárak tele vannak abszolút szimbolikus linkekkel, ezeket át kell konvertálni relatív linkekké, ehhez a egy kis python szkript szükséges
|
||||
```
|
||||
apt-get install symlink
|
||||
symlink -rc sysroot
|
||||
wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py
|
||||
chmod +x sysroot-relativelinks.py
|
||||
./sysroot-relativelinks.py sysroot
|
||||
```
|
||||
|
||||
### Qt fordítása
|
||||
@@ -151,7 +152,7 @@ sed -i -e 's/arm-linux-gnueabi-/arm-linux-gnueabihf-/g' qt-everywhere-src-5.15.2
|
||||
Indulhat a konfigurálás
|
||||
```
|
||||
cd build
|
||||
../qt-everywhere-src-5.15.2/configure -release -no-opengl -linuxfb -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot ~/rpi/sysroot -prefix /usr/local/qt5.15.2 -extprefix ~/rpi/qt5.15.2 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtwebengine -nomake tests -make libs -pkg-config -no-use-gold-linker -v -recheck
|
||||
../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 ~/rpi/sysroot -prefix /usr/local/qt5.15.2 -extprefix ~/rpi/qt5.15.2 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtwebengine -nomake tests -make libs -pkg-config -no-use-gold-linker -v -recheck
|
||||
```
|
||||
|
||||
### Qt Creator beállítása
|
||||
|
||||
Reference in New Issue
Block a user