Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtWebEngine Linux deployment problem
Qt 6.11 is out! See what's new in the release blog

QtWebEngine Linux deployment problem

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MazyCrazy
    wrote on last edited by
    #1

    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 .

    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!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should give a shot to linuxdeployqt. It simplifies deployment of Qt based application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Snxs
        wrote on last edited by
        #3

        Unfortunately linuxdeployqt does not fix this issue, tried the latest, still got:

        FATAL:zygote_host_impl_linux.cc(182)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid).

        I have the ICU data and libraries in the right location, e.g.
        resources/icudtl.dat
        resources/qtwebengine*.pak

        translations/qtwebengine_locales/*.pak

        Any ideas?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved