Changes between Version 7 and Version 8 of mycroft_mark-2_gui_qt5.11
- Timestamp:
- 04/15/20 20:28:53 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mycroft_mark-2_gui_qt5.11
v7 v8 13 13 #!/bin/bash 14 14 exec /usr/lib/distcc/bin/arm-linux-gnueabihf-g${0:$[-2]} "$@" 15 } 15 }}} 16 16 * sudo chmod a+x arm-linux-gnueabihf-wrapper 17 17 * sudo ln -s arm-linux-gnueabihf-wrapper c++ … … 60 60 return 0; 61 61 } 62 }}} 62 63 set distcc messages to verbose: 63 64 * export DISTCC_VERBOSE=1 64 65 make sure that you have /usr/lib/distcc/bin in the begining of the PATH (see above) 65 66 * gcc -c main.c -o main.o 66 you should see a lot of messages from distcc (look for something like 67 }}} 67 you should see a lot of messages from distcc (look for something like 68 {{{ 69 ... 70 distcc[4931] (dcc_r_file_timed) 1032 bytes received in 0.000620s, rate 1626kB/s 71 distcc[4931] 16823 bytes from main.c compiled on 192.168.14.70 in 0.8614s, rate 19kB/s 72 distcc[4931] (dcc_unlock) release lock fd4 73 ... 74 }}} 75 test that the file is for the correct target (that the translation of gcc to arm-linux-gnueabihf-gcc works) 76 * file main.o 77 {{{ 78 main.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped 79 }}} 80 link and run: 81 * gcc main.o -o main 82 * ./main 83 ==== monitoring distcc ==== 84 You can monitor the process of distcc with: 85 * distccmon-text 1 86 while the build is running in another terminal, ... 68 87 69 88 === Build QT 5.12 LTS for eglfs === … … 109 128 This results in the complete build in /opt/Qt5.12 110 129 130 === Build QT 5.12 LTS with qtwebengine === 131 If you have distcc working you can build (cross-compile) QT also with qtwebengine using: 132 {{{ 133 PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \ 134 ../qt-everywhere-src-5.12.7/configure -platform linux-rpi-g++ \ 135 -v \ 136 -opengl es2 -eglfs \ 137 -no-gtk \ 138 -opensource -confirm-license -release \ 139 -reduce-exports \ 140 -force-pkg-config \ 141 -nomake examples -no-compile-examples \ 142 -skip qtwayland \ 143 -no-feature-geoservices_mapboxgl \ 144 -qt-pcre \ 145 -no-pch \ 146 -ssl \ 147 -evdev \ 148 -system-freetype \ 149 -fontconfig \ 150 -glib \ 151 -prefix /opt/Qt5.12 \ 152 -qpa eglfs 153 }}} 154 in the process above. 155 111 156 === Building Kirigami === 112 157 This is based on a combination of the official KDE guide to build the KDE framework at [https://community.kde.org/Get_Involved/development#Set_up_kdesrc-build] and this comprehensive guide at [https://jbbgameich.github.io/misc/2019/05/25/kdesrc-build-custom-qt.html]