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. Mac: Monterey unknown module(s) in QT: webengine
QtWS25 Last Chance

Mac: Monterey unknown module(s) in QT: webengine

Scheduled Pinned Locked Moved Solved QtWebEngine
5 Posts 2 Posters 896 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.
  • W Offline
    W Offline
    wsma
    wrote on last edited by wsma
    #1

    I searched the forums for about 45 minutes for an answer.

    After "downgrading" to Monterey, I tried compiling Qt 5.15 (ignoring the warning about not being tested). There are many errors (reinterpret_cast<> incorrect, template errors) in Qt 5.x with the latest clang, so changed to 6.2.4 (previously installed under Big Sur.

    XCode is installed: 13.2. Command Line tools installed, 13.4.

    This is a multi-megabyte, multi-platform GPL project that I am trying to do some small modifications, natively under Monterey. I could back up to High Sierra using VM's, but it should work under Monterey.

    Downgrading to CMakeLists.txt is not currently an option: I am unfamiliar with it, I have found errors with it in regards to Qt, I find the QtCreator mis-handling of CMakeLists.txt to be annoying and frustrating. I desire to keep this package backwards compatible as much as possible.

    IMO, CMakeLists.txt feels to be a step backwards, however I understand the desire to be like Google and Microsoft. I have used Visual Studio and CMakeLists.txt, see posts at socmaker.com.

    QWebEngine IS a part of the Qt install. I even uninstalled and re-installed using the Qt Gui Maintenance tool . qmake continues to fail to find webengine. period.

    NOTE: This same project uses web engine on previous Apple Versions (and before that, QtWebKit), and qmake always finds webengine.

    I tried the following:

    1. Remove and re-install QWebEngine from Qt 6.2.4. (That "succeeded" but did not solve the qmake unknown module(s) error)

    2. Tried to install Qt 6.3.0. That failed in the middle of the install. Not sure why. I have 919 gigabytes free, so it is not a resource issue.
      Update: Did smallest 6.3.0 install possible, succeeded. 6.3.0 fails with same error at qmake step.

    Any suggestions on getting qmake to find webengine?

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      WebEngine has changed between Qt 5 and Qt 6.

      See for example here.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      W 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi and welcome to devnet,

        Did you try to build a simple dummy project or one of the example of the module ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        W 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Did you try to build a simple dummy project or one of the example of the module ?

          W Offline
          W Offline
          wsma
          wrote on last edited by wsma
          #3

          @SGaist Just did a dummy pre-generated project with qwebengine.
          It failed with same error. (Qt 6.2.4).

          ugh.

          Did the same thing on a MacBook Air, with Monterey installed. Same error. Same environment. Monterey 12.4.

          Without qwebengine, it compiles, builds, runs, and I can single step debug.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            WebEngine has changed between Qt 5 and Qt 6.

            See for example here.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            W 1 Reply Last reply
            1
            • SGaistS SGaist

              WebEngine has changed between Qt 5 and Qt 6.

              See for example here.

              W Offline
              W Offline
              wsma
              wrote on last edited by
              #5

              @SGaist I MISSED THAT!

              THANKS!

              Now in QMake .pro file (after a couple of other decisions)

              qwebengine {
              message("QWebEngine build")
              greaterThan(QT_MAJOR_VERSION,5){
              QT += webenginecore webenginewidgets
              } else {
              QT += webengine webenginewidgets
              }
              DEFINES += WEBENGINE_USED=1
              }else{
              #-----------------------------------------------------------------------
              # otherwise it is webkit, so include correct qt libs
              #-----------------------------------------------------------------------
              message("QWebKit build")
              DEFINES += WEBKIT_USED=1
              QT += webkit webkitwidgets
              }

              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