QtQuickVcp QML Live Coding with MachinekitClient on remote client ?

59 views
Skip to first unread message

Michael Brown

unread,
May 31, 2019, 2:11:59 PM5/31/19
to Machinekit
I'm wondering if there is a way to use the machinekitclient live coding feature with a DExx mksocfpga setup, ie:
running machinekit on the soc and MK-Client on a pc ?

I have so far looked at:

Without finding other out than it works fine if you run the gui on your local computer.

My usual workflow (for customizing Cetus) is to edit the files on the remote client (via ftp), and then
save --> restart machinekit client (then wait 15 secs for it to load again if errorfree).
I'm hoping to find a way to get rid of that 12-15 sec lag between edits.

Running machinekit on my PC is not a good option as the hal will be connected to mesa cores running on the socfpga (a custom dbspi component).

Best wishes Michael B.

Michael Brown

unread,
May 31, 2019, 3:26:06 PM5/31/19
to Machinekit
OK a little bit progress:
tring to replikate the anddemo live editing demo:
I mounted the soc in a folder on my local pc via: 

   curlftpfs -o allow_other machinekit:machi...@mksocfpga-nano-soc.holotronic.lan /tmp/my_ftp/

then started machinekit client up in a terminal started live editing (from local ui) pressed open,
navigated to the ftp folder and opend the anddemo.qml file:

    mib@kdeneon-ws:~/Developer/the-snowwhite_git/machinekit-docs$ /home/mib/bin/MachinekitClient_Development-201904191256-master-ab3a606-x64.appimage
    qml: Starting to load the main application.
    qrc:///main.qml:51:5: QML ConnectionWindow: Binding loop detected for property "state"
    qml: Main application loaded.
    qml: Finishing the splash screen progress bar.
    qml: Hiding the splash screen.
    qml: Deleting the splash screen.
    qml: app source changed: qrc:///MachinekitClient.LiveCoding/LiveCoding.qml active: true

Every thing fine so far.
Then I pressed edit (nothing happens in the gui)
Following messages play out in the mk-client konsole:
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by kde-open5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5I18n.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5JobWidgets.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5Service.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5Completion.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5IconThemes.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5ConfigWidgets.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5WindowSystem.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5ConfigGui.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5ConfigCore.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5Crash.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5DBusAddons.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5AuthCore.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libQt5X11Extras.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5Archive.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5ItemViews.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5Codecs.so.5)
kde-open5: /tmp/.mount_arDwp7/lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /usr/lib/x86_64-linux-gnu/libKF5GuiAddons.so.5)

Since the Soc is running Debian Stretch I suspect this is a qt version mismach between mk-client and the Debian stretch on the soc:

the  /tmp/.mount_arDwp7/   folder is where the MK-Client appimage is mounted.

Michael Brown

unread,
May 31, 2019, 4:33:35 PM5/31/19
to Machinekit
OK
The problem with the edit button not working stems from the appimage being mounted as root.
this makes the /tmp/.mount_arDwp7/lib/libQt5Core.so.5 file inacessable.

running the appimage with sudo makes the edit button open/show the qml file in the/a konsole window in some sort of editor without any editor selection dialog...hmmmm 


On Friday, 31 May 2019 21:26:06 UTC+2, Michael Brown wrote:
OK a little bit progress:
tring to replikate the anddemo live editing demo:
I mounted the soc in a folder on my local pc via: 

   curlftpfs -o allow_other machinekit:machinekit@mksocfpga-nano-soc.holotronic.lan /tmp/my_ftp/

Michael Brown

unread,
May 31, 2019, 5:47:38 PM5/31/19
to Machinekit
Seems like the issue is that I'm running kdeneon which now has qt5.12 as default.
So now I'm manually downloading and extracting the bionic versioned libs from the errormessage
and copying them into the lib folder on the extracted appimage error messages are now in declining,
... takes time ...

Michael Brown

unread,
May 31, 2019, 8:52:27 PM5/31/19
to Machinekit
OK success... this thread should have been titled:

Running MachinekitClient live edit on KDENeon 18.04

Last step in the file marathon was to download the boinic kde-cli-tools_5.12.4-0ubuntu1_amd64.deb
extract and copy the kde-open5 (from  /usr/bin) to somewhere in my path before the default installed kde-open5.

Then mounting the remote soc as a NFS mount (curlftpfs very slow and consistant write permission problems with qtcreator)

:-)
Reply all
Reply to author
Forward
0 new messages