Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use the web plugin in the windows qt mingw32-make programs?
Forum Updated to NodeBB v4.3 + New Features

How to use the web plugin in the windows qt mingw32-make programs?

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 1.3k 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.
  • nicker playerN nicker player

    I just remembered that someone told me about only the qt msvc support the web plugins ,
    and the mingw32-make versions doesnt support.And if i want to view the web pages or html files,how to used the code ?
    By the way the qt version is 5.14.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @nicker-player Are you talking about WebEngine?
    If so then yes you can only use it with Microsoft compiler on Windows (see https://doc.qt.io/qt-6/qtwebengine-platform-notes.html). The reason for this is that WebEngine uses Chromium internally and Chromium only supports Microsoft compiler on Windows. So, you can't use WebEngine with MinGW.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • nicker playerN Offline
      nicker playerN Offline
      nicker player
      wrote on last edited by
      #3

      I just wondered if there is a plugin module to replace the webengine by using the compiler mingw on windows platform?

      JonBJ 1 Reply Last reply
      0
      • nicker playerN nicker player

        I just wondered if there is a plugin module to replace the webengine by using the compiler mingw on windows platform?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #4

        @nicker-player No, there is not.

        nicker playerN 1 Reply Last reply
        0
        • JonBJ JonB

          @nicker-player No, there is not.

          nicker playerN Offline
          nicker playerN Offline
          nicker player
          wrote on last edited by
          #5

          @JonB
          And if i used the windows qt with mingw32-make,and how to display the html file or the webpages ?

          JonBJ 1 Reply Last reply
          0
          • nicker playerN nicker player

            @JonB
            And if i used the windows qt with mingw32-make,and how to display the html file or the webpages ?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #6

            @nicker-player
            I don't know of anything else for web pages, other than maybe you can still get the old Qt WebKit (https://wiki.qt.io/Qt_WebKit, https://code.qt.io/cgit/qt/qtwebkit.git/) working with a late Qt version. Whether it goes up to 5.14, whether it's happy with 32-bit and whether it works with MinGW I don't know for sure.

            nicker playerN 1 Reply Last reply
            1
            • JonBJ JonB

              @nicker-player
              I don't know of anything else for web pages, other than maybe you can still get the old Qt WebKit (https://wiki.qt.io/Qt_WebKit, https://code.qt.io/cgit/qt/qtwebkit.git/) working with a late Qt version. Whether it goes up to 5.14, whether it's happy with 32-bit and whether it works with MinGW I don't know for sure.

              nicker playerN Offline
              nicker playerN Offline
              nicker player
              wrote on last edited by
              #7

              @JonB
              How to solve the problem of cmake with compiling the QTWEBKIT?

              When i compiled the qtwebkit with the cmake ,
              after solving so many problems of the libraries of the webkit,
              it occurs that

              CMake Error at C:/CMAKE/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
                Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
                LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.6")
              Call Stack (most recent call first):
                C:/CMAKE/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
                C:/CMAKE/share/cmake-3.24/Modules/FindLibLZMA.cmake:89 (find_package_handle_standard_args)
                CMakeLists.txt:74 (find_package)
              

              Ive tried to install the xz or liblzma modules in the cygwin environment,
              also tried to compiled the liblzma module ,but

              missing: LIBLZMA_HAS_AUTO_DECODER
                LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET
              

              Its so boring.
              And maybe its the same problem like in the topic of
              https://stackoverflow.com/questions/54905153/a-non-painful-way-to-compile-lzma-library-on-windows-with-cmake-clion
              God helps me!Please how to do next ?Ive tried lots of methods to find the modules of the liblzma.

              JonBJ 1 Reply Last reply
              0
              • nicker playerN nicker player

                @JonB
                How to solve the problem of cmake with compiling the QTWEBKIT?

                When i compiled the qtwebkit with the cmake ,
                after solving so many problems of the libraries of the webkit,
                it occurs that

                CMake Error at C:/CMAKE/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
                  Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
                  LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.6")
                Call Stack (most recent call first):
                  C:/CMAKE/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
                  C:/CMAKE/share/cmake-3.24/Modules/FindLibLZMA.cmake:89 (find_package_handle_standard_args)
                  CMakeLists.txt:74 (find_package)
                

                Ive tried to install the xz or liblzma modules in the cygwin environment,
                also tried to compiled the liblzma module ,but

                missing: LIBLZMA_HAS_AUTO_DECODER
                  LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET
                

                Its so boring.
                And maybe its the same problem like in the topic of
                https://stackoverflow.com/questions/54905153/a-non-painful-way-to-compile-lzma-library-on-windows-with-cmake-clion
                God helps me!Please how to do next ?Ive tried lots of methods to find the modules of the liblzma.

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #8

                @nicker-player said in How to use the web plugin in the windows qt mingw32-make programs?:

                Please how to do next ?

                If the whole point is to be able to use "the web plugin", i.e. Qt Web Engine, then don't pick to use MinGW as compiler which does not work with it, use MSVC. That is the pretty obvious answer. At present you are trying to nail a square peg into a round hole.

                nicker playerN 1 Reply Last reply
                1
                • JonBJ JonB

                  @nicker-player said in How to use the web plugin in the windows qt mingw32-make programs?:

                  Please how to do next ?

                  If the whole point is to be able to use "the web plugin", i.e. Qt Web Engine, then don't pick to use MinGW as compiler which does not work with it, use MSVC. That is the pretty obvious answer. At present you are trying to nail a square peg into a round hole.

                  nicker playerN Offline
                  nicker playerN Offline
                  nicker player
                  wrote on last edited by nicker player
                  #9

                  @JonB
                  And if i use the vs to compile the webkit ,is it possible to use the webkit dll with the mingw compile?
                  someone told me about that mingw could not recognize the vs dll module.

                  In file included from C:/qt/Tools/mingw730_32/i686-w64-mingw32/include/sec_api/stdlib_s.h:9:0,
                                   from C:/qt/Tools/mingw730_32/i686-w64-mingw32/include/stdlib.h:740,
                                   from C:/qt/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/cstdlib:75,
                                   from C:/qt/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/bits/stl_algo.h:59,
                                   from C:/qt/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/algorithm:62,
                                   from C:/qt/5.14.2/mingw73_32/include/QtCore/qglobal.h:142,
                                   from C:/proj/libwebkit/Source/WTF/wtf/Platform.h:1055,
                                   from C:/proj/libwebkit/Source/WTF/config.h:26,
                                   from C:/proj/libwebkit/Source/WTF/wtf/DateMath.cpp:72:
                  C:/cygwin64/usr/include/stdlib.h:45:3: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
                   } ldiv_t;
                     ^~~~~~
                  
                  C:/qt/Tools/mingw730_32/i686-w64-mingw32/include/stdlib.h:172:38: note: previous declaration as 'char* _sys_errlist [1]'
                  
                     extern __declspec(dllimport) char *_sys_errlist[1];
                                                        ^~~~~~~~~~~~
                  In file included from C:/proj/libwebkit/Source/WTF/wtf/MathExtras.h:30:0,
                                   from C:/proj/libwebkit/Source/WTF/wtf/text/StringImpl.h:32,
                                   from C:/proj/libwebkit/Source/WTF/wtf/text/WTFString.h:29,
                                   from C:/proj/libwebkit/Source/WTF/wtf/DateMath.h:52,
                                   from C:/proj/libwebkit/Source/WTF/wtf/DateMath.cpp:73:
                  C:/qt/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/cmath:1086:11: error: '::acoshl' has not been declare
                  d
                     using ::acoshl;
                             ^~~~~~
                  

                  It seemed that the mingw includes conflict with the cygwin modules and other parts of the qtwebkit modules.

                  or Is it possible that mingw could use the older version of the webkit of the lower version of the qt?
                  Its so boring.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Bonnie
                    wrote on last edited by Bonnie
                    #10

                    I think @JonB just means using MSVC in your whole project so that you can use webengine instead :)
                    Sure you can't compile mingw libs with msvc, also I don't think mixing it with cygwin is a good idea.
                    I haven't tried compiling webkit myself (yes it is so boring), but there's some guide maybe helpful:
                    https://github.com/qtwebkit/qtwebkit/wiki
                    And since you are using qt 5.14, you may just try their precompiled binary packages:
                    https://github.com/qtwebkit/qtwebkit/releases

                    nicker playerN 1 Reply Last reply
                    0
                    • B Bonnie

                      I think @JonB just means using MSVC in your whole project so that you can use webengine instead :)
                      Sure you can't compile mingw libs with msvc, also I don't think mixing it with cygwin is a good idea.
                      I haven't tried compiling webkit myself (yes it is so boring), but there's some guide maybe helpful:
                      https://github.com/qtwebkit/qtwebkit/wiki
                      And since you are using qt 5.14, you may just try their precompiled binary packages:
                      https://github.com/qtwebkit/qtwebkit/releases

                      nicker playerN Offline
                      nicker playerN Offline
                      nicker player
                      wrote on last edited by nicker player
                      #11

                      @Bonnie
                      Ive tried by the way you just mentioned,It worked for me that the webview involed in the project.
                      But it comes out a new problem that there are some other dlls depend on the same name dlls but differnt versions.How to solve the problem? Its hard to recomplied the all of the dlls .
                      It occurs that with these errors

                      Error compiling builtin: 
                      Fatal error compiling builtin function 'apply': 
                       Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
                      

                      It seemed that errors with the complex structure of the html file.If i put a simple code into the html file,it works fine.So is that the problem of the qwebkit?

                      B 1 Reply Last reply
                      0
                      • nicker playerN nicker player

                        @Bonnie
                        Ive tried by the way you just mentioned,It worked for me that the webview involed in the project.
                        But it comes out a new problem that there are some other dlls depend on the same name dlls but differnt versions.How to solve the problem? Its hard to recomplied the all of the dlls .
                        It occurs that with these errors

                        Error compiling builtin: 
                        Fatal error compiling builtin function 'apply': 
                         Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
                        

                        It seemed that errors with the complex structure of the html file.If i put a simple code into the html file,it works fine.So is that the problem of the qwebkit?

                        B Offline
                        B Offline
                        Bonnie
                        wrote on last edited by
                        #12

                        @nicker-player What do you mean by

                        the same name dlls but differnt versions

                        Yes recompiling is quite annoying so I think the best way is to use Qt versions which would be compatible with their precompiled binaries.
                        Since their mingw32 binaries are compiled by Qt5.14.1+mingw73x86, and it seems that you are using Qt5.14.2+mingw73x86, I think they should be compatible.

                        And Webkit is a very out-dated project, of course it may have some issues with newer web technologies.
                        But I don't know whether your problem is caused by that, because I've been not using webkit for many years.

                        Still the best solution may be to change your whole project to MSVC and use webengine though :)

                        1 Reply Last reply
                        1

                        • Login

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