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. QtWebEngine application failed to run on windows xp but works on windows 7
Forum Update on Monday, May 27th 2025

QtWebEngine application failed to run on windows xp but works on windows 7

Scheduled Pinned Locked Moved Solved QtWebEngine
6 Posts 2 Posters 907 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.
  • L Offline
    L Offline
    LinArcX
    wrote on 26 Dec 2020, 09:25 last edited by LinArcX
    #1

    Hi.
    I compiled qt 5.5.0 on windows 7 via MSVC2013.(target -> Windows XP)

    This is the qt5vars.cmd file that i invoked it first to prepare the environment:

    CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
    SET _ROOT=D:\myqt\5.5.0\source
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
    SET QMAKESPEC=win32-msvc2013
    SET _ROOT=
    

    And this is how i configure qt:

    configure -debug-and-release -opensource -confirm-license -opengl dynamic no-warnings-are-errors -nomake examples -nomake tests -skip qt3d -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwayland -skip qtandroidextras -skip qtmacextras -skip qtx11extras -target xp -prefix "D:\myqt\5.5.0\install\msvc2013\32bit"
    

    After successful compilation, i decided to compile qtwebengine module separately.

    This is the content of qt5vars.cmd:

    CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
    REM ********** UPDATE INCLUDE & LIB TO SUPPORT XP WIN SDK 7.1A **********
    SET PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
    SET INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;%INCLUDE%
    SET LIB=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib;%LIB%
    SET CL=/D_USING_V120_SDK71_;%CL%
    SET QMAKESPEC=win32-msvc2013
    SET _ROOT=D:\myqt\5.5.0\source
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
    SET _ROOT=
    

    Everything seems OK. After that i tried to compile the browser sample that located here:
    qtwebengine\examples\webenginewidgets\browser

    It compiled and run perfectly on windows 7.

    But if i try to run it on windows xp i'll get these strange errors:(With help of DebugView)
    https://gist.github.com/LinArcX/09aa86edf7848325b2b9589ac543e66b

    Seems it tries to search for QtWebEngineProcess.exe in a wrong path:

    QtWebEngineProcess not found at location D:/myqt/5.5.0/install/msvc2013/32bit/bin/QtWebEngineProcess.exe. Trying fallback path...

    QtWebEngineProcess.exe exists beside application file in deployed directory.

    1 Reply Last reply
    0
    • K KH-219Design
      29 Dec 2020, 19:37

      For completeness:

      I am placing my qt.conf file side-by-side with my executable.

      And the "Qt/libexec" path shown here:

      LibraryExecutables = Qt/libexec
      

      Is a relative path relative to "right there" where the executable and qt.conf file reside.

      L Offline
      L Offline
      LinArcX
      wrote on 30 Dec 2020, 11:19 last edited by
      #6

      @KH-219Design Thank you so much. problem fixed due to my testing on virtualBox machine. On real hardware everything works like a charm.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LinArcX
        wrote on 26 Dec 2020, 12:59 last edited by
        #2

        Is it because i compiled qt dynamically?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LinArcX
          wrote on 27 Dec 2020, 07:19 last edited by
          #3

          This is the output of dependency walker profiler:
          https://gist.github.com/LinArcX/48fab610c34112e706bdac0e9711ad31

          1 Reply Last reply
          0
          • K Offline
            K Offline
            KH-219Design
            wrote on 29 Dec 2020, 19:35 last edited by
            #4

            There are some caveats to my advice, but hopefully some kind of advice is better than none!

            Caveats: I do not use Windows, and I am using Qt 5.15.0.

            In order to get a webengine-based application properly deployed using a Linux AppImage, I needed to use a qt.conf file as per: https://doc.qt.io/qt-5/qtwebengine-deploying.html

            The important part was:

            • At runtime, Qt WebEngine looks for the QtWebEngineProcess executable in the directory that QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath) returns. For Qt installations, this is QTDIR/libexec (Linux) or QTDIR\bin (Windows). The path can be changed by defining a qt.conf file, for example. Alternatively, an executable path can be set as a value of the QTWEBENGINEPROCESS_PATH environment variable.

            Because I am on Linux, I needed a qt.conf line such as:

            LibraryExecutables = Qt/libexec
            

            But since that documentation says that Windows uses "bin", I suppose you would use "Binaries" in place of "LibraryExecutables" (see: https://doc.qt.io/qt-5/qt-conf.html )

            www.219design.com
            Software | Electrical | Mechanical | Product Design

            1 Reply Last reply
            0
            • K Offline
              K Offline
              KH-219Design
              wrote on 29 Dec 2020, 19:37 last edited by
              #5

              For completeness:

              I am placing my qt.conf file side-by-side with my executable.

              And the "Qt/libexec" path shown here:

              LibraryExecutables = Qt/libexec
              

              Is a relative path relative to "right there" where the executable and qt.conf file reside.

              www.219design.com
              Software | Electrical | Mechanical | Product Design

              L 1 Reply Last reply 30 Dec 2020, 11:19
              0
              • K KH-219Design
                29 Dec 2020, 19:37

                For completeness:

                I am placing my qt.conf file side-by-side with my executable.

                And the "Qt/libexec" path shown here:

                LibraryExecutables = Qt/libexec
                

                Is a relative path relative to "right there" where the executable and qt.conf file reside.

                L Offline
                L Offline
                LinArcX
                wrote on 30 Dec 2020, 11:19 last edited by
                #6

                @KH-219Design Thank you so much. problem fixed due to my testing on virtualBox machine. On real hardware everything works like a charm.

                1 Reply Last reply
                0

                1/6

                26 Dec 2020, 09:25

                • Login

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