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. Qt 5.2.1 MinGw 64-bit is not producing the right executable file
Forum Updated to NodeBB v4.3 + New Features

Qt 5.2.1 MinGw 64-bit is not producing the right executable file

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.7k 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.
  • M Offline
    M Offline
    mathieo
    wrote on 31 Mar 2014, 16:58 last edited by
    #1

    hello thanks for reading my post

    i have windows 7 64-bit installed with Qt MinGW 64-bit the compiler is working fine now with my 64bit libraries and when i run the project from Qt it runs perfectly there is no issues even on the debugging mode but the problem im facing is when i want to run the .exe file i end up with error message "The application was unable to start correctly (0xc00007b). Click Ok to close the application"
    and i have checked the executable file it's 64-bit file

    i hope somebody can help me with this thanks.

    1 Reply Last reply
    0
    • H Online
      H Online
      hskoglund
      wrote on 31 Mar 2014, 19:05 last edited by
      #2

      Hi, error 0xc000007b can occur because of a mixup of 64 and 32 bit DLLs.
      So even though your .exe file is 64 bit, it could be that the DLLs found in your PATH setting is 32 bit, for example libwinpthread-1.dll.

      One way around this problem, is to copy the 64 bit versions of the MinGW and Qt DLLs to the same directory as your .exe file.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mathieo
        wrote on 31 Mar 2014, 19:50 last edited by
        #3

        [quote author="hskoglund" date="1396292744"]Hi, error 0xc000007b can occur because of a mixup of 64 and 32 bit DLLs.
        So even though your .exe file is 64 bit, it could be that the DLLs found in your PATH setting is 32 bit, for example libwinpthread-1.dll.

        One way around this problem, is to copy the 64 bit versions of the MinGW and Qt DLLs to the same directory as your .exe file.
        [/quote]

        thanks for the answer i copied the DLLS and it works....one question how can i make sure of the PATH and correct the paths so it can link to the right directory

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 1 Apr 2014, 00:32 last edited by
          #4

          This is the common case of PATH polluting. You should never put Qt in the PATH globally. You also can't expect your users to have Qt in PATH and you shouldn't modify it for them. Your IDE is doing that for you in the local process.
          As for the running it via clicking the .exe you need to distribute dlls with your app anyway so you can for example make copying them to the exe location part of your build process (eg. via custom step and robocopy).

          1 Reply Last reply
          0
          • H Online
            H Online
            hskoglund
            wrote on 1 Apr 2014, 05:29 last edited by
            #5

            Yeah, agree with Chris, to avoid "DLL Hell" on Windows, a good idea is to keep the .exe and the .dlls close together, if you want to run your app outside of QtCreator or on another PC.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mathieo
              wrote on 1 Apr 2014, 14:36 last edited by
              #6

              [quote author="Chris Kawa" date="1396312336"]This is the common case of PATH polluting. You should never put Qt in the PATH globally. You also can't expect your users to have Qt in PATH and you shouldn't modify it for them. Your IDE is doing that for you in the local process.
              As for the running it via clicking the .exe you need to distribute dlls with your app anyway so you can for example make copying them to the exe location part of your build process (eg. via custom step and robocopy).[/quote]

              thank you

              1 Reply Last reply
              0

              1/6

              31 Mar 2014, 16:58

              • Login

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