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

qmake fails with 'no rule to make' or 'file not found' errors when the path to the files in question are too long

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.3.1
    • Build tools: qmake
    • None
    • Win7 64-bit
      Qt 5.3.1 (mingw3.8.2)

      Having the project files stores pretty deep within the filesystem and using lenghty file names started to casue weird errors:

      'no rule to make target'
      'file not found' on .pro file

      After a while (reinstalls of Qt etc.) I have discovered that the problem was indeed that the path to said files was too long. Including the file names it was over 150 characters long. I did not discover the exact limit nor whether it is somehow specific to my environment.

      Shortening the path by renaming some of the directories to acronyms solved the issue.

      I believe that the length of the path should not be an issue for qmake. Or if there is a reason for it then there could certainly be more informative error message as neither the error nor build output provided any hints whatsoever to what went wrong.

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

            buddenha Oswald Buddenhagen
            resurrection Michael Vlach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes