Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error in deployment。 0xc000007b
Forum Updated to NodeBB v4.3 + New Features

Error in deployment。 0xc000007b

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 752 Views 2 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.
  • W Offline
    W Offline
    wang98
    wrote on last edited by
    #1

    when i deploy the app ,i turn out the 0xc000007b.
    I do such works:

    • bulid the app

    • use tool windeployqt.exe in terminal. command: windeployqt.exe C:\Users\Administrator\Desktop\build-xxx-release

    • add 3-party dll to release, (also some kit dll, such as libgcc_s_dw2-1.dll)

    It did not work.Turn out oxc000007b.

    But ,if i add the "\QT\mingw32\bin"(kit path) to path, the error dispear.Everything is work.

    so i wonder how to solve this problem, i want it be used in other mechine. Thanks .

    C 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      The normal way is to use a tool like
      https://github.com/lucasg/Dependencies
      that can show all DLLs needed and then see what is missing.
      This should be done on the target pc or you have to be very sure that app cant find
      missing DLLs in the installation folder of Qt.

      If mingw compiler yo also need libstdc++-6.dll and libwinpthread-1.dll

      W 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        The normal way is to use a tool like
        https://github.com/lucasg/Dependencies
        that can show all DLLs needed and then see what is missing.
        This should be done on the target pc or you have to be very sure that app cant find
        missing DLLs in the installation folder of Qt.

        If mingw compiler yo also need libstdc++-6.dll and libwinpthread-1.dll

        W Offline
        W Offline
        wang98
        wrote on last edited by
        #3

        @mrjj
        Thank you a lot. The tool is useful. : )

        But i did not solve this problem.
        The tool show that all needed dll are imported,but just can't start the app.
        By the way, If i add the path,there are some other problem. such as "can't open the datebase". But when i test it in QTcreator,it work.

        jsulmJ 1 Reply Last reply
        0
        • W wang98

          @mrjj
          Thank you a lot. The tool is useful. : )

          But i did not solve this problem.
          The tool show that all needed dll are imported,but just can't start the app.
          By the way, If i add the path,there are some other problem. such as "can't open the datebase". But when i test it in QTcreator,it work.

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

          @wang98 said in Error in deployment。 0xc000007b:

          "can't open the datebase"

          What kind of database is it?
          Your app probably can't find the database file, you will need to provide more information to solve this (how do you access the database?).

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

          1 Reply Last reply
          1
          • W wang98

            when i deploy the app ,i turn out the 0xc000007b.
            I do such works:

            • bulid the app

            • use tool windeployqt.exe in terminal. command: windeployqt.exe C:\Users\Administrator\Desktop\build-xxx-release

            • add 3-party dll to release, (also some kit dll, such as libgcc_s_dw2-1.dll)

            It did not work.Turn out oxc000007b.

            But ,if i add the "\QT\mingw32\bin"(kit path) to path, the error dispear.Everything is work.

            so i wonder how to solve this problem, i want it be used in other mechine. Thanks .

            C Offline
            C Offline
            Claoo
            wrote on last edited by
            #5

            @wang98 I have exactly the same problem on windows 10, although I deployed many apps on windows 8 with qt 5.15.2, on windows 10 I get the error you get. I'll upload the pictures. Is anybody out there who actually deployed qt apps on windows 10. I follow the steps from this tutorial https://wiki.qt.io/Deploy_an_Application_on_Windows and from a Udemy tutorial and from a qt book. Is something that I'm missing, are there any other rules for windows 10?
            eroare_aplicatie.jpg
            folder.jpg

            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