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

Wrong qmake path generated on lrelease

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.2
    • 4.8.3
    • Tools: Linguist
    • None
    • Windows 7 + Qt4.8.3
    • 05dab891649b76fe7351d51950edf3caba2bfece

    Description

      $QTDIR/tools/linguist/lrelease/main.cpp:

      static void initBinaryDir(
      #ifndef Q_OS_WIN
              const char *_argv0
      #endif
              )
      {
      #ifdef Q_OS_WIN
          wchar_t module_name[MAX_PATH];
          GetModuleFileName(0, module_name, MAX_PATH);
          QFileInfo filePath = QString::fromWCharArray(module_name);
          binDir = filePath.filePath();
      

      when filePath.filePath(); returns a file path to the lrelease like: 'D:/myqtversions/qt483/bin/lrelease.exe' the binDir
      value which is used on main():

      int main(int argc, char **argv)
      {
      
      ...
      
                  ProFileOption option;
      #ifdef QT_BOOTSTRAPPED
                  option.initProperties(binDir + QLatin1String("/qmake"));
      #else
      
      

      causes that a wrong qmake path (e.g. D:/myqtversions/qt483/bin/lrelease.exe/qmake') is set to 'option.initProperties'

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes