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 15.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.
  • 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
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #22

              @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
              @

              I have changed two things:

              TEMPLATE statement

              removed the section with the different files.

              Probably you have included the last section because of some renaming purposes I do not understand. So you may want to start with changing the TEMPLATE statement only.

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

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mlong
                wrote on last edited by
                #23

                -I'm not sure how well the subdirs template handles directories in the SUBDIRS variable which are not immediately below the current directory. As such, I'm not sure if the-
                @ deciQt/deciQtl
                qtcolorpicker-2.6_1-opensource/buildlib \ @ -targets will work properly.-

                Edit: I was wrong.

                Software Engineer
                My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

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

                  bq. Probably you have included the last section because of some renaming purposes I do not understand. So you may want to start with changing the TEMPLATE statement only.

                  This section is needed cause project names are not the same as folders names. And they cannot be changed now. This section was added as recommended here:

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

                  bq. I’m not sure how well the subdirs template handles directories in the SUBDIRS variable which are not immediately below the current directory.

                  Probably this could produce problem. But this is needed by project structure and cannot be changed quickly. If SUBDIRS cannot include nested dirs - then SUBDIRS is not appropriate solution for me. Just another reason to write suggestion...

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

                    mlong, it is supported. I've done it in couple of projects

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

                      Gourmand,

                      assuming that the renaming of your subdir/subproject works, the only difference I have seen is that you have added subdirs template instead of substituting.
                      Just to make sure that you did not oversee that change

                      @TEMPLATE += subdirs@

                      to

                      @TEMPLATE = subdirs@

                      Possibly there is no effect when there was no template set before.

                      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
                        #27

                        Looks like this is true. Very surprising cause += works in all other project settings. I changed to TEMPLATE = subdirs and project almost opened. But only latest UIPlugin subproject appeared in project. No one other subproject was opened.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mlong
                          wrote on last edited by
                          #28

                          [quote author="Denis Kormalev" date="1313608432"]mlong, it is supported. I've done it in couple of projects[/quote]

                          Ok, good to know. I've been using Qt long enough that I probably am remembering a time when it didn't. :-)

                          Software Engineer
                          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

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

                            Can anybody tell why only latest subproject openes with superproject?

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

                              Probably an incorrect subdirs thingy. I never had that problem when I was using it.

                              "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
                                #31

                                Subdirs match to exact directory structure. Project files match too. This was checked.

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

                                  Care to post the current state?

                                  "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
                                    #33

                                    it is the same as on 1st page but on 1st line is

                                    TEMPLATE = subdirs

                                    instead of

                                    TEMPLATE += subdirs

                                    other lines are identical

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

                                      finally I've got subrojects loaded, the superproject file looks 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/sciQtldyn.pro
                                      CI_STD.file = CI_STD/CI_std15_plugin.pro
                                      deciQt/deciQtl.file = deciQt/deciQtl/deciQtldyn.pro
                                      qtcolorpicker-2.6_1-opensource/buildlib.file = qtcolorpicker-2.6_1-opensource/buildlib/buildlib.pro
                                      CI_FED.file = CI_FED/CI_FED15_plugin.pro
                                      SCPS-K.file = SCPS-K/SCPS-K.pro
                                      ci_ui.file = ci_ui/ci_ui.pro
                                      EmptyPlugin.file = EmptyPlugin/EmptyPlugin.pro
                                      EmptyPlugin2.file = EmptyPlugin2/EmptyPlugin2.pro
                                      textedit.file = textedit/textedit.pro
                                      UIPligin.file = UIPlugin/uiplugin.pro@

                                      I don't know why Creator loaded latest subproject without it's directory name, but did not load others... This is hidden.

                                      But entire project doesn't built. An error appears

                                      bq. :-1: error: No rule to make target c:/Qt/2009.03/qt/mkspecs/win32-g++/qmake.conf', needed by Makefile'. Stop. File not found.

                                      WHICH ONE FILE???

                                      Ok... I'm sure subprojects are good if you create new project from 0. But if you already have some project at the middle - then remaster it to subprojects structure becomes annoying.

                                      There is some progress in my open suggestion

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

                                      Vote for it, may be this will be created soon...

                                      1 Reply Last reply
                                      0
                                      • L Offline
                                        L Offline
                                        lientur
                                        wrote on last edited by
                                        #35

                                        This work for me:

                                        TEMPLATE = subdirs
                                        CONFIG+= ordered
                                        SUBDIRS += Service/Service.pro
                                        SceneManager/SceneManager.pro
                                        Apollo/Apollo.pro

                                        But i had problens with debug and release modes :(

                                        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