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

Qt doesn't work with long building path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.8.3
    • Build System
    • None

    Description

      If qt4 is integrated into other projects, in my case, Yocto, it's likely that the 256 length limit of its building path is not enough. [Our building directory usually contain information about date, architecture, branch and so on. Our it's easy exceed 100 chars. Sometimes it reaches over 256 chars.]

      In its configure file, there are statements like below:
      -static const char qt_configure_prefix_path_str [256 + 12] = "$PREFIX_PATH_STR";
      -static const char qt_configure_documentation_path_str[256 + 12] = "$DOCUMENTATION_PATH_STR";
      -static const char qt_configure_headers_path_str [256 + 12] = "$HEADERS_PATH_STR";
      -static const char qt_configure_libraries_path_str [256 + 12] = "$LIBRARIES_PATH_STR";
      -static const char qt_configure_binaries_path_str [256 + 12] = "$BINARIES_PATH_STR";

      I suggest replace 256 by 512. I think 512 is a reasonable value for practical use.

      Attached is a raw patch I worked out. Please have a look at it. Thanks.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              chenqi chenqi
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes