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

QtQuick Compiler 2.0 fails when build dir contains hyphens

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.4.0 RC
    • Quick: Other
    • None
    • Qt 5.4 RC on Linux Mint using QtCreator 3.2.2

      Using the QtQuick Compiler 2.0 provided by the Qt 5.4 RC fails when the build directory contains hyphens (which Qt Creator does by default)

      It fails with the following error

      In file included from /opt/QtMobile53/5.4/gcc_64/include/QtCore/qchar.h:37:0,
                       from /opt/QtMobile53/5.4/gcc_64/include/QtCore/qstring.h:37,
                       from /opt/QtMobile53/5.4/gcc_64/include/QtCore/QString:1,
                       from /opt/QtMobile53/5.4/gcc_64/include/QtQml/5.4.0/QtQml/private/qv4value_inl_p.h:38,
                       from .qtquickcompiler/qtquickcompiler_loader.cpp:21:
      .qtquickcompiler/qtquickcompiler_loader.cpp:1273:63: error: unable to find numeric literal operator 'operator"" rc_app_qtquickcompiler'
           Q_INIT_RESOURCE(___build_build-appname-kit-Debug-Desktop-54rc_app_qtquickcompiler);
      

      Changing the build dir to use underscores instead fixes the compilation.

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

            shausman Simon Hausmann
            broulik Kai Uwe Broulik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes