What is INSTALL_ROOT under windows?



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


  • Lifetime Qt Champion

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



  • @mrjj

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


  • Lifetime Qt Champion

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



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


  • Lifetime Qt Champion

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



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


  • Lifetime Qt Champion

    @koahnig
    Which seems to be the default then.



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