How to use the web plugin in the windows qt mingw32-make programs?
-
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. -
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.@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. -
I just wondered if there is a plugin module to replace the webengine by using the compiler mingw on windows platform?
-
I just wondered if there is a plugin module to replace the webengine by using the compiler mingw on windows platform?
@nicker-player No, there is not.
-
@nicker-player No, there is not.
@JonB
And if i used the windows qt with mingw32-make,and how to display the html file or the webpages ? -
@JonB
And if i used the windows qt with mingw32-make,and how to display the html file or the webpages ?@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-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.@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 thatCMake 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 ,butmissing: 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. -
@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 thatCMake 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 ,butmissing: 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.@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-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.
@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. -
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 -
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@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 errorsError 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?
-
@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 errorsError 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?
@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 :)