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. What is INSTALL_ROOT under windows?
Forum Updated to NodeBB v4.3 + New Features

What is INSTALL_ROOT under windows?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
installrootqmakecopy files
8 Posts 2 Posters 2.4k Views 2 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.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #1

    Can anybody answer this question?

    Basically I am trying to copy a file to a specific location by using INSTALLS in qmake.
    In other .pro files I am using QMAKE_POST_LINK which does not work here, because this is a subdir template

        copyConfigXml.path = ../../somewhere/config
        copyConfigXml.files = config.xm*
        INSTALLS += copyConfigXml
    

    In the generated makefile I can find

    	-$(INSTALL_FILE) E:\Source\bla\blaSuite\config.xml E:$(INSTALL_ROOT)\Source\bla\blaSuite\..\..\somewhere\config
    

    The file is not copied. Therefore I am stuck.

    Any ideas?

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

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      and you did add build step for qmake
      to do qmake install ?

      K 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        and you did add build step for qmake
        to do qmake install ?

        K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        @mrjj

        The project settings in Qt creator are showing the standard build step. I did not change anything.

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

        mrjjM 1 Reply Last reply
        0
        • K koahnig

          @mrjj

          The project settings in Qt creator are showing the standard build step. I did not change anything.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @koahnig
          Well for me, i had to add
          alt text

          for it to actually copy anything.
          not sure your case is the same.

          Tested with echo plugin
          target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/echoplugin/plugin
          INSTALLS += target

          had to add build step (make) and add install as parameter for it
          to copy.
          So its worth a shot, i think :)

          K 1 Reply Last reply
          2
          • mrjjM mrjj

            @koahnig
            Well for me, i had to add
            alt text

            for it to actually copy anything.
            not sure your case is the same.

            Tested with echo plugin
            target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/echoplugin/plugin
            INSTALLS += target

            had to add build step (make) and add install as parameter for it
            to copy.
            So its worth a shot, i think :)

            K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            @mrjj

            Simply added the additonal make step with argument "install" as shown above. It did work taht way also with my MinGW configuration. I confirmd that the file in question was copied.

            However, it performs the install now for all subprojects as well. Not sure about side effects.

            Basically the answer to my question would be nothing then. INSTALL_ROOT seems to be empty then.

            Thanks a lot.

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

            mrjjM 1 Reply Last reply
            1
            • K koahnig

              @mrjj

              Simply added the additonal make step with argument "install" as shown above. It did work taht way also with my MinGW configuration. I confirmd that the file in question was copied.

              However, it performs the install now for all subprojects as well. Not sure about side effects.

              Basically the answer to my question would be nothing then. INSTALL_ROOT seems to be empty then.

              Thanks a lot.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @koahnig
              Oh yes i assume "make install" applies to all projects as its global.
              Hmm
              doing
              message($$INSTALL_ROOT)
              shows empty for me too.

              K 1 Reply Last reply
              0
              • mrjjM mrjj

                @koahnig
                Oh yes i assume "make install" applies to all projects as its global.
                Hmm
                doing
                message($$INSTALL_ROOT)
                shows empty for me too.

                K Offline
                K Offline
                koahnig
                wrote on last edited by
                #7

                @mrjj

                According to this https://wiki.qt.io/Building-Qt-Creator-Packages#Things_affecting_the_build.2Finstall it is an environment variable. This is not set in my environment which explains that it is empty.

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

                mrjjM 1 Reply Last reply
                2
                • K koahnig

                  @mrjj

                  According to this https://wiki.qt.io/Building-Qt-Creator-Packages#Things_affecting_the_build.2Finstall it is an environment variable. This is not set in my environment which explains that it is empty.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @koahnig
                  Which seems to be the default then.

                  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