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

Correct inappropriate uses of qmake in documentation

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 1
    • Fix Version/s: 5.0.0 Beta 2
    • Component/s: Documentation
    • Labels:
      None

      Description

      Issue
      Some of the instructions on using qmake in Windows demonstrate passing strings that contain backslashed-paths. Such usage generates a warning:

      WARNING: (internal):1: Unescaped backslashes are deprecated.

      Furthermore, some of the instructions also feature paths-with-spaces WITHOUT using quotes around it, leading qmake to think that the user has specified 2 paths.

      I'm not sure how prevalent this issue is; I only noticed one case but it's probably good to check for others.

      Example
      This snippet from http://qt-project.org/doc/qt-5.0/sql-driver.html#how-to-build-the-qmysql-plugin-on-windows

      qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro

      Suggestion
      As Volker suggested in http://qt-project.org/forums/viewthread/10225,

      1. Use forward-slashes only
      2. Use quotation marks whenever the path contains spaces

        Attachments

        For Gerrit Dashboard: QTBUG-27325
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              jbornema Joerg Bornemann
              Reporter:
              jksh Sze Howe Koh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes