Changes between Version 7 and Version 8 of mycroft_mark-2_gui_qt5.11


Ignore:
Timestamp:
04/15/20 20:28:53 (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mycroft_mark-2_gui_qt5.11

    v7 v8  
    1313#!/bin/bash
    1414exec /usr/lib/distcc/bin/arm-linux-gnueabihf-g${0:$[-2]} "$@"
    15 }
     15}}}
    1616* sudo chmod a+x arm-linux-gnueabihf-wrapper
    1717* sudo ln -s arm-linux-gnueabihf-wrapper c++
     
    6060    return 0;
    6161}
     62}}}
    6263set distcc messages to verbose:
    6364* export DISTCC_VERBOSE=1
    6465make sure that you have /usr/lib/distcc/bin in the begining of the PATH (see above)
    6566* gcc -c main.c -o main.o
    66 you should see a lot of messages from distcc (look for something like
    67 }}}
     67you should see a lot of messages from distcc (look for something like
     68{{{
     69...
     70distcc[4931] (dcc_r_file_timed) 1032 bytes received in 0.000620s, rate 1626kB/s
     71distcc[4931] 16823 bytes from main.c compiled on 192.168.14.70 in 0.8614s, rate 19kB/s
     72distcc[4931] (dcc_unlock) release lock fd4
     73...
     74}}}
     75test that the file is for the correct target (that the translation of gcc to arm-linux-gnueabihf-gcc works)
     76* file main.o
     77{{{
     78main.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped
     79}}}
     80link and run:
     81* gcc main.o -o main
     82* ./main
     83==== monitoring distcc ====
     84You can monitor the process of distcc with:
     85* distccmon-text 1
     86while the build is running in another terminal, ...
    6887
    6988=== Build QT 5.12 LTS for eglfs ===
     
    109128This results in the complete build in /opt/Qt5.12
    110129
     130=== Build QT 5.12 LTS with qtwebengine ===
     131If you have distcc working you can build (cross-compile) QT also with qtwebengine using:
     132{{{
     133PKG_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}}}
     154in the process above.
     155
    111156=== Building Kirigami ===
    112157This 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]