[Solved] Compile Several Projects at OncesQtCreator

  • 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

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


  • 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

  • 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

  • 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.

  • Lifetime Qt Champion


    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

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

    Thanks a lot

  • [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

    Read the link in SGaist's reply.

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

    Thanks a lot

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.