Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30151

QT creator 4.11.2 not compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 4.11.1, Qt Creator 4.11.2
    • Building Qt Creator
    • None
    • linux ubuntu 22.04LTS
    • Linux/Other display system

    Description

      Dear all,

      I am trying to compile Qt Creator as summary and I followed the instructions of README and specified on https://wiki.qt.io/Building_Qt_Creator_from_Git_on_Ubuntu_22.04 but it always stop with error in the same place. I tried by CMAKE and by qmake && make but the final result is the same and I get the following error:

       

      /home/ezio/qt-creator-opensource-src-4.11.2/src/plugins/texteditor/codeassist/genericproposalwidget.cpp:537:38: warning: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
        537 |             : desktop->screenGeometry(desktop->screenNumber(d->m_underlyingWidget));
            |               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /opt/Qt5.14.2/5.14.2/gcc_64/include/QtWidgets/QDesktopWidget:1,
                       from /home/ezio/qt-creator-opensource-src-4.11.2/src/plugins/texteditor/codeassist/genericproposalwidget.cpp:52:
      /opt/Qt5.14.2/5.14.2/gcc_64/include/QtWidgets/qdesktopwidget.h:79:67: note: declared here
         79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
            |                                                                   ^~~~~~~~~~~~~~
      [1041/3396] Building CXX object src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/clangquery.cpp.o
      FAILED: src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/clangquery.cpp.o 
      /usr/bin/c++ -DCLANGREFACTORINGBACKEND_LIB_LIBRARY -DCLANGSUPPORT_BUILD_LIB -DCLANG_BINDIR=\"/usr/lib/llvm-11/bin\" -DCLANG_RESOURCE_DIR=\"/usr/lib/llvm-11/lib/clang/11.1.0/include\" -DCLANG_VERSION=\"11.1.0\" -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_QML_LIB -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator/bin\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -I/home/ezio/build/src/tools/clangrefactoringbackend/source -I/home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source -I/home/ezio/build/src/tools/clangrefactoringbackend/source/clangrefactoringbackend_lib_autogen/include -I/home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/.. -I/usr/lib/llvm-11/include -I/home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/../../clangpchmanagerbackend/source -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/clangsupport -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/clangsupport/.. -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/utils -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/utils/.. -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/sqlite -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/sqlite/.. -I/home/ezio/qt-creator-opensource-src-4.11.2/src/libs/sqlite/../3rdparty/sqlite -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include/QtConcurrent -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include/QtCore -isystem /opt/Qt5.14.2/5.14.2/gcc_64/./mkspecs/linux-g++ -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include/QtNetwork -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include/QtQml -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include/QtGui -isystem /opt/Qt5.14.2/5.14.2/gcc_64/include/QtWidgets -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++14 -Winvalid-pch -include /home/ezio/build/src/libs/3rdparty/syntax-highlighting/CMakeFiles/QtCreatorPchGui.dir/cmake_pch.hxx -MD -MT src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/clangquery.cpp.o -MF src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/clangquery.cpp.o.d -o src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/clangquery.cpp.o -c /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangquery.cpp
      /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangquery.cpp: In lambda function:
      /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangquery.cpp:81:62: error: cannot bind non-const lvalue reference of type ‘llvm::StringRef&’ to an rvalue of type ‘llvm::StringRef’
         81 |         auto optionalMatcher = Parser::parseMatcherExpression({m_query.data(), m_query.size()},
            |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         82 |                                                               nullptr,
            |                                                               ~~~~~~~~
         83 |                                                               &diagnostics);
            |                                                               ~~~~~~~~~~~~~
      In file included from /usr/lib/llvm-11/include/clang/Tooling/CompilationDatabase.h:32,
                       from /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/refactoringcompilationdatabase.h:28,
                       from /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangtool.h:28,
                       from /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangquery.h:28,
                       from /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangquery.cpp:26:
      /usr/lib/llvm-11/include/llvm/ADT/StringRef.h:110:28: note:   after user-defined conversion: ‘constexpr llvm::StringRef::StringRef(const char*, size_t)’
        110 |     /*implicit*/ constexpr StringRef(const char *data, size_t length)
            |                            ^~~~~~~~~
      In file included from /home/ezio/qt-creator-opensource-src-4.11.2/src/tools/clangrefactoringbackend/source/clangquery.cpp:40:
      /usr/lib/llvm-11/include/clang/ASTMatchers/Dynamic/Parser.h:170:37: note:   initializing argument 1 of ‘static llvm::Optional<clang::ast_matchers::internal::DynTypedMatcher> clang::ast_matchers::dynamic::Parser::parseMatcherExpression(llvm::StringRef&, clang::ast_matchers::dynamic::Parser::Sema*, clang::ast_matchers::dynamic::Diagnostics*)’
        170 |   parseMatcherExpression(StringRef &MatcherCode, Sema *S, Diagnostics *Error) {
            |                          ~~~~~~~~~~~^~~~~~~~~~~
      [1050/3396] Building CXX object src/plugins/texteditor/CMakeFiles/TextEditor.dir/formattexteditor.cpp.o
      ninja: build stopped: subcommand failed.

      Does anybody can help what am I missing or doing wrong?

       

      Attachments

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

        Activity

          People

            con Eike Ziller
            ezio Alec Star
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes