jurplel / install-qt-action

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

Unclear how to install OpenSSL with Qt #149

Closed ashaduri closed 2 years ago

ashaduri commented 2 years ago

Hi, When installing Qt5 via official installer, there is an option to install OpenSSL as well.

However, it is unclear how to do this using install-qt-action.

I have tried something like (not sure where I found this):

    - name: Install Qt
      uses: jurplel/install-qt-action@v2
      with:
        version: 5.15.2
        arch: win64_msvc2019_64
        modules: qtscript
        tools: tools_openssl_x64

But it does not work (says "Specified target combination is not valid: windows tools_openssl_x64 undefined").

Thanks

ddalcino commented 2 years ago

Looks like you need to use jurplel/install-qt-action@v3. The syntax for the tools argument was different with v2, and you're using the v3 syntax.

Edit: Looks like v3 might still be broken (see #152). The readme for v2 is still available here: https://github.com/jurplel/install-qt-action/tree/v2#tools

ashaduri commented 2 years ago

Looks like you need to use jurplel/install-qt-action@v3. The syntax for the tools argument was different with v2, and you're using the v3 syntax.

Edit: Looks like v3 might still be broken (see #152). The readme for v2 is still available here: https://github.com/jurplel/install-qt-action/tree/v2#tools

Thanks. So how would the line for OpenSSL look like for v2? I'm having real trouble finding any ssl-related information.

Meanwhile, I've been using a different method of installing OpenSSL dlls (by unpacking a previously uploaded zip package), but it would be nice to be able to reproduce package builds with Qt-bundled SSL.

ddalcino commented 2 years ago

According to the GUI tool at https://ddalcino.github.io/aqt-list-server/, you can use this line for windows desktop:

tools: 'tools_openssl_x64,1.1.1-10,qt.tools.openssl.win_x64'

Keep in mind that:

ashaduri commented 2 years ago

Thanks a lot, this solves my issue!

tooomm commented 2 years ago

@ddalcino Thanks for the in depth help!

If you use v3 instead, you will not need to change the command every time a new version is released.

Double checking on v3 again, the line for windows desktop would be this one from the starting post?

    tools: tools_openssl_x64

Would it be the same on Linux? Mac doesn't work with v3 either I assume?

ddalcino commented 2 years ago

Try using https://ddalcino.github.io/aqt-list-server, it should answer these questions.

@tooomm, for v3, the line you have written above should work for both Linux and windows. Windows also has a tools_openssl_x86 if you need it.

The Qt repo does not contain any tools_openssl_x64 entry for Mac.

tooomm commented 2 years ago

Thanks for answering again, I did not check the link above. 🙈

Your page is awesome - a super helpful resource - you should add it to the tools section of the README!

ddalcino commented 2 years ago

Thanks for answering again, I did not check the link above. 🙈

Your page is awesome - a super helpful resource - you should add it to the tools section of the README!

Thank you for the generous compliment, but I think that’s up to @jurplel

jurplel commented 2 years ago

Extremely amazing website and I will put it in the readme for sure

tooomm commented 2 years ago

I also just learned about this side which seems to be the official list of tools? https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/

ddalcino commented 2 years ago

Yes, that’s the site that aqt downloads the tools from, unless you specify otherwise in settings.ini. Aqt list-tool reads that website to tell you what tools are available.