Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Install MSVC Qt binaries on Linux



  • Hi,
    I've got docker image where clang-cl builds binaries for Windows. Instead of copying Qt from my local system I tried downloading qt online installer and install it during build phase.
    Problem is that there's no MSVC packages available. I see only Android and gcc binaries.

    FROM debian:bullseye
    ...
    ARG QT=qt-unified-linux-x64-online.run
    RUN curl -sL --retry 10 --retry-delay 10 -o /root/$QT https://download.qt.io/official_releases/online_installers/$QT
    RUN chmod +x /root/$QT
    RUN /root/$QT --verbose --script qt_installer.qs WINDOWS=true
    

    How to download MSVC 2015/2019 64b binaries?


  • Lifetime Qt Champion

    Hi
    Im not sure if there is command line that allows this.
    I just used a script meant for headless. ( it was a mini server)
    https://github.com/engnr/qt-downloader

    It should allow you to download any Qt even it doesn't match the platform.



  • Thank you, it worked for me

    RUN pip3 install requests semantic_version lxml
    RUN wget -q -O /tmp/qt-downloader https://raw.githubusercontent.com/engnr/qt-downloader/master/qt-downloader && chmod a+x /tmp/qt-downloader
    RUN /tmp/qt-downloader windows desktop 5.15.1 win64_msvc2015_64 -o /opt/Qt
    

Log in to reply