I have a program on Qt using QtWebEngine, which I compiled on Ubuntu. I need to run this program on other computers with Ubuntu.
I tried to run my program on the VM and on a real computer. I got the same result. The program does not start, but the console displays the following:
Qt WebEngine ICU data not found at /home/username/Qt/Qt5.9.2/5.9.2/gcc_64/resources. Trying parent directory...
Qt WebEngine ICU data not found at /home/username/Qt/Qt5.9.2/5.9.2/gcc_64. Trying application directory...
Qt WebEngine ICU data not found at /home/new_username/Downloads/appname/libexec. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/new_username/.QtWebEngineProcess'
Installed Qt WebEngine locales directory not found at location /home/username/Qt/Qt5.9.2/5.9.2/gcc_64/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /home/new_username/Downloads/appname/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/new_username/.QtWebEngineProcess'
[0213/200348.562665:ERROR:icu_util.cc(178)] Invalid file descriptor to ICU data received.
[0213/200348.562776:FATAL:content_main_runner.cc(691)] Check failed: base::i18n::InitializeICU().
#0 0x7fbebaec9b2e <unknown>
#1 0x7fbebaedb83e <unknown>
#2 0x7fbebaea8072 <unknown>
#3 0x7fbebaea158d <unknown>
#4 0x7fbeba5c5eb9 QtWebEngine::processMain()
#5 0x0000004009f3 <unknown>
#6 0x7fbeb6a111c1 __libc_start_main
#7 0x000000400a31 <unknown>
[5347:5347:0213/200348.725463:FATAL:zygote_host_impl_linux.cc(182)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid).
#0 0x7fcbe8994b2e <unknown>
#1 0x7fcbe89a683e <unknown>
#2 0x7fcbe86065d3 <unknown>
#3 0x7fcbe86052cb <unknown>
#4 0x7fcbe860586e <unknown>
#5 0x7fcbe82c165d <unknown>
#6 0x7fcbe82c4f03 <unknown>
#7 0x7fcbe80bf39f <unknown>
#8 0x7fcbe80c0675 <unknown>
#9 0x7fcbe80b09d9 <unknown>
#10 0x7fcbe80b0d2e QtWebEngineCore::WebContentsAdapter::WebContentsAdapter()
#11 0x7fcbf18aabb1 <unknown>
#12 0x7fcbf18ab734 QWebEnginePage::QWebEnginePage()
#13 0x7fcbf18b881b QWebEngineView::page()
#14 0x7fcbf18b8ff1 QWebEngineView::showEvent()
#15 0x7fcbf0f7b9b8 QWidget::event()
#16 0x7fcbf0f3f5ec QApplicationPrivate::notify_helper()
#17 0x7fcbf0f46a17 QApplication::notify()
#18 0x7fcbef4ed2b8 QCoreApplication::notifyInternal2()
#19 0x7fcbf0f78963 QWidgetPrivate::show_helper()
#20 0x7fcbf0f7b505 QWidget::setVisible()
#21 0x7fcbf0f787f8 QWidgetPrivate::showChildren()
#22 0x7fcbf0f7885f QWidgetPrivate::show_helper()
#23 0x7fcbf0f787e7 QWidgetPrivate::showChildren()
#24 0x7fcbf0f7885f QWidgetPrivate::show_helper()
#25 0x7fcbf0f7b505 QWidget::setVisible()
#26 0x7fcbf0f787f8 QWidgetPrivate::showChildren()
#27 0x7fcbf0f7885f QWidgetPrivate::show_helper()
#28 0x7fcbf0f7b505 QWidget::setVisible()
#29 0x7fcbf0f787f8 QWidgetPrivate::showChildren()
#30 0x7fcbf0f7885f QWidgetPrivate::show_helper()
#31 0x7fcbf0f787e7 QWidgetPrivate::showChildren()
#32 0x7fcbf0f7885f QWidgetPrivate::show_helper()
#33 0x7fcbf0f787e7 QWidgetPrivate::showChildren()
#34 0x7fcbf0f7885f QWidgetPrivate::show_helper()
#35 0x7fcbf0f7b505 QWidget::setVisible()
#36 0x558b6fe3b3c0 <unknown>
#37 0x7fcbee3501c1 __libc_start_main
#38 0x558b6fe3b67a <unknown>
Aborted (core dumped)
To start the program, I run appname.sh .
#! /bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"lib"
export LD_LIBRARY_PATH
exec ./appname
qt.conf:
[Paths]
Prefix=.
The location of the files in the "appname" folder:
appname
appname.sh
qt.conf
This folder also contains all the files and folders copied from the path /home/username/Qt/Qt5.9.2/5.9.2/gcc_64/ (I did this in order to understand that all the necessary files are exactly here).
/home/username/Qt/Qt5.9.2/5.9.2/gcc_64/ - this is the path by which I installed Qt in the system on which I compiled the program.
What's wrong, why are there so many errors? I have all the files here, so I'm confused.
Thanks!