Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44810

qmake: INSTALLS += ... generates invalid paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.0
    • Build tools: qmake
    • None
    • Windows 7/ 32Bit
      - Compilers: mingw, ms2010, (does not matter)

      qmake replaces the first slash/backslash within additional install-target.path with the macro $(INSTALL_ROOT). This construct expands to invalid paths in the generated makefiles, since INSTALL_ROOT contains an absolute path including the drive letter.

      "publish_header.path=../include"
      expands to
      "F:$(INSTALL_ROOT)\First\FirstDynLib\..\include"
      ... which expands to
      "F:F:\First\build-FirstDynLib-Android_f_r_x86_GCC_4_9_Qt_5_4_1-Debug\android-build\First\FirstDynLib\..\include"
      ... when "make install" is called

      Sample, see target "install_publish_header" in the attached files:

      • *.pro file: FirstDynLib.pro
      • generated makefile: Makefile

        1. FirstDynLib.pro
          0.6 kB
          Thomas
        2. Makefile
          45 kB
          Thomas
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            lowercase Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes