jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
459 stars 78 forks source link

qt 6.2.2 does not have following module . webenginewidgets webchannel webenginecore core5compat multimedia #140

Closed xiaoyifang closed 2 years ago

xiaoyifang commented 2 years ago
      - name: Install Qt
        uses: jurplel/install-qt-action@v2
        with:
          version: 6.2.2
          cached: 'false'
          modules: qtwebengine

https://github.com/xiaoyifang/goldendict/runs/5512685469?check_suite_focus=true

error

Project ERROR: Unknown module(s) in QT: webenginewidgets webchannel webenginecore core5compat multimedia

btw,qt5.15.2 is ok.

pzhlkj6612 commented 2 years ago

Hi! Please try jurplel/install-qt-action@v3 .

Here is an example workflow for CMake build on Ubuntu. Try to understand it and make your Windows MSVC build work:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: jurplel/install-qt-action@v3
        with:
          version: '6.2.2'
          # Qt6WebEngineCore depends on Qt6WebChannel and Qt6Positioning
          modules: qtwebengine qtwebchannel qtpositioning
      - run: find ../
      - name: checkout the code from 'https://code.qt.io/cgit/qt/qtwebengine.git/tree/examples/webenginequick/minimal/?h=6.2.2'
        run: |
          wget \
            --mirror \
            --no-parent \
            --no-host-directories \
            --cut-dirs=6 \
            --content-disposition \
            'https://code.qt.io/cgit/qt/qtwebengine.git/plain/examples/webenginequick/minimal/?h=6.2.2'
      - name: build
        run: |
          set -e
          mkdir build/
          pushd build/
          cmake ../minimal
          make


In addition, it seems that you are from jaredtao/HelloActions-Qt. I would recommend that you use ilammy/msvc-dev-cmd to configure the MSVC development environment since configuring environment variables manually is error-prone.

xiaoyifang commented 2 years ago

great thanks ,this has solved my problem.