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. windeployqt wrong bitness on .dlls (after switch to windows 11)?

windeployqt wrong bitness on .dlls (after switch to windows 11)?

Scheduled Pinned Locked Moved Solved General and Desktop
windeployqtwindows 11dll
3 Posts 2 Posters 470 Views
  • 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.
  • D Offline
    D Offline
    Daddedebad
    wrote on last edited by
    #1

    Hey,

    I have an QT 5.15.2 application that I have been able to make releases for using visual studio 2022 on windows 10.

    Now when I have taken a break from the project and I create a release, the release will crash with a 0xc000007b error.

    The only thing that has happened during the break is that my PC has been upgraded with windows 11.

    The old release that I created in windows 10 can still be run in windows 11.

    I can still run my application in debug mode.

    As I have come to understand the error 0xc000007b indicates a mismatch in the bitness of the .dll:s and the .exe. This is indeed a difference between my newly created releases and the old, working, release. The .dll:s are now 64-bit while the .exe is 32-bit, when in the old release everything is 32-bit.

    This seems to me that the windeployqt has a different behaviour in the collection of .dll:s? Have anyone else run into this issue? I am a bit afraid to start messing with the windeployqt without knowing what I am doing...

    JKSHJ 1 Reply Last reply
    0
    • JKSHJ JKSH

      @Daddedebad said in windeployqt wrong bitness on .dlls (after switch to windows 11)?:

      This seems to me that the windeployqt has a different behaviour in the collection of .dll:s?

      I don't believe windeployqt has changed behaviour.

      Rather, you need to run the correct copy of windeployqt -- If you run the 64-bit windeployqt, then it will give you the 64-bit DLLs.

      So, first things first: What is the full path to the version of Qt that you used to build your application? Look in that same folder for the correct copy of windeployqt.

      D Offline
      D Offline
      Daddedebad
      wrote on last edited by
      #3

      @JKSH Hey, thanks for the answer and sorry for the very late reply.

      My path: C:\Qt\5.15.2\msvc2019\bin

      The bitness of the windeploy.exe in that path is 32-bit.

      It seems I misunderstood/forgot how the windeployqt is used, that I need to run it for each new release. The dll:s still are of different bitness from the application's .exe but I guess that's fine then...

      It works now.

      1 Reply Last reply
      0
      • D Daddedebad

        Hey,

        I have an QT 5.15.2 application that I have been able to make releases for using visual studio 2022 on windows 10.

        Now when I have taken a break from the project and I create a release, the release will crash with a 0xc000007b error.

        The only thing that has happened during the break is that my PC has been upgraded with windows 11.

        The old release that I created in windows 10 can still be run in windows 11.

        I can still run my application in debug mode.

        As I have come to understand the error 0xc000007b indicates a mismatch in the bitness of the .dll:s and the .exe. This is indeed a difference between my newly created releases and the old, working, release. The .dll:s are now 64-bit while the .exe is 32-bit, when in the old release everything is 32-bit.

        This seems to me that the windeployqt has a different behaviour in the collection of .dll:s? Have anyone else run into this issue? I am a bit afraid to start messing with the windeployqt without knowing what I am doing...

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #2

        @Daddedebad said in windeployqt wrong bitness on .dlls (after switch to windows 11)?:

        This seems to me that the windeployqt has a different behaviour in the collection of .dll:s?

        I don't believe windeployqt has changed behaviour.

        Rather, you need to run the correct copy of windeployqt -- If you run the 64-bit windeployqt, then it will give you the 64-bit DLLs.

        So, first things first: What is the full path to the version of Qt that you used to build your application? Look in that same folder for the correct copy of windeployqt.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        D 1 Reply Last reply
        2
        • JKSHJ JKSH

          @Daddedebad said in windeployqt wrong bitness on .dlls (after switch to windows 11)?:

          This seems to me that the windeployqt has a different behaviour in the collection of .dll:s?

          I don't believe windeployqt has changed behaviour.

          Rather, you need to run the correct copy of windeployqt -- If you run the 64-bit windeployqt, then it will give you the 64-bit DLLs.

          So, first things first: What is the full path to the version of Qt that you used to build your application? Look in that same folder for the correct copy of windeployqt.

          D Offline
          D Offline
          Daddedebad
          wrote on last edited by
          #3

          @JKSH Hey, thanks for the answer and sorry for the very late reply.

          My path: C:\Qt\5.15.2\msvc2019\bin

          The bitness of the windeploy.exe in that path is 32-bit.

          It seems I misunderstood/forgot how the windeployqt is used, that I need to run it for each new release. The dll:s still are of different bitness from the application's .exe but I guess that's fine then...

          It works now.

          1 Reply Last reply
          0
          • D Daddedebad has marked this topic as solved on

          • Login

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