[Qt-creator] Unable to Compile QtCreator (4.15)
Eike Ziller
Eike.Ziller at qt.io
Tue Feb 23 16:12:48 CET 2021
Probably broke with
Core: Streamline SearchResultWindow interface (Ic2740477) · Gerrit Code Review
https://codereview.qt-project.org/c/qt-creator/qt-creator/+/334090
Since clangrefactoring is not built by default, this wasn’t noticed.
Br, Eike
> On Feb 23, 2021, at 16:03, Michael Jackson <mike.jackson at bluequartz.net> wrote:
>
> I have been trying for the last few days to compile QtCreator using the master branch. I finally had to pick some random commit from a few weeks back to get it to compile. I just tried the latest 4.15 branch and I get the following compiler error:
>
> 69 warnings generated.
> [867/2446] Building CXX object src/plugins/clangrefactoring/CMakeFiles/ClangRefactoring.dir/qtcreatorsearchhandle.cpp.o
> FAILED: src/plugins/clangrefactoring/CMakeFiles/ClangRefactoring.dir/qtcreatorsearchhandle.cpp.o
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBUILD_SQLITE_LIBRARY -DCLANGREFACTORING_LIBRARY -DCLANG_BINDIR=\"/Users/Shared/OpenSource/libclang/bin\" -DCLANG_INCLUDE_DIR=\"/Users/Shared/OpenSource/libclang/lib/clang/11.0.0/include\" -DCLANG_VERSION=\"11.0.0\" -DClangRefactoring_EXPORTS -DHAVE_FDATASYNC -DHAVE_ISNAN -DHAVE_MALLOC_USABLE_SIZE -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_JAVA_STYLE_ITERATORS -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../Resources\" -DRELATIVE_DOC_PATH=\"../Resources/doc\" -DRELATIVE_LIBEXEC_PATH=\"../Resources/libexec\" -DRELATIVE_PLUGIN_PATH=\"../PlugIns\" -DSQLITE_CORE -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_MMAP_SIZE=268435456 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DQS=0 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_NULL_TRIM -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_MAX_WORKER_THREADS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_EXPLAIN -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_UTF16 -DSQLITE_TEMP_STORE=2 -DSQLITE_THREADSAFE=2 -DSQLITE_USE_ALLOCA -Isrc/plugins/clangrefactoring -I/Users/Shared/OpenSource/qt-creator/src/plugins/clangrefactoring -Isrc/plugins/clangrefactoring/ClangRefactoring_autogen/include -Isrc -I/Users/Shared/OpenSource/qt-creator/src/plugins -I/Users/Shared/OpenSource/qt-creator/src/libs/clangsupport -I/Users/Shared/OpenSource/qt-creator/src/libs -I/Users/Shared/OpenSource/qt-creator/src/libs/sqlite -I/Users/Shared/OpenSource/qt-creator/src/libs/sqlite/../3rdparty/sqlite -I/Users/Shared/OpenSource/qt-creator/src/libs/3rdparty -I/Users/Shared/OpenSource/qt-creator/src/libs/3rdparty/syntax-highlighting/src/lib -I/Users/Shared/OpenSource/qt-creator/src/libs/3rdparty/syntax-highlighting/autogenerated/src/lib -iframework /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/lib -isystem /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/lib/QtConcurrent.framework/Headers -isystem /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/lib/QtCore.framework/Headers -isystem /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/./mkspecs/macx-clang -isystem /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/lib/QtNetwork.framework/Headers -isystem /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/lib/QtWidgets.framework/Headers -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -Winvalid-pch -Xclang -include-pch -Xclang /Users/Shared/OpenSource/qt-creator-builds/Release/src/libs/3rdparty/syntax-highlighting/CMakeFiles/QtCreatorPchGui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /Users/Shared/OpenSource/qt-creator-builds/Release/src/libs/3rdparty/syntax-highlighting/CMakeFiles/QtCreatorPchGui.dir/cmake_pch.hxx -MD -MT src/plugins/clangrefactoring/CMakeFiles/ClangRefactoring.dir/qtcreatorsearchhandle.cpp.o -MF src/plugins/clangrefactoring/CMakeFiles/ClangRefactoring.dir/qtcreatorsearchhandle.cpp.o.d -o src/plugins/clangrefactoring/CMakeFiles/ClangRefactoring.dir/qtcreatorsearchhandle.cpp.o -c /Users/Shared/OpenSource/qt-creator/src/plugins/clangrefactoring/qtcreatorsearchhandle.cpp
> /Users/Shared/OpenSource/qt-creator/src/plugins/clangrefactoring/qtcreatorsearchhandle.cpp:45:39: error: too many arguments to function call, expected single argument 'item', have 3 arguments
> searchResult->addResult(fileName, lineText, textRange);
> ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
> /Users/Shared/OpenSource/qt-creator/src/plugins/coreplugin/find/searchresultwindow.h:79:5: note: 'addResult' declared here
> void addResult(const SearchResultItem &item);
> ^
> 1 error generated.
> [884/2446] Building CXX object src/plugins/clangrefactoring/CMakeFiles/ClangRefactoring.dir/clangrefactoringplugin.cpp.o
> ninja: build stopped: subcommand failed.
>
>
> My configuration is macOS 10.15.7, Xcode 12.4, Qt 5.14.2 (using prebuilt from download.qt.io) and clang prebuilt libs version 11.
>
>
> This is the general set of commands that I follow:
>
> cd /Users/Shared/OpenSource
> curl "http://qt.mirror.constant.com/development_releases/prebuilt/libclang/libclang-release_100-based-mac.7z" --output libclang-release_110-based-mac.7z
> open libclang-release_110-based-mac.7z
> export BRANCH=4.15
> git clone -b $BRANCH ssh://git@github.com/qt-creator/qt-creator
> mkdir -p qt-creator-builds/Relase
> cd qt-creator-builds/Relase
> export PATH=/Users/Shared/IMF_SDK/Qt5.14.2/5.14.2/clang_64/bin:$PATH
> cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/Users/mjackson/Applications/QtCreator-$BRANCH -DBUILD_PLUGIN_CLANGREFACTORING=ON -DBUILD_PLUGIN_CLANGPCHMANAGER=ON -DCMAKE_PREFIX_PATH=/Users/Shared/OpenSource/libclang ../../qt-creator
> ninja
> ninja install
>
>
> since I am not seeing any traffic on the list I'll assume that I have missed an update or something?
> --
> Michael A. Jackson 400 S. Pioneer Blvd
> Owner, President Springboro, Ohio 45066
> BlueQuartz Software, LLC EMail: mike.jackson at bluequartz.net
> Voice: 937-790-1601 Web: http://www.bluequartz.net
> Fax: 937-746-0783
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer
The Qt Company GmbH
Erich-Thilo-Straße 10
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list