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

qmake: INSTALLS += ... generates invalid paths

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        1. FirstDynLib.pro
          0.6 kB
        2. Makefile
          45 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes