1

Topic: Application QML the target computer is opened

Good afternoon all!
Wrote the program in QT Creator with usage QML.
By the machine where costs QT Creator all works, and on another does not work.
For the target machine created in the directory of application a file qt.conf:
[Paths]
Prefix =./
Libraries=lib
Plugins=plugins
Qml2Imports=qml
Threw off in a folder lib and plugin all that is necessary, in a folder qml copied folders
QtQml;
QtQuick;
QtQuick.2
From the directory qml installed QT Creatora.
At start any errors does not produce, but thus and the window does not open.
It is clear, what are necessary still any  libraries qml, but what?!
In Google found nothing.
In advance thanks!

2

Re: Application QML the target computer is opened

Jack;

ldd your_application_name

3

Re: Application QML the target computer is opened

linux-vdso.so.1 (0x00007ffe88372000)
libQt5Quick.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Quick.so.5 (0x00007f0ad4496000)
libQt5Widgets.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Widgets.so.5 (0x00007f0ad3c61000)
libQt5Gui.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Gui.so.5 (0x00007f0ad34b1000)
libQt5Qml.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Qml.so.5 (0x00007f0ad2eb2000)
libQt5Network.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Network.so.5 (0x00007f0ad2b1e000)
libQt5Sql.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Sql.so.5 (0x00007f0ad28d7000)
libQt5Core.so.5 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libQt5Core.so.5 (0x00007f0ad2197000)
libGL.so.1 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libGL.so.1 (0x00007f0ad1f4b000)
libpthread.so.0 =>/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0ad1d2e000)
libstdc ++. so.6 =>/usr/lib/x86_64-linux-gnu/libstdc ++. so.6 (0x00007f0ad1a23000)
libm.so.6 =>/lib/x86_64-linux-gnu/libm.so.6 (0x00007f0ad1722000)
libgcc_s.so.1 =>/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0ad150c000)
libc.so.6 =>/lib/x86_64-linux-gnu/libc.so.6 (0x00007f0ad1161000)
libz.so.1 =>/lib/x86_64-linux-gnu/libz.so.1 (0x00007f0ad0f46000)
librt.so.1 =>/lib/x86_64-linux-gnu/librt.so.1 (0x00007f0ad0d3e000)
libicui18n.so.56 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libicui18n.so.56 (0x00007f0ad08a5000)
libicuuc.so.56 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libicuuc.so.56 (0x00007f0ad04ed000)
libicudata.so.56 => /home/user/projects/c++/qt/build-diningquickedit-Desktop_Qt_5_9_3_GCC_64bit-Release/./lib/libicudata.so.56 (0x00007f0aceb0a000)
libdl.so.2 =>/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0ace906000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f0ace704000)
libglib-2.0.so.0 =>/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f0ace3f5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0ad4acf000)
VBoxOGLcrutil.so => /usr/lib/x86_64-linux-gnu/VBoxOGLcrutil.so (0x00007f0ace206000)
libXcomposite.so.1 => /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f0ace003000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f0acde00000)
libXfixes.so.3 =>/usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f0acdbfa000)
libXext.so.6 =>/usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f0acd9e8000)
libpcre.so.3 =>/lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0acd77a000)
libX11.so.6 =>/usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0acd437000)
libxcb.so.1 =>/usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0acd215000)
libXau.so.6 =>/usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f0acd011000)
libXdmcp.so.6 =>/usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0acce0c000)

4

Re: Application QML the target computer is opened

Jack;
Looks fine on the system level. It may be the same bug

5

Re: Application QML the target computer is opened

Delivered in the code debug points - it was clarified that here this line:
engine.load (QUrl (QStringLiteral ("qrc:/main.qml")));
The program cannot transit.
Not  resources at the assembly that-whether?

6

Re: Application QML the target computer is opened

OoCc wrote:

Jack;

ldd your_application_name

Or depends.
Also, http://doc.qt.io/qt-5/deployment.html

7

Re: Application QML the target computer is opened

Now collected all here this program linuxdeployqt.
She created all folders and qt.conf.
Now it is not launched with an error:
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

8

Re: Application QML the target computer is opened

All thanks. The question acts in film. It was possible to launch.
But, it appears, the program linuxdeployqt not all that is necessary collects - it was necessary manually "" some libraries and qml-files.