Changes between Version 4 and Version 5 of mycroft_mark-2_gui_qt5.11
- Timestamp:
- 04/13/20 18:40:53 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mycroft_mark-2_gui_qt5.11
v4 v5 72 72 run it (showing additional debug output and adding the kde framwork build to the import path) 73 73 * QT_DEBUG_PLUGINS=1 QML_IMPORT_TRACE=1 QML2_IMPORT_PATH=/home/pi/kde/usr/lib/arm-linux-gnueabihf/qml /opt/Qt5.12/bin/qmlscene ~/ws_qt/kirigami/main.qml 74 === build kio === 75 The mycroft-gui also need KIO from the framework. Build it as above for kirigami. 76 * ./kdesrc-build kio 77 Some of the packages failed to build but they don't seem to be necessary. 74 78 75 79 === build the mycroft GUI === … … 82 86 * mkdir build-testing 83 87 * cd build-testing 84 * cmake .. -DCMAKE_PREFIX_PATH=/opt/Qt5.12/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON 85 -- stuck here because it needs KF5 and KF5I18n so I am going back to building this from the KDE sources. In previous tries I did install the system package kio-dev but I don't want to do that again as I don't want to mix versions --- 88 Thy mycroft-gui has some dependencies (WebView, Plasma) that I removed for now because I don't see where they are used but I will see. 89 Edit the CMakeLists.txt to remove them: 90 * nano ../CMakeLists.txt 91 {{{ 92 ... 93 find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS 94 Quick 95 Core 96 Qml 97 Network 98 WebSockets 99 # WebView 100 ) 101 ... 102 if(NOT CMAKE_SYSTEM_NAME STREQUAL "Android") 103 find_package(Qt5Widgets ${QT_MIN_VERSION} REQUIRED) 104 # find_package(KF5Plasma ${KF5_MIN_VERSION} REQUIRED) 105 find_package(KF5DBusAddons ${KF5_MIN_VERSION} REQUIRED) 106 find_package(KF5KIO ${KF5_MIN_VERSION} REQUIRED) # FIXME look for "KIOWidgets" (KRun) explicitly 107 endif() 108 ... 109 }}} 110 * nano ../application/main.cpp 111 {{{ 112 ... 113 #include <QDebug> 114 #include <QCursor> 115 // #include <QtWebView/QtWebView> 86 116 117 #ifdef Q_OS_ANDROID 118 ... 119 } 120 121 // QtWebView::initialize(); 122 123 QQuickView view; 124 view.setResizeMode(QQuickView::SizeRootObjectToView); 125 ... 126 }}} 127 * export CMAKE_PREFIX_PATH=/opt/Qt5.12:/home/pi/kde/usr 128 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON 129 * make -j4 130 * sudo make install 131 132 ==== build lottie ==== 133 134 135 === manually run the mycroft-gui === 136 * LD_LIBRARY_PATH=/opt/Qt5.12/lib:/home/pi/kde/usr/lib/arm-linux-gnueabihf QT_DEBUG_PLUGINS=1 QML_IMPORT_TRACE=1 QML2_IMPORT_PATH=/home/pi/kde/usr/lib/arm-linux-gnueabihf/qml /usr/bin/mycroft-gui-app 137