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 Execute Exe file from debug folder

Qt Execute Exe file from debug folder

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 3.0k 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.
  • A Offline
    A Offline
    Ashwin10
    wrote on last edited by
    #1

    Hi,

    I am newbie to QT.

    I have installed QT 5.3.1 in Wn 7 (64bit).
    I have created the simple widget application and made it run using QT creator, but when i execute the exe from the debug folder i get the error "The program can't start because Qt5Widgets.dll is missing from your computer. Try reinstalling the program to fix this problem.".

    I searched for this , i got the solution as add the required DLLS to ur app directory.
    But can anyone tell me the steps to add which DLL and where?

    Thanks.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Welcome to the forum. Required dlls are missing in your standard path. You can refer to earlier posts "here":http://qt-project.org/forums/viewthread/47125/ on same topic

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ashwin10
        wrote on last edited by
        #3

        Thanks for the reply,

        I have went through the link you mentioned, but couldn't understand .
        And i dont want to deploy exe as of now.i want to just execute the exe.

        Just wanted to know what dlls need to copied and where to copy?
        Do you need to add any config file?

        thanks,

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

          Hi and welcome to devnet,

          Executing an application outside Qt Creator requires the same steps as deploying it on another computer

          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
          • A Offline
            A Offline
            Ashwin10
            wrote on last edited by
            #5

            Thanks for the reply,

            Ohhh..i thought we can execute it.

            But in MacOS X, i created the same widget application,it allows to run the .app file without any deployment which was created in debug folder.

            Thanks,

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

              That's nothing Qt specific. Library linking and discovery are not the same at all between Windows and *nix like system.

              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
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on last edited by
                #7

                In addition to SGaist, finding required libraries goes based on path environment variables. Qt specific paths are not added into system environment. Either you add Qt library directory in your system path(Environment variables) or copy the all the required dlls to your application directory. Links provided here explain what dlls are required etc. Hope it is clear now.

                Dheerendra
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

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

                  It's never a good idea to modify the system path like that. You don't know what other programs you have that might use Qt and could break because they are now using another version that the one (maybe customized) they where built against. Also, if you happen to have several different version of Qt at the same time, you could end up using the wrong version while developing.

                  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
                  • dheerendraD Offline
                    dheerendraD Offline
                    dheerendra
                    Qt Champions 2022
                    wrote on last edited by
                    #9

                    You are right. That is the reason is Qt not updating the path. I'm sure he is experimenting and he should know why it is happening like that. He can afford to update the system path. Definitely not in production env.

                    Dheerendra
                    @Community Service
                    Certified Qt Specialist
                    http://www.pthinks.com

                    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