Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using CMAKE + VS + windeployqt to run a 64-bit Qt Application
Forum Updated to NodeBB v4.3 + New Features

Using CMAKE + VS + windeployqt to run a 64-bit Qt Application

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 4.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goodart
    wrote on last edited by
    #1

    Hi,

    I want to create an graphical user interface for our software which is based on a 64-bit architecture. After 2 days of intense work I set up CMAKE with windeployqt to get all .dll from "Qt\5.9\winrt_x64_msvc2017" copied correctly to my binary directory. Compiling the software with VS leads to this error: (0xc000a200) which belongs to an appcontainer problem (source). The mentioned solution to extend the additional options of the linker with /APPCONTAINER:NO didn't solved the problem.
    Further hours in googleling arose the question if my setup is able to produce 64 bit Applictations. The Posts in stackoverflow and Qt-Forum said that I have to have a 64-bit Qt version to build a 64-bit Qt Application.

    My questions are:

    • Are the two last post still relevant? So do I need a 64-bit Qt (ownbuild) version to build a 64 bit application?
    • If not how do I solve the issue (0xc000a200)
    • What is the "winrt_x64_msvc2017" Compiler option in Qt-Creator for? Is this for building real windows software or for apps and mobile applications?
    • To me Qt VS Tools should make life easier, using Qt and VS. But loading a Qt .pro file results in:
      [1] - C:/QT/5.9/WINRT_X64_MSVC2017/mkspecs/features/toolchain.prf:129: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
      [2] - Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set
      I Am using VS 2017, someone has a hint how to solve this issue ?

    Thanks in advance for help :)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The winrt package is to build application for the UWP concept.

      If you want to build a classic desktop then yes, you first have to use a 64 bit version of Qt. That one is already available through either the online or the offline installer.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goodart
        wrote on last edited by
        #3

        Okay thanks for reply.
        I'm developing on Windows and I can't find a 64 bit distribution for Windows in the Download area of Qt. Am I wrong or is the only solution to build it myself?

        Greets

        jsulmJ 1 Reply Last reply
        0
        • G goodart

          Okay thanks for reply.
          I'm developing on Windows and I can't find a 64 bit distribution for Windows in the Download area of Qt. Am I wrong or is the only solution to build it myself?

          Greets

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @goodart There are several 64bit versions of Qt for Windows. What are you using to install it? Qt Online Installer of offline packages?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • G Offline
            G Offline
            goodart
            wrote on last edited by
            #5

            both info pages of the online and offline installer doesn't provide 64 bit. Where is my fallacy?

            Thanks for helping.

            jsulmJ 1 Reply Last reply
            0
            • G goodart

              both info pages of the online and offline installer doesn't provide 64 bit. Where is my fallacy?

              Thanks for helping.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @goodart Just take the online installer even if it is 32bit - that doesn't matter. The online installer will provide you a list of all available Qt version including 64bit. Then just select the one you need and install.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • G Offline
                G Offline
                goodart
                wrote on last edited by
                #7

                okay thank you very much. And doing so gives me more librarys in the Qt Installation dir than the one (following) I currently have?

                • mingw53_32
                • winrt_armv7_msvc2017
                • winrt_x64_msvc2017
                • winrt_x86_msvc2017
                jsulmJ 1 Reply Last reply
                0
                • G goodart

                  okay thank you very much. And doing so gives me more librarys in the Qt Installation dir than the one (following) I currently have?

                  • mingw53_32
                  • winrt_armv7_msvc2017
                  • winrt_x64_msvc2017
                  • winrt_x86_msvc2017
                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @goodart Not sure I understand your question. Online installer will show you all available Qt versions. Which to install depends on the compiler you want to use. For example mingw53_32 is using MinGW. If you want to use Microsoft C++ compiler then you need MSVC2015 or MSVC2017, but then you need to install the corresponding Visual Studio version.
                  I don't think you need WinRT.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • G Offline
                    G Offline
                    goodart
                    wrote on last edited by
                    #9

                    Ok. I got it. Didn't installed the correct Setup with the online Installer. Now everything is working. Thanks!

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved