Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. ERROR:resource_bundle.cc(639)] Failed to load qtwebengine_resources.pak

ERROR:resource_bundle.cc(639)] Failed to load qtwebengine_resources.pak

Scheduled Pinned Locked Moved QtWebEngine
qtwebengineembedded linux
3 Posts 3 Posters 9.6k Views
  • 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.
  • G Offline
    G Offline
    gadusmorhua
    wrote on 27 Mar 2015, 20:05 last edited by gadusmorhua
    #1

    Hi All,

    I'm working on getting Qt 5.4.1 with qtwebegnine running on an embedded platform. I'm seeing a problem in that when I run ./quicknanobrowser I get some debug messages like the ones below:

    [0327/191707:ERROR:resource_bundle.cc(639)] Failed to load /home/user/qt/sysroot_dev/sysroot/usr/QT/qtwebengine_resources.pak
    [0327/191707:WARNING:resource_bundle.cc(286)] locale_file_path.empty()

    The issue seems to be that qtwebengine is looking for the resources in the directory into which it was installed after being built, “/home/user/hg/qt/sysroot_dev/sysroot/usr/QT/”, and not the actual directory into which it is deployed on the embedded platform which is "/usr/QT". The "qtwebengine_resources.pak" file does exist and is in the "/usr/QT" directory on the embedded platform.

    Is there a way I can tell qtwebengine where to look for the “qtwebengine_resources.pak” file as well as other files? I’ve tried setting up a qt.conf file, but it looks like qtwebengine just ignores it. It feels like there should be an environment variable or some way to tell which directories qtwebengine should check for these files.

    Any help would be appreciated.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rostik
      wrote on 5 May 2015, 12:44 last edited by
      #2

      Hi,

      not sure if you still have this issue, but I wanted to post a solution if someone is looking for it.

      I had the same issue with the deployment on Ubuntu. After looking and manually changing the paths in libQt5Core.so I finally found two solutions:

      1. Manually change the prefix and data path in libQt5Core.so (for example with wxHexEditor) to a relative path instead of the Qt-Installation path.

      2. Just write a qt.conf file:

      [Paths]
      Prefix=<path_to_qtwebengine_resources.pak_folder>
      

      and place this file in the same folder where QtWebengineProcess is located.

      It seems that QtWebengineProcess ignores the qt.conf of the main application and uses it's own hardcoded installation path.
      Maybe it helps someone.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MeerMusik
        wrote on 16 Aug 2015, 11:54 last edited by MeerMusik
        #3

        Hello.

        I just did a Test Deploy on a Windows 10 and a Windows 7 Clean VM Machine. Qt Version is 5.5.0

        I know this is about Embedded Linux and around 5 Months old.
        But I have the same Problem. It is exactly the same Error Message. Does anybody found a real working Solution yet? The .pak File is in my Application Main Folder. I created a qt.conf and tried the following Settings:

        [Paths]
        Prefix=<QCoreApplication::applicationDirPath()>
        Prefix=<>
        Prefix=<\>
        Prefix=<&PWD>
        

        Nothing worked so far. I could not find the answer, how to tell Prefix to use the current Directory.
        In addition: Has anybody created a BR yet? If not, I can do this.

        Thanks
        Oliver

        EDIT01: Finally I found a way to make it work:

        [Paths]
        Prefix=.
        

        Time will tell if this will bring up other Bugs, Glitches etc.

        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