Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator - Need change Release/Debug on all open projects by one click
Forum Updated to NodeBB v4.3 + New Features

QtCreator - Need change Release/Debug on all open projects by one click

Scheduled Pinned Locked Moved Qt Creator and other tools
35 Posts 6 Posters 13.7k 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.
  • F Offline
    F Offline
    Franzk
    wrote on last edited by
    #2

    As far as I know it is not there. Care to file the request if not there yet?

    "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gourmand
      wrote on last edited by
      #3

      Just wrote...

      https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5823

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #4

        You can also use SUBDIRS .pro file for now to have one project for all of your small subprojects.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #5

          I am not sure, but possibly the subdirs template might be of help for you.
          I had a similar problem. I wanted to change the tool chain from embedded to host and back.
          "Here is a link to that post":http://developer.qt.nokia.com/forums/viewthread/6394/ in case you like to check.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Franzk
            wrote on last edited by
            #6

            SUBDIRS is not an option if you're using CMake (don't know if that's the case for Gourmand though).

            "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Gourmand
              wrote on last edited by
              #7

              Do you mean: if I'll create projects.pro with content like this:

              @TEMPLATE=subdirs

              SUBDIRS += coredir
              libdir \
              plug1dir
              plug2dir@

              then I'll have only change config for this only project and run build for it?

              But what will happen if I have a number of open projects and this projects.pro then just click to Build button? Which one project will be build first - projects.pro or one opened with first name in list? What will happen if I click REBUILD ALL? Won't it will be rebuild twice?

              bq. SUBDIRS is not an option if you’re using CMake

              I work with jom option turned on (don't sure if this works) and mingw32-make by default.

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Franzk
                wrote on last edited by
                #8

                You can add dependencies: http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake#SUBDIRS_projects

                "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #9

                  [quote author="Franzk" date="1313502899"]SUBDIRS is not an option if you're using CMake (don't know if that's the case for Gourmand though).[/quote]

                  This is certainly not the field of my expertize. However, I thought that creator will always use qmake to generate the different makefiles. Lateron the "makes" will use those makefiles.
                  SUBDIRS is part of qmake, isn't it?

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    Gourmand
                    wrote on last edited by
                    #10

                    Ok, let's think I added dependencies... But what will happen after click to Rebuild All if all projects including superproject are open?

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Franzk
                      wrote on last edited by
                      #11

                      When you open the superproject, all your subprojects are opened automatically. If you have the subprojects open as well, all projects will start building. That means your projects get built twice. Best is to only open the super project if you want everything available.

                      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        Gourmand
                        wrote on last edited by
                        #12

                        Ok. But how easy it is managed? What if I need create new subproject for new plugin? How this will be performed (I just want know exactly what I'll get before try).

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          Franzk
                          wrote on last edited by
                          #13

                          you can start up the plugin as a separate project, then add the project to your subdirs project and go from there. Not much more complicated than what you have to do now.

                          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            DenisKormalev
                            wrote on last edited by
                            #14

                            Gourmand, I think a small test made by yourself will show you is it a good option for you.

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              Gourmand
                              wrote on last edited by
                              #15

                              Ok, I just made superproject file like this:

                              @TEMPLATE += subdirs
                              CONFIG += ordered

                              SUBDIRS += sciQtldyn
                              CI_STD
                              deciQt/deciQtl
                              qtcolorpicker-2.6_1-opensource/buildlib
                              CI_FED
                              SCPS-K
                              ci_ui
                              EmptyPlugin
                              EmptyPlugin2
                              textedit
                              UIPlugin

                              sciQtldyn.file = sciQtldyn.pro
                              CI_STD.file = CI_std15_plugin.pro
                              deciQt/deciQtl.file = deciQtldyn.pro
                              qtcolorpicker-2.6_1-opensource/buildlib.file = buildlib.pro
                              CI_FED.file = CI_FED15_plugin.pro
                              SCPS-K.file = SCPS-K.pro
                              ci_ui.file = ci_ui.pro
                              EmptyPlugin.file = EmptyPlugin.pro
                              EmptyPlugin2.file = EmptyPlugin2.pro
                              textedit.file = textedit.pro
                              UIPligin.file = uiplugin.pro@

                              this doesn't work. This superproject file is placed into directory on top of all subproject directories. When I open superproject.pro in Qt Creator then I see only this project. I expected all subprojects will be opened inside it. I need mandatory access to each subproject individually. And even project build doesn't work. What is wrong here?

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                DenisKormalev
                                wrote on last edited by
                                #16

                                At first try to update your QtCreator. Afair you are using 2.0.1 which is too old

                                1 Reply Last reply
                                0
                                • G Offline
                                  G Offline
                                  Gourmand
                                  wrote on last edited by
                                  #17

                                  Hah... here is the question - how to install separate QtCreator package in Windows over old QtCreator? And do not change Qt for while. I do not want upgrade all Qt now - I have dynamically and statically versions. This upgrade will take some time but I cannot spend it now. I downloaded latest QtCreator but installer does not see already installed one. It does not suggest upgrade, just install new. But I want upgrade. How better do that?

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    Gourmand
                                    wrote on last edited by
                                    #18

                                    Ok, I installed 2.2.1 and opened superproject. Result is the same.

                                    On the "run qmake" it generates Makefile without any mention of subprojects.

                                    BTW: Tried add existing project to superproject - it adds as "other file". But logically it must add project to .pro as subproject.

                                    1 Reply Last reply
                                    0
                                    • G Offline
                                      G Offline
                                      Gourmand
                                      wrote on last edited by
                                      #19

                                      Just added another one suggestion - ability add existing subproject into superproject created manually or by SUBDIRS wizard. Now this wizard is almost useless. It only allows create empty subprojects but not add existing. For all who agree wit this - please vote for it:

                                      https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5837

                                      I tried create subdirs file manually but without success. And my question is still open...

                                      1 Reply Last reply
                                      0
                                      • K Offline
                                        K Offline
                                        koahnig
                                        wrote on last edited by
                                        #20

                                        Can you post your .pro files of your superproject?

                                        All I remember is that it was very easy to do so.

                                        Vote the answer(s) that helped you to solve your issue(s)

                                        1 Reply Last reply
                                        0
                                        • G Offline
                                          G Offline
                                          Gourmand
                                          wrote on last edited by
                                          #21

                                          bq. Can you post your .pro files of your superproject?

                                          look to 1st page of this thread

                                          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