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

tutorials/alarms not compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.15
    • 5.15.15
    • Documentation
    • Linux/X11
    • 72f220570 (tqtc/lts-5.15), 75f843951 (dev), 70533610c (6.7)

    Description

      Install Qt 5.15.15 gcc binaries, configure project tutorials/alarms with 5.15.15/gcc_64/bin/qmake and build with make, fails:

      g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../../../5.15.15/gcc_64/include -I../../../../5.15.15/gcc_64/include/QtQuick -I../../../../5.15.15/gcc_64/include/QtGui -I../../../../5.15.15/gcc_64/include/QtQmlModels -I../../../../5.15.15/gcc_64/include/QtQml -I../../../../5.15.15/gcc_64/include/QtNetwork -I../../../../5.15.15/gcc_64/include/QtCore -I. -I/usr/include/libdrm -I../../../../5.15.15/gcc_64/mkspecs/linux-g++ -o main.o main.cpp
      main.cpp: In function ‘int main(int, char**)’:
      main.cpp:60:20: error: unable to find string literal operatoroperator""_qs’ with ‘const char16_t [21]’, ‘long unsigned int’ arguments
         60 |     const QUrl url(u"qrc:/alarms/main.qml"_qs);
            |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      make: *** [Makefile:910: main.o] Error 1 

      Apparently new example since it was not tested wih 5.15.14.

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes