Project ERROR: Unknown module(s) in QT: webkitwidgets [duplicate]
Asked Answered
A

2

8

I'm trying to use MXE (with help from this tutorial), and I'm getting this error at the qmake && make step:

Project ERROR: Unknown module(s) in QT: webkitwidgets".

What does this mean and what can I do?

Airdry answered 16/10, 2013 at 22:42 Comment(3)
This is falsely marked as duplicate @jon-ericson the question has nothing to do with linked answer. This is about mxe and linked question is about pure linux. The answer doesn't help in this situation.Flagellum
@Petr: Could you edit the question to make that distinction clear? What is it about MXE that prevents the answer from working?Carillonneur
MXE is cross-building kit that allows you to build Windows executables on linux. Installing any linux packages, like suggested in answer (which was correctly not accepted as it doesn't really answer this), doesn't help at all. Those linux packages will not affect the MXE installation, and qmake will only look to locations in MXE installation, so it will not find webkitwidgets module even if you install the linux package. That would fix the qmake for linux, but MXE's version of qmake will ignore these linux modules. I don't know how I should edit the question, to me it looks pretty clear :)Flagellum
L
7

As per this similar answer, try installing the corresponding package. Assuming you have a Debian-based system, this is done by entering the following command in a console:

sudo apt-get install libqt5webkit5-dev
Lovellalovelock answered 30/11, 2013 at 20:23 Comment(2)
This doesn't help, MXE doesn't use any linux packages. It needs windows version of webkit5Flagellum
false answer it is about mxe not linux packages, it would be better that the moderator update the title to include mxe keyword, by the way this is also my problem as wellTechnocracy
C
3

Unfortunately you're out of luck because recent versions of MXE do not build webkit. Apparently it has symbol conflict with the Qt script library, so the static build is impossible. Use the older MXE version, and don't forget to enable building the webkit in the src/qt.mk file.

Cornell answered 19/12, 2013 at 8:18 Comment(1)
Can you suggest which older version is that? Build of 1 version takes about 20 hours, so trying all of them is probably going to take month or more. Does it apply for qt5 as well?Flagellum

© 2022 - 2024 — McMap. All rights reserved.