[Qt-creator] Unable to Compile QtCreator (4.15)
Pascal COMBES
pascom at orange.fr
Mon Jun 14 13:10:21 CEST 2021
Hello,
OK, thanks for the answer. Then, I will just disable it as of now.
Best regards,
Pascom
Le 14/06/2021 à 08:44, Eike Ziller a écrit :
>
>
>> On Jun 13, 2021, at 21:55, Pascal COMBES <pascom at orange.fr> wrote:
>>
>> Hello,
>> I unearth this old thread because I would like to know
>> if
>> ClangRefactoringPlugin is still maintained or if it should be considered
>> as definitively broken.
>
> It is in the process of being removed.
> https://bugreports.qt.io/browse/QTCREATORBUG-25659
>
> Qt Creator 5 will have some experimental support for clangd.
>
> Br, Eike
>
>> While compiling Qt Creator 15.1
>> (https://download.qt.io/official_releases/qtcreator/4.15/4.15.1/qt-creator-opensource-src-4.15.1.tar.gz),
>> I noticed that the error found by Michael is still unfixed and there is
>> one more error (see log extract below or whole build log at
>> https://build.opensuse.org/public/build/home:pascom/openSUSE_Tumbleweed/x86_64/qtcreator-clang/_log).
>> Best regards,
>> Pascom.
>>
>> -- Build log extract --
>>
>> g++ -c -pipe -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -Wno-noexcept-type -Wno-class-memaccess -Wno-unused-parameter -Wno-comment -g -std=gnu++1z -fvisibility=hidden
>> -fvisibility-inlines-hidden -Wall -Wextra -D_REENTRANT -fPIC -DWITH_TESTS
>> -D'RELATIVE_PLUGIN_PATH="../lib64/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="../libexec/qtcreator"' -D'RELATIVE_DATA_PATH="../share/qtcreator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib64\" -DQTC_PROGS_DIR=\"/lib64/qtcreator/bin\" -DQT_CREATOR
>> -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_USE_QSTRINGBUILDER -DCLANG_VERSION=\"11.0.1\" -D"CLANG_INCLUDE_DIR=\"/usr/lib64/clang/11.0.1/include\"" -D"CLANG_BINDIR=\"/usr/bin\"" -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB
>> -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/abuild/rpmbuild/BUILD/qtcreator-clang-4.15.1/src/plugins/clangrefactoring"' -I/usr/src -I/usr/include/qtcreator/src -I/usr/include/qtcreator/src/libs -I/usr/include/qtcreator/tools -I../../plugins -I/usr/include/qtcreator/src/plugins -I/usr/include/qtcreator/src/libs -I/usr/include/qtcreator/src/libs/3rdparty -I/usr/include/KF5/KSyntaxHighlighting -I/usr/include/qtcreator/src/libs/clangsupport -I/usr/include/qtcreator/src/libs/sqlite -I. -I. -I/usr/include/qt5
>> -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtTest -I/usr/include/qt5/QtConcurrent -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I.moc/debug-shared -I.uic -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/debug-shared/qtcreatorclangqueryfindfilter.o qtcreatorclangqueryfindfilter.cpp
>> [ 90s] clangrefactoringplugin.cpp:82:94: error: wrong number of template arguments (2, should be 1)
>> [ 90s] 82 |
>> Sqlite::ReadStatement>;
>> [ 90s] |
>> ^
>> [ 90s] In file included from clangrefactoringplugin.cpp:31:
>> [ 90s] querysqlitestatementfactory.h:31:7: note: provided for 'template<class Database> class ClangRefactoring::QuerySqliteStatementFactory'
>> [ 90s] 31 | class QuerySqliteStatementFactory
>> [ 90s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> [ 90s] clangrefactoringplugin.cpp:95:5: error: 'QuerySqliteReadStatementFactory' does not name a type; did you mean 'QuerySqliteStatementFactory'?
>> [ 90s] 95 | QuerySqliteReadStatementFactory statementFactory{database};
>> [ 90s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> [ 90s] | QuerySqliteStatementFactory
>> [ 90s] clangrefactoringplugin.cpp:96:17: error: 'QuerySqliteReadStatementFactory' was not declared in this scope; did you mean 'QuerySqliteStatementFactory'?
>> [ 90s] 96 | SymbolQuery<QuerySqliteReadStatementFactory> symbolQuery{statementFactory};
>> [ 90s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> [ 90s] | QuerySqliteStatementFactory
>> [ 90s] clangrefactoringplugin.cpp:96:48: error: template argument 1 is invalid
>> [ 90s] 96 | SymbolQuery<QuerySqliteReadStatementFactory> symbolQuery{statementFactory};
>> [ 90s] | ^
>> [ 90s] clangrefactoringplugin.cpp:96:62: error: 'statementFactory' was not declared in this scope
>> [ 90s] 96 | SymbolQuery<QuerySqliteReadStatementFactory> symbolQuery{statementFactory};
>> [ 90s] |
>> ^~~~~~~~~~~~~~~~
>> [ 90s] clangrefactoringplugin.cpp:96:78: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
>> [ 90s] 96 | SymbolQuery<QuerySqliteReadStatementFactory> symbolQuery{statementFactory};
>> [ 90s] |
>> ^
>> [ 90s] clangrefactoringplugin.cpp:98:107: error: could not convert '{((ClangRefactoring::ClangRefactoringPluginData*)this)->ClangRefactoring::ClangRefactoringPluginData::connectionClient.ClangBackEnd::RefactoringConnectionClient::serverProxy(), ((ClangRefactoring::ClangRefactoringPluginData*)this)->ClangRefactoring::ClangRefactoringPluginData::refactoringClient, ((ClangRefactoring::ClangRefactoringPluginData*)this)->ClangRefactoring::ClangRefactoringPluginData::filePathCache, ((ClangRefactoring::ClangRefactoringPluginData*)this)->ClangRefactoring::ClangRefactoringPluginData::symbolQuery}' from '<brace-enclosed initializer list>' to 'ClangRefactoring::RefactoringEngine'
>> [ 90s] 98 | RefactoringEngine engine{connectionClient.serverProxy(), refactoringClient, filePathCache, symbolQuery};
>> [ 90s] |
>> ^
>> [ 90s] |
>> |
>> [ 90s] |
>> <brace-enclosed initializer list>
>>
>>
>> Le 23/02/2021 à 17:00, Michael Jackson a écrit :
>>>
>>> Cool Thanks for the information and steps. I did all steps and patched
>>> the code to successfully compile on my end. I created a new branch and
>>> pushed that branch to my fork on GitHub (github.com/imikejackson). I
>>> also updated the cmake.yml build matrix to also build the
>>> clangrefactoringplugin? I’ll check back later this afternoon to
>> see if
>>> a GitHub action performed the build?
>>>
>>>
>>>
>>> --
>>>
>>> Mike Jackson
>>>
>>>
>>>
>>> *From: *Cristian Adam <cristian.adam at qt.io>
>>> *Date: *Tuesday, February 23, 2021 at 10:41 AM
>>> *To: *Michael Jackson <mike.jackson at bluequartz.net>, Qt-creator
>>> <qt-creator at qt-project.org>
>>> *Subject: *Re: [Qt-creator] Unable to Compile QtCreator (4.15)
>>>
>>>
>>>
>>> On 23/02/2021 16:25, Michael Jackson wrote:
>>>
>>> Oh. Should I not be compiling those plugins? I liked having them around in earlier releases of QtCreator. On a related note is there a web site that shows the results of CI builds and their configurations? Or a place I can submit a build? Would that be the Gerrit site?
>>>
>>>
>>>
>>> We have GitHub Actions enabled at
>>> https://github.com/qt-creator/qt-creator/actions
>>> <https://github.com/qt-creator/qt-creator/actions>
>>>
>>> If you have a GitHub account you can:
>>>
>>> 1. Fork https://github.com/qt-creator/qt-creator
>>> <https://github.com/qt-creator/qt-creator>
>>> 2. Add your GitHub fork to your Qt Creator git checkout
>>> $ git remote add github https://github.com/
>>> <https://github.com/><USERNAME>/qt-creator.git
>>> 3. Push to your GitHub fork
>>> $ git push github --force
>>>
>>> Your GitHub fork will get its own build of Qt Creator. The build is
>>> ccache backed, and after the cache is warm, a build should take ~30
>>> minutes. You also get build artifacts for Linux, Window and macOS.
>>>
>>> Cheers,
>>> Cristian.
>>>
>>>
>>> _______________________________________________
>>> Qt-creator mailing list
>>> Qt-creator at qt-project.org
>>> https://lists.qt-project.org/listinfo/qt-creator
>>
>>
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> https://lists.qt-project.org/listinfo/qt-creator
>
More information about the Qt-creator
mailing list