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. [ask]Deploy QtWebEngine on Windows?

[ask]Deploy QtWebEngine on Windows?

Scheduled Pinned Locked Moved QtWebEngine
7 Posts 4 Posters 10.4k 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.
  • F Offline
    F Offline
    fpermana
    wrote on 2 Mar 2015, 06:38 last edited by
    #1

    Hi all,
    I tried to deploy quicknanobrowser which is example of QtWebEngine.
    First I run windeployqt.exe on bin folder of Qt installation folder to the exe file.
    C:\Qt\Qt5.4.1\5.4\msvc2013_64\bin>windeployqt.exe C:\Qt\Qt5.4.1\Examples\Qt-5.4
    webengine\build-quicknanobrowser-Desktop_Qt_5_4_1_MSVC2013_64bit-Release\release
    \quicknanobrowser.exe
    It copied .dll files and all necessary files to exe directory.

    I'm able to run it correctly in on my PC without using QtCreator, but when I copy all files in release folder to other computer, nothing happened.
    There is a running process, but it did not show anything, and then the process just gone.
    [img]http://s4.postimg.org/vrmi3j0cd/Untitled.png[/img]

    I already install Visual C++ Redistributable Packages on that PC and using latest Qt5.4.1.
    Is there anyone know the solution?
    Thank you.

    J Y 2 Replies Last reply 6 Mar 2015, 15:03
    0
    • F fpermana
      2 Mar 2015, 06:38

      Hi all,
      I tried to deploy quicknanobrowser which is example of QtWebEngine.
      First I run windeployqt.exe on bin folder of Qt installation folder to the exe file.
      C:\Qt\Qt5.4.1\5.4\msvc2013_64\bin>windeployqt.exe C:\Qt\Qt5.4.1\Examples\Qt-5.4
      webengine\build-quicknanobrowser-Desktop_Qt_5_4_1_MSVC2013_64bit-Release\release
      \quicknanobrowser.exe
      It copied .dll files and all necessary files to exe directory.

      I'm able to run it correctly in on my PC without using QtCreator, but when I copy all files in release folder to other computer, nothing happened.
      There is a running process, but it did not show anything, and then the process just gone.
      [img]http://s4.postimg.org/vrmi3j0cd/Untitled.png[/img]

      I already install Visual C++ Redistributable Packages on that PC and using latest Qt5.4.1.
      Is there anyone know the solution?
      Thank you.

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 6 Mar 2015, 15:03 last edited by
      #2

      @fpermana said:

      I'm able to run it correctly in on my PC without using QtCreator, but when I copy all files in release folder to other computer, nothing happened.
      There is a running process, but it did not show anything, and then the process just gone.

      Hi, sounds like a missing plugin (Windeployqt might miss some plugins). Or, the other computer doesn't have the required graphics drivers.

      On your own PC, rename C:\Qt\ to C:\QtHidden. Then, try to launch the program without Qt Creator again. Does it still work?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      F 1 Reply Last reply 9 Mar 2015, 03:45
      0
      • F fpermana
        2 Mar 2015, 06:38

        Hi all,
        I tried to deploy quicknanobrowser which is example of QtWebEngine.
        First I run windeployqt.exe on bin folder of Qt installation folder to the exe file.
        C:\Qt\Qt5.4.1\5.4\msvc2013_64\bin>windeployqt.exe C:\Qt\Qt5.4.1\Examples\Qt-5.4
        webengine\build-quicknanobrowser-Desktop_Qt_5_4_1_MSVC2013_64bit-Release\release
        \quicknanobrowser.exe
        It copied .dll files and all necessary files to exe directory.

        I'm able to run it correctly in on my PC without using QtCreator, but when I copy all files in release folder to other computer, nothing happened.
        There is a running process, but it did not show anything, and then the process just gone.
        [img]http://s4.postimg.org/vrmi3j0cd/Untitled.png[/img]

        I already install Visual C++ Redistributable Packages on that PC and using latest Qt5.4.1.
        Is there anyone know the solution?
        Thank you.

        Y Offline
        Y Offline
        yogeshpatel23
        wrote on 7 Mar 2015, 07:33 last edited by
        #3

        @fpermana :
        Did you copy QtWebEngineProcess.exe along with all dependent .dll ? You can find QtWebEngineProcess.exe in bin folder itself.

        Thanks,
        Yogesh

        1 Reply Last reply
        0
        • J JKSH
          6 Mar 2015, 15:03

          @fpermana said:

          I'm able to run it correctly in on my PC without using QtCreator, but when I copy all files in release folder to other computer, nothing happened.
          There is a running process, but it did not show anything, and then the process just gone.

          Hi, sounds like a missing plugin (Windeployqt might miss some plugins). Or, the other computer doesn't have the required graphics drivers.

          On your own PC, rename C:\Qt\ to C:\QtHidden. Then, try to launch the program without Qt Creator again. Does it still work?

          F Offline
          F Offline
          fpermana
          wrote on 9 Mar 2015, 03:45 last edited by fpermana 3 Sept 2015, 03:47
          #4

          @JKSH said:

          @fpermana said:

          I'm able to run it correctly in on my PC without using QtCreator, but when I copy all files in release folder to other computer, nothing happened.
          There is a running process, but it did not show anything, and then the process just gone.

          Hi, sounds like a missing plugin (Windeployqt might miss some plugins). Or, the other computer doesn't have the required graphics drivers.

          On your own PC, rename C:\Qt\ to C:\QtHidden. Then, try to launch the program without Qt Creator again. Does it still work?

          Hi JKSH, I manage to run the application on my target PC by add more copied folders.
          They are QtQuick, QtQuick.2, and QtWebEngine from C:\Qt\Qt5.4.1\5.4\msvc2013_64\qml.
          But when I run, it shows a "has stopped working dialog".
          http://s13.postimg.org/msyz583h3/Untitled2.png

          On my development PC, I tried your suggestion to rename C:\Qt to C:\QtHidden and run again quicknanobrowser.exe from my release folder.
          It also shows same dialog, "has stopped working dialog".
          I also found that quicknanobrowser.exe automatically create folder C:\Qt and complete path C:\Qt\Qt5.4.1\5.4\msvc2013_64.
          So I copied some files from C:\QtHidden\Qt5.4.1\5.4\msvc2013_64 to C:\Qt\Qt5.4.1\5.4\msvc2013_64.
          They are .dat, icudtl.dat, and qtwebengine_resources.pak.
          Finally it run without error.
          It looks like quicknanobrowser.exe, did not read that three files on the same folder, but keep on reading to Qt installation folder.

          Currently I only test in on development PC, but I'll try on my target PC.
          Hope I can get a good result.
          Thank you.

          @yogeshpatel23 said:

          @fpermana :
          Did you copy QtWebEngineProcess.exe along with all dependent .dll ? You can find QtWebEngineProcess.exe in bin folder itself.

          Hi yogeshpatel23, yes I did copied all dll and QtWebEngineProcess.exe.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fpermana
            wrote on 9 Mar 2015, 03:55 last edited by
            #5

            I've tried the same thing on the target PC (copy icudtl.dat, and qtwebengine_resources.pak to C:\Qt\Qt5.4.1\5.4\msvc2013_64), and quicknanobrowser.exe run without problem.

            My next question, is this kind of bug on Qt and could it be solved on next Qt release?
            or I should do same thing to every application that use QtWebEngine module?
            thank you.

            Y 1 Reply Last reply 11 Mar 2015, 11:50
            1
            • F fpermana
              9 Mar 2015, 03:55

              I've tried the same thing on the target PC (copy icudtl.dat, and qtwebengine_resources.pak to C:\Qt\Qt5.4.1\5.4\msvc2013_64), and quicknanobrowser.exe run without problem.

              My next question, is this kind of bug on Qt and could it be solved on next Qt release?
              or I should do same thing to every application that use QtWebEngine module?
              thank you.

              Y Offline
              Y Offline
              yogeshpatel23
              wrote on 11 Mar 2015, 11:50 last edited by
              #6

              @fpermana :
              I am not very much sure about the logic behind icudtl.dat file...the path of icudtl.dat dependency should be configurable from .pro or something else...I am also trying to figure out same..

              Thanks,
              Yogesh

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Andrea Ferroni
                wrote on 14 Jul 2015, 12:57 last edited by
                #7

                I had a similar problem.
                You can try to fix in this way:

                • do enable console loggin' adding CONFIG += console into the .pro file
                • rebuild and launch again the application: now every qDebug() message and other errors appear in a terminal
                • now you can follow what QT is saying that is missing (in my case libEGL.dll libGLESv2.dll and opengl32sw.dll)

                Hope this can help.

                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