Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qmake webengine not working
Qt 6.11 is out! See what's new in the release blog

qmake webengine not working

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 798 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.
  • R Offline
    R Offline
    rmaa
    wrote on last edited by rmaa
    #1

    I'm on windows 10, I have a project with a .pro file and I'm trying to generate visual studio project files using qmake -tp vc using the .pro file.

    I keep getting

    b87077c4-a56c-44f6-a66f-80f2646f88ed-image.png

    I assumed this meant I was missing the modules, so I installed the proper modules using the Maintenance tool:

    988d5a31-b99f-486e-a961-0130f03b2d2d-image.png

    I also set the path so that it would use the qmake.exe executable to the location of the MSVC folder (since webengine isnt supported for mingw):
    4b74c0b7-4a26-4679-a119-02421f708976-image.png
    The thing is, I can see the modules in the folder too, but for some reason my qmake just refuses to acknowledge their existence.
    8e7d43d5-0a1d-4a2f-8f20-5e6513d7aff5-image.png

    the .pro file:

    #-------------------------------------------------
    #
    # Project created by QtCreator 2017-04-09T16:12:58
    #
    #-------------------------------------------------
    
    QT       += core gui
    
    lessThan(QT_MAJOR_VERSION, 5): QT += webkit
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webchannel webengine
    
    TARGET = FapGauntlet
    TEMPLATE = app
    LIBS += -lvlc -lcurl
    
    SOURCES += main.cpp\
            mainwindow.cpp \
        image.cpp \
        videoplayer.cpp \
        downloadmanager.cpp \
        qdownloader.cpp \
        jsoncpp.cpp \
        settingswindow.cpp \
        settings.cpp \
        runguard.cpp \
        qdownloaderthread.cpp
    
    HEADERS  += mainwindow.h \
        image.h \
        videoplayer.h \
        downloadmanager.h \
        qdownloader.h \
        json/json-forwards.h \
        json/json.h \
        settingswindow.h \
        settings.h \
        runguard.h \
        qdownloaderthread.h
    
    FORMS    += mainwindow.ui \
        downloadmanager.ui \
        settingswindow.ui
    

    I suspect that it's using the MinGW modules folder instead of the MSVC one, since in the MinGW modules folder there is no webengine, but in the MSVC one there is. But in that case, how do I run qmake such that it looks for the MSVC modules?

    I really want to work on this project but for now I am stuck.

    Thanks for any help!

    Christian EhrlicherC 1 Reply Last reply
    0
    • R rmaa

      I'm on windows 10, I have a project with a .pro file and I'm trying to generate visual studio project files using qmake -tp vc using the .pro file.

      I keep getting

      b87077c4-a56c-44f6-a66f-80f2646f88ed-image.png

      I assumed this meant I was missing the modules, so I installed the proper modules using the Maintenance tool:

      988d5a31-b99f-486e-a961-0130f03b2d2d-image.png

      I also set the path so that it would use the qmake.exe executable to the location of the MSVC folder (since webengine isnt supported for mingw):
      4b74c0b7-4a26-4679-a119-02421f708976-image.png
      The thing is, I can see the modules in the folder too, but for some reason my qmake just refuses to acknowledge their existence.
      8e7d43d5-0a1d-4a2f-8f20-5e6513d7aff5-image.png

      the .pro file:

      #-------------------------------------------------
      #
      # Project created by QtCreator 2017-04-09T16:12:58
      #
      #-------------------------------------------------
      
      QT       += core gui
      
      lessThan(QT_MAJOR_VERSION, 5): QT += webkit
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webchannel webengine
      
      TARGET = FapGauntlet
      TEMPLATE = app
      LIBS += -lvlc -lcurl
      
      SOURCES += main.cpp\
              mainwindow.cpp \
          image.cpp \
          videoplayer.cpp \
          downloadmanager.cpp \
          qdownloader.cpp \
          jsoncpp.cpp \
          settingswindow.cpp \
          settings.cpp \
          runguard.cpp \
          qdownloaderthread.cpp
      
      HEADERS  += mainwindow.h \
          image.h \
          videoplayer.h \
          downloadmanager.h \
          qdownloader.h \
          json/json-forwards.h \
          json/json.h \
          settingswindow.h \
          settings.h \
          runguard.h \
          qdownloaderthread.h
      
      FORMS    += mainwindow.ui \
          downloadmanager.ui \
          settingswindow.ui
      

      I suspect that it's using the MinGW modules folder instead of the MSVC one, since in the MinGW modules folder there is no webengine, but in the MSVC one there is. But in that case, how do I run qmake such that it looks for the MSVC modules?

      I really want to work on this project but for now I am stuck.

      Thanks for any help!

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @rmaa said in qmake wont work on windows:

      But in that case, how do I run qmake such that it looks for the MSVC modules?

      run the qmake from the msvc Qt folder, not the one from the MinGW folder.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      R 1 Reply Last reply
      1
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        Qt dir has only one path in pro file. You can not use Qt dir for both MSVC and MinGW Qt modules at the same time.

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @rmaa said in qmake wont work on windows:

          But in that case, how do I run qmake such that it looks for the MSVC modules?

          run the qmake from the msvc Qt folder, not the one from the MinGW folder.

          R Offline
          R Offline
          rmaa
          wrote on last edited by
          #4

          thanks guys, I figured it out. So I used the absolute path to qmake.exe in the MSVC folder just to make sure, also turns out the module names should be exactly what they are in the folder, so instead of

          QT += widgets webchannel webengine

          I should do QT += widgets webchannel webenginecore webenginequick webenginequickdelegatesqml webenginewidgets

          Also for anyone in the future make sure its all lowercase too, not camelcase like I was trying, otherwise it won't work

          1 Reply Last reply
          1
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Please mark the topic as solved then.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            0

            • Login

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