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. [Solved] Compile Several Projects at OncesQtCreator

[Solved] Compile Several Projects at OncesQtCreator

Scheduled Pinned Locked Moved General and Desktop
10 Posts 4 Posters 2.4k 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.
  • E Offline
    E Offline
    epalmero
    wrote on last edited by
    #1

    Dear All:

    Sorry to make this stupid question but I don't arrive to do this. I have create a project for an application and as normal I have divide my project in different Dlls and a Main Application. All that is working perfectly but I have an small issues, since I have several projects I would like to be able to tell Qt to compile all the projects if necessary I know that I have a build all but the question is how to tell Qt about the order of compilation since each project have dependencies on others. Coming from using Visual Studio this is quite easily there but here I QtCreator I don't know how to do it. I would like to use QtCreator because I am developing a Cross Platform application.

    Thanks a lot
    Ernesto

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by
      #2

      Click the "projects" tab (on the left)
      On top you will an option to set depedencies

      http://qt-project.org/doc/qtcreator-3.2/creator-build-dependencies.html

      1 Reply Last reply
      0
      • E Offline
        E Offline
        epalmero
        wrote on last edited by
        #3

        Thanks a lot that work as charm. The last stupid question how I can make Qt to copy all the necessary Dlls like QtWidget for deployment

        Thanks a lot

        1 Reply Last reply
        0
        • T Offline
          T Offline
          t3685
          wrote on last edited by
          #4

          Check this out:

          http://qt-project.org/doc/qt-5/qmake-variable-reference.html#destdir

          1 Reply Last reply
          0
          • E Offline
            E Offline
            epalmero
            wrote on last edited by
            #5

            The problem I have now is that I have all the Dlls that my program depend on and still the program does not run outside the QtCreator I am really becoming deseperate. I have put the plataform directory. I have put the Qt5Core.dll, Qt5OpenGL.dll, Qt5Widgets.dll, Qt5Gui.dll, icudt52.dll, icuin52.dll, icuuc52.dll and all the libraries of my project. I also has include the msvcp120.dll, msvcr120.dll and vccorlib120.dll but still the application does not run. I really need to fix this since I am suppose to order Qt Monday but I need to send this to my clients otherwise I don't know if it is really worth it if I don't have a way to easy give away my applicaton.

            Thanks for any help

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mchinand
              wrote on last edited by
              #6

              Did you include the 'platforms' dlls? For Windows, qminimal.dll, qoffscreen.dll, and qwindows.dll which should be in a sub-folder called 'platforms' where your executable and Qt5Core.dll, etc. are located. You might need to do the same for the 'imageformats' dlls.

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

                Hi,

                You need to follow the same steps as if you would deploy your application on another computer.

                Have a look at this fine 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
                • E Offline
                  E Offline
                  epalmero
                  wrote on last edited by
                  #8

                  Yes I have the platforms folder already but I don't have the imageformats dlls. How I can do that?

                  Thanks a lot

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mchinand
                    wrote on last edited by
                    #9

                    [quote author="epalmero" date="1416599041"]Yes I have the platforms folder already but I don't have the imageformats dlls. How I can do that?

                    Thanks a lot
                    [/quote]

                    Read the link in SGaist's reply.

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      epalmero
                      wrote on last edited by
                      #10

                      Thanks a lot for all the help and support it work really nice.

                      Thanks a lot

                      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