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. [SOLVED] Making first program in Qt Creator 3.0.1
QtWS25 Last Chance

[SOLVED] Making first program in Qt Creator 3.0.1

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 4 Posters 2.5k 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.
  • I Offline
    I Offline
    igor64
    wrote on last edited by
    #1

    Hello i’m new to QT and I am not able to make a program that can be executed out of Qt Creator environment.

    I am using Qt Creator 3.0.1 Based on Qt 5.2.1 (MSVC 2010, 32 bit) Built on Jan 31 2014 at 05:16:27.

    I have problem with runing program out of Qt Creator environment. When I try to execute
    the exe code, that is located in debug submap, I get a message "The program can't start because Qt5Cored.dll is missingfrom your computer."

    I thought the QT Creator will automatically build a code that can be executed on another computer but it seems I'm wrong. What should I do to make it work?

    Thanks in advance, Igor

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      For runnig on another PC, you need to follow the "deployment guide":http://qt-project.org/doc/qt-5/windows-deployment.html.

      (Z(:^

      1 Reply Last reply
      0
      • I Offline
        I Offline
        igor64
        wrote on last edited by
        #3

        I tryed to follow instruction in deployment guide, but I couldn't find configure.exe. Probably because I downloaded binary package for installation? Now I will download source code and see if configure.exe is there. Is it the answer to my problem?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You do not need configure for deployment. Again, please follow the guide. You need to skip "Static libraries" and go straight to "Shared Libraries".

          (Z(:^

          1 Reply Last reply
          0
          • I Offline
            I Offline
            igor64
            wrote on last edited by
            #5

            I tried to follow the guide. In "Linking the Application to Qt as a Shared Library " are those instruction:

            nmake clean
            qmake -config release
            nmake

            I don't have nmake. I tried with mingw32-make instead. But it says: *** No rule to make target 'clean'. Stop.

            And then qmake says that it has just two modes: -project and -makefile and instruction "qmake -config release" does nothing.

            What am I doing wrong?

            1 Reply Last reply
            0
            • T Offline
              T Offline
              telecaster
              wrote on last edited by
              #6

              As sierdzio pointed out I would take sometime to read paciently the documentation for a proper configuration of Qt creator and the environment.

              Your problem is happening because the mingw bin directory is not listed in your PATH environment variable.

              I could point you 2 possible solutions:

              1.) Set the location of YOUR mingw binary directory in the Path environment variable (mine is C:\Qt\5.2.1\mingw48_32\bin):

              run the Windows CMD command line as Administrator
              @set PATH=%PATH%;C:\Qt\5.2.1\mingw48_32\bin@

              You may then need to reboot the system or start your application from the command line.

              2.) Second solution would be to copy the needed Qt dll's from your mingw binary directory to the directory where your application (exe) is located. To know what dll's to copy you may use dependency walker (www.dependencywalker.com) or just copy one by one and execute the application inbetween to see which dll is still missing!

              Hope that helps.

              Cheers,
              Marc

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

                Hi,

                Just build your application in release mode from Qt Creator, it's way simpler.

                Also take a look at this "wiki entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                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
                • I Offline
                  I Offline
                  igor64
                  wrote on last edited by
                  #8

                  Thank you all. Your advice were very helpful. I'm begining to understand how it all works. Thanks again.

                  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