Qt+QML application on remote machine
-
Hi,
On my working station with windows 10 I have qt creator. On this machine I would like to write app Qt+QML which one will be running on remote machine with Debian system. It is possible indicate the remote machine in qt creator and write and run app on them from workstation ?
I would be really grateful for any tips or tutorials which one explain how do this.
Regards
-
So I prepared remote fresh computer with Debian OS in network 192.168.1.17, enabled SSH on port 22222.
So In my local machine in qt creator I try connect by SSH and looks like the connection is established but lack of some packages on my remote machine.
What I should install on my remote machine to achive my functionality ?Whats more, when I choosen KIT created by me:
RemoteLinux
and I tried run my app, the files are send to remote machine but with.exe
app.19:20:56: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited normally. 19:20:56: Trying to kill "ModbusExample/bin/ModbusExample.exe" on remote device... 19:21:04: Remote application killed. 19:21:04: Deploy step finished. 19:21:04: 1 file(s) need to be uploaded. 19:21:10: sftp> -mkdir '' sftp> -mkdir . sftp> -mkdir .. sftp> -mkdir ModbusExample sftp> -mkdir ModbusExample/bin sftp> put C:/Users/LENOVO/Documents/qt_proj/modbus_example/build-ModbusExample-RemoteLinuxT1in-Debug/debug/ModbusExample.exe ModbusExample/bin/ModbusExample.exe 19:21:20: All files successfully deployed. 19:21:20: Deploy step finished. 19:21:20: Elapsed time: 00:34.
What should have to change in my local machine to generate project to Linux Debian ?
-
Hi,
The first thing you need is a cross-compiled Qt. You are building an executable that can only run on Windows.
-
Hi,
The first thing you need is a cross-compiled Qt. You are building an executable that can only run on Windows.
@SGaist
how to do it? -
The technique is similar to the one for RPi.
Something you can try is QtCrossTool. Note that I have not used it.
-
The technique is similar to the one for RPi.
Something you can try is QtCrossTool. Note that I have not used it.
@SGaist
I took a shortcut and use two Debians. from my develop Debian I connect to remote Debian by SSH. the executable file is send to remote Debian but smoething is wrong.
When I run my app on remote linux I get respond:11:05:13: Starting ModbusExample/bin/ModbusExample ... qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. 11:05:13: Remote process crashed.
-
Are you forwarding your X server connection ?
-
@SGaist said in Qt+QML application on remote machine:
Are you forwarding your X server connection ?
I don't know what we're talking about ? Can you exaplain me ?
My Kits to remote linux device is cofigured like below:
Maybe problem is in
Build device
? -
What are the device settings ?
By the way, are you using Xorg or Wayland on your target machine ? -
@SGaist I do not know. I only know that remote machine is with
Debian 11
OS withXfce
desktop environment -
Then, if you don't already have, create a ssh configuration file that sets the parameters connection for your remote machine. Test it by connecting from your terminal and start a GUI app like the one you are developing. Once you have that working, retry with Qt Creator.