QtMsBuild

Patrick Waldner's Avatar

Patrick Waldner

18 Feb, 2020 12:28 AM

Is it possible to build Qt projects with QtMsBuild on Appveyor?
This is what we use to compile it locally with Qt tools for Visual Studio.

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Feb, 2020 05:24 AM

    Feodor Fitsner's Avatar

    Hi Patrick,

    Is there something missing on AppVeyor VM to do that?

  2. 2 Posted by Patrick Waldner on 18 Feb, 2020 07:26 AM

    Patrick Waldner's Avatar

    I have to define QtMsBuild in my environment in appveyor.yml and upload/extract those files manually into that folder.

  3. 3 Posted by Patrick Waldner on 20 Feb, 2020 01:43 PM

    Patrick Waldner's Avatar

    I had problems when defining QTDIR in appveyor.yml.
    It was set to the short default form "C:\Qt\5.14\msvc2017_64", which is usually just fine in our old project.

    Problem 1:
    When I create a new Qt GUI project in Visual Studio 2019 and try to build that one then the QTDIR (or DefaultQtDirectory) isn't properly resolved.
    https://ci.appveyor.com/project/Megamouse/test/builds/30920377
    I fixed this by using the full path: "C:\Qt\5.14.0\msvc2017_64"

    Problem 2:
    I don't know where to find QtMsbuild on the appveyor image, so I commited it to my testproject for now.

    Problem 3:
    Even though the project builds fine on my visual studio 2019 environment, it still won't build with appveyor:
    https://ci.appveyor.com/project/Megamouse/test/builds/30920474

    Link to my test Project:
    https://github.com/Megamouse/test

    Maybe you can explain how to build that, or fix it on your end?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM