Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing WebAssembly Qt 6.7.0 fails #779

Open
timangus opened this issue Apr 15, 2024 · 8 comments
Open

Installing WebAssembly Qt 6.7.0 fails #779

timangus opened this issue Apr 15, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@timangus
Copy link

Describe the bug
Qt for WebAssembly 6.7.0 fails to install as before, and doesn't appear to be available.

To Reproduce
Steps to reproduce the behavior:

  1. Run aqt install-qt linux desktop 6.7.0 wasm_multithread --autodesktop
  2. Observe error message.

Expected behavior
Qt for WebAssembly 6.7.0 is installed.

aqt output

$ aqt install-qt linux desktop 6.7.0 wasm_multithread --autodesktop
INFO    : aqtinstall(aqt) v3.1.13 on Python 3.10.12 [CPython GCC 11.4.0]
INFO    : You are installing the Qt6-WASM version of Qt, which requires that the desktop version of Qt is also installed. Now installing Qt: desktop 6.7.0 linux_gcc_64
WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
ERROR   : Failed to locate XML data for Qt version '6.7.0'.
==============================Suggested follow-up:==============================
* Please use 'aqt list-qt linux desktop' to show versions available.

$ aqt list-qt linux desktop --arch 6.7.0
linux_gcc_64

Desktop (please complete the following information):

  • OS: linux
  • aqt version: aqtinstall(aqt) v3.1.13 on Python 3.10.12 [CPython GCC 11.4.0]

Additional context
Valid output of 6.6.3 query, for comparison:

$ aqt list-qt linux desktop --arch 6.6.3
gcc_64 wasm_singlethread wasm_multithread
@timangus timangus added the bug Something isn't working label Apr 15, 2024
@rectalogic
Copy link
Contributor

Looks like for 6.7.0 they moved wasm under all_os
https://download.qt.io/online/qtsdkrepository/all_os/wasm/

Similar issue to docs/examples in #775

@timangus
Copy link
Author

timangus commented Apr 17, 2024

I made things work here: timangus@5fd08c4

$ aqt install-qt all_os wasm 6.7.0 wasm_multithread --autodesktop

@miurahr
Copy link
Owner

miurahr commented May 4, 2024

Is it reasonable to advice users to specify "all_os" for os_name?
@timangus @rectalogic

If so, does anyone raise hand volunteer to update manual ?

rabits added a commit to state-of-the-art/qt6-docker that referenced this issue May 11, 2024
@vkuznetsovgn
Copy link

Hey @miurahr .

I think it's not enough to update the manual. @timangus had to update aqt code to make it work.

@timangus
Copy link
Author

And please regard my changes with scepticism; I've only hacked away at it to make it work for my particular use case. It's perhaps useful as a basis for fixing the problem properly though.

@vkuznetsovgn
Copy link

Hi @timangus

Could you maybe help with this #794 (comment) ?

I'm also trying to investigate but the more hands the better

@timangus
Copy link
Author

timangus commented Aug 7, 2024

@vkuznetsovgn at this point I can't really remember tbh, but my fork is still working for my purposes so I guess any insight I can contribute is contained therein. As far as I remember it was just a case of Qt having decided to restructure where all the builds went directory structure wise, and aqtinstall needing modification to account for this.

@adam-ce
Copy link

adam-ce commented Oct 21, 2024

this still fails with qt 6.8. I'm using @timangus workaround for now. HOWEVER, his workaround only works for 6.7, i believe the location of the packages changed once more (i'll use 6.7 for now).

for anybody visiting, if you use gh pages:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        qtarch: [wasm_singlethread, android_arm64_v8a]
        qtversion: ['6.7.0']
        include:
          - qtarch: wasm_singlethread
            qttarget: 'wasm'
            qthost: 'all_os'
            qtmodules: ''
            additional_build_flags: '--target install'
            aqtsource: 'git+https://github.com/timangus/aqtinstall.git'
          - qtarch: android_arm64_v8a
            qttarget: 'android'
            qthost: 'linux'
            aqtsource: 'git+https://github.com/miurahr/aqtinstall.git'
          
    steps:
    - name: Install dependencies
      run: |
        sudo apt-get update
        sudo apt-get install -y build-essential ninja-build
        
    - uses: actions/checkout@v4
      with:
        fetch-depth: 0
        fetch-tags: true
    
    - uses: mymindstorm/setup-emsdk@v13
      if: matrix.qttarget == 'wasm'
      with:
        version: 3.1.50
        
    - name: Install Qt native version (required by android version)
      uses: timangus/install-qt-action@deployed
      with:
        aqtsource: ${{ matrix.aqtsource }}
        version: ${{ matrix.qtversion }}
        host: linux
        target: 'desktop'
        arch: linux_gcc_64
        dir: '${{github.workspace}}/qt'
        install-deps: 'true'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants