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

Build fails if .qt-license file includes a single space as value for the Licensee variable

    XMLWordPrintable

Details

    Description

      On Mac,
      if first installing the qt-mac-commercial-4.3.1.dmg and typing a single space in the input field for name in the dialog for Name and Qt serial number, and then later trying to compile qt-mac-commercial-src-4.3.1.tar.gz, the compilation fails with the following error message:
      /corelib/global/qlibraryinfo.cpp
      /Users/jberg/depot/qt-4.3.1/src/corelib/global/qconfig.cpp:2: error: initializer-string for array of chars is too long
      make: *** [qlibraryinfo.o] Error 1
      bodo:~/depot/qt-4.3.1 jberg$ make
      make: *** No targets specified and no makefile found. Stop.

      The variable "static const char qt_configure_licensee_str [256 + 12]" in qconfig.cpp is generated with one character too much.

      It seems to work if one types a real name instead of a space character in the binary installation dialog.
      The problems only happens if the .qt-license file has a single empty space for the Licensee variable, such as:
      Licensee=" "

      Attachments

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

        Activity

          People

            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes