Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. 5.15.10 build failed with qdoc
Forum Update on Monday, May 27th 2025

5.15.10 build failed with qdoc

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qdoc5.15.10msvc2022
5 Posts 3 Posters 602 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alxi11
    wrote on 23 Jul 2023, 00:14 last edited by
    #1

    hi there,
    I'm trying to build 5.15.10 from source with msvc2022, but while building qdoc, I met these error:

    D:\Develop_Programs\qt\src\qt-everywhere-src-5.15.10\qttools\src\qdoc>jom
    
    jom 1.1.3 - empower your cores
    
            D:\Qt\Tools\jom_1_1_3\jom.exe -f Makefile.Release
            link /NOLOGO /DYNAMICBASE /NXCOMPAT /STACK:4194304 /OPT:REF /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /VERSION:5.15 /MANIFEST:embed /OUT:..\..\bin\qdoc.exe @C:\Users\Alxi11\AppData\Local\Temp\qdoc.exe.20368.31.jom
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCString,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeString,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_createIndex,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeIndex,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getFileName,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Location_isFromMainFile,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Range_isNull,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getPresumedLocation,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getFileLocation,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getRangeStart,函数 "class QString __cdecl getSpelling(struct CXSourceRange)" (?getSpelling@@YA?AVQString@@UCXSourceRange@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getRangeEnd,函数 "class QString __cdecl getSpelling(struct CXSourceRange)" (?getSpelling@@YA?AVQString@@UCXSourceRange@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getNumDiagnostics,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getDiagnostic,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_formatDiagnostic,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_parseTranslationUnit2,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_defaultSaveOptions,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_saveTranslationUnit,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeTranslationUnit,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTranslationUnitCursor,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_equalCursors,函数 "private: class Aggregate * __cdecl ClangVisitor::getSemanticParent(struct CXCursor)" (?getSemanticParent@ClangVisitor@@AEAAPEAVAggregate@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorKind,函数 "private: static enum CXChildVisitResult __cdecl <lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isDeclaration,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isExpression,函数 "private: static enum CXChildVisitResult __cdecl <lambda_da8868631e66c9fdf44a94c6d755c3c1>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_da8868631e66c9fdf44a94c6d755c3c1>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中 引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isInvalid,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isTranslationUnit,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorSemanticParent,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorLexicalParent,函数 "private: class Aggregate * __cdecl ClangVisitor::getSemanticParent(struct CXCursor)" (?getSemanticParent@ClangVisitor@@AEAAPEAVAggregate@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getOverriddenCursors,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeOverriddenCursors,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursor,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorLocation,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorExtent,函数 "private: static enum CXChildVisitResult __cdecl <lambda_da8868631e66c9fdf44a94c6d755c3c1>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_da8868631e66c9fdf44a94c6d755c3c1>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorType,函数 "private: static enum CXChildVisitResult __cdecl <lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTypeSpelling,函数 "public: __cdecl <lambda_c633672493f513285340a4600046b956>::operator()(struct CXCursor)const " (??R<lambda_c633672493f513285340a4600046b956>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getEnumConstantDeclValue,函数 "public: __cdecl <lambda_86f78558a15ea3f1cec682a0d6e05b14>::operator()(struct CXCursor)const " (??R<lambda_86f78558a15ea3f1cec682a0d6e05b14>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getPointeeType,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTypeDeclaration,函数 "private: static enum CXChildVisitResult __cdecl <lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getResultType,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getNumArgTypes,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getArgType,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isFunctionTypeVariadic,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorResultType,函数 "class QString __cdecl functionName(struct CXCursor)" (?functionName@@YA?AVQString@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Type_getCXXRefQualifier,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCXXAccessSpecifier,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_visitChildren,函数 "bool __cdecl visitChildrenLambda<class <lambda_4b2d2c696e5066ae1948e8f210facbd8> >(struct CXCursor,class <lambda_4b2d2c696e5066ae1948e8f210facbd8> &&)" (??$visitChildrenLambda@V<lambda_4b2d2c696e5066ae1948e8f210facbd8>@@@@YA_NUCXCursor@@$$QEAV<lambda_4b2d2c696e5066ae1948e8f210facbd8>@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorSpelling,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorDisplayName,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isCursorDefinition,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Cursor_getCommentRange,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isPureVirtual,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isStatic,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isVirtual,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_EnumDecl_isScoped,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isConst,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTemplateCursorKind,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenKind,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenSpelling,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenLocation,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenExtent,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_tokenize,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeTokens,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
    ..\..\bin\qdoc.exe : fatal error LNK1120: 61 个无法解析的外部命令
    jom: D:\Develop_Programs\qt\src\qt-everywhere-src-5.15.10\qttools\src\qdoc\Makefile.Release [..\..\bin\qdoc.exe] Error 1120
    jom: D:\Develop_Programs\qt\src\qt-everywhere-src-5.15.10\qttools\src\qdoc\Makefile [release] Error 2
    

    I'm using libclang from https://download.qt.io/development_releases/prebuilt/libclang/qt/libclang-release_15.0.0-based-windows-vs2019_64.7z

    What could be the reason?

    S 1 Reply Last reply 24 Jul 2023, 06:25
    0
    • A Alxi11
      25 Jul 2023, 03:14

      @sierdzio Indeed... But I wander how official release built this :P

      C Offline
      C Offline
      cristian-adam
      wrote on 25 Jul 2023, 16:13 last edited by
      #4

      Qt 5.15 uses libclang 6. See the provisioning script at https://code.qt.io/cgit/qt/qt5.git/tree/coin/provisioning/common/windows/libclang.ps1?h=5.15.2

      And at the end of the file you have:

      if ( $libclang_version -eq "60" ) {
          # This is a hacked static build of libclang which requires special
          # handling on the qdoc side.
          Set-EnvironmentVariable "QDOC_USE_STATIC_LIBCLANG" "1"
      }
      

      libclang 15 is used for Qt6.

      A 1 Reply Last reply 29 Jul 2023, 14:22
      3
      • A Alxi11
        23 Jul 2023, 00:14

        hi there,
        I'm trying to build 5.15.10 from source with msvc2022, but while building qdoc, I met these error:

        D:\Develop_Programs\qt\src\qt-everywhere-src-5.15.10\qttools\src\qdoc>jom
        
        jom 1.1.3 - empower your cores
        
                D:\Qt\Tools\jom_1_1_3\jom.exe -f Makefile.Release
                link /NOLOGO /DYNAMICBASE /NXCOMPAT /STACK:4194304 /OPT:REF /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /VERSION:5.15 /MANIFEST:embed /OUT:..\..\bin\qdoc.exe @C:\Users\Alxi11\AppData\Local\Temp\qdoc.exe.20368.31.jom
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCString,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeString,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_createIndex,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeIndex,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getFileName,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Location_isFromMainFile,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Range_isNull,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getPresumedLocation,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getFileLocation,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getRangeStart,函数 "class QString __cdecl getSpelling(struct CXSourceRange)" (?getSpelling@@YA?AVQString@@UCXSourceRange@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getRangeEnd,函数 "class QString __cdecl getSpelling(struct CXSourceRange)" (?getSpelling@@YA?AVQString@@UCXSourceRange@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getNumDiagnostics,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getDiagnostic,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_formatDiagnostic,函数 "public: virtual class Node * __cdecl ClangCodeParser::parseFnArg(class Location const &,class QString const &)" (?parseFnArg@ClangCodeParser@@UEAAPEAVNode@@AEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_parseTranslationUnit2,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_defaultSaveOptions,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_saveTranslationUnit,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeTranslationUnit,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTranslationUnitCursor,函数 "private: void __cdecl ClangCodeParser::buildPCH(void)" (?buildPCH@ClangCodeParser@@AEAAXXZ) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_equalCursors,函数 "private: class Aggregate * __cdecl ClangVisitor::getSemanticParent(struct CXCursor)" (?getSemanticParent@ClangVisitor@@AEAAPEAVAggregate@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorKind,函数 "private: static enum CXChildVisitResult __cdecl <lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isDeclaration,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isExpression,函数 "private: static enum CXChildVisitResult __cdecl <lambda_da8868631e66c9fdf44a94c6d755c3c1>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_da8868631e66c9fdf44a94c6d755c3c1>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中 引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isInvalid,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isTranslationUnit,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorSemanticParent,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorLexicalParent,函数 "private: class Aggregate * __cdecl ClangVisitor::getSemanticParent(struct CXCursor)" (?getSemanticParent@ClangVisitor@@AEAAPEAVAggregate@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getOverriddenCursors,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeOverriddenCursors,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursor,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorLocation,函数 "public: __cdecl <lambda_6f92e4bfdea711401b4830e6d8f748e4>::operator()(struct CXCursor)const " (??R<lambda_6f92e4bfdea711401b4830e6d8f748e4>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorExtent,函数 "private: static enum CXChildVisitResult __cdecl <lambda_da8868631e66c9fdf44a94c6d755c3c1>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_da8868631e66c9fdf44a94c6d755c3c1>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorType,函数 "private: static enum CXChildVisitResult __cdecl <lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTypeSpelling,函数 "public: __cdecl <lambda_c633672493f513285340a4600046b956>::operator()(struct CXCursor)const " (??R<lambda_c633672493f513285340a4600046b956>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getEnumConstantDeclValue,函数 "public: __cdecl <lambda_86f78558a15ea3f1cec682a0d6e05b14>::operator()(struct CXCursor)const " (??R<lambda_86f78558a15ea3f1cec682a0d6e05b14>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getPointeeType,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTypeDeclaration,函数 "private: static enum CXChildVisitResult __cdecl <lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>::<lambda_invoker_cdecl>(struct CXCursor,struct CXCursor,void *)" (?<lambda_invoker_cdecl>@<lambda_a12f89b5ae83cd61ddb2c2b29c9a4f16>@@CA?AW4CXChildVisitResult@@UCXCursor@@0PEAX@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getResultType,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getNumArgTypes,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getArgType,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isFunctionTypeVariadic,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorResultType,函数 "class QString __cdecl functionName(struct CXCursor)" (?functionName@@YA?AVQString@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Type_getCXXRefQualifier,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCXXAccessSpecifier,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_visitChildren,函数 "bool __cdecl visitChildrenLambda<class <lambda_4b2d2c696e5066ae1948e8f210facbd8> >(struct CXCursor,class <lambda_4b2d2c696e5066ae1948e8f210facbd8> &&)" (??$visitChildrenLambda@V<lambda_4b2d2c696e5066ae1948e8f210facbd8>@@@@YA_NUCXCursor@@$$QEAV<lambda_4b2d2c696e5066ae1948e8f210facbd8>@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorSpelling,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getCursorDisplayName,函数 "public: __cdecl <lambda_05bd0e885e04876c438fe23e22d27a1a>::operator()(struct CXCursor)const " (??R<lambda_05bd0e885e04876c438fe23e22d27a1a>@@QEBA@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_isCursorDefinition,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_Cursor_getCommentRange,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isPureVirtual,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isStatic,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isVirtual,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_EnumDecl_isScoped,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_CXXMethod_isConst,函数 "class Node * __cdecl findFunctionNodeForCursor(class QDocDatabase *,struct CXCursor)" (?findFunctionNodeForCursor@@YAPEAVNode@@PEAVQDocDatabase@@UCXCursor@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTemplateCursorKind,函数 "private: enum CXChildVisitResult __cdecl ClangVisitor::visitHeader(struct CXCursor,struct CXSourceLocation)" (?visitHeader@ClangVisitor@@AEAA?AW4CXChildVisitResult@@UCXCursor@@UCXSourceLocation@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenKind,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenSpelling,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenLocation,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_getTokenExtent,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_tokenize,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        clangcodeparser.obj : error LNK2019: 无法解析的外部符号 __imp_clang_disposeTokens,函数 "public: virtual void __cdecl ClangCodeParser::parseSourceFile(class Location const &,class QString const &)" (?parseSourceFile@ClangCodeParser@@UEAAXAEBVLocation@@AEBVQString@@@Z) 中引用了该符号
        ..\..\bin\qdoc.exe : fatal error LNK1120: 61 个无法解析的外部命令
        jom: D:\Develop_Programs\qt\src\qt-everywhere-src-5.15.10\qttools\src\qdoc\Makefile.Release [..\..\bin\qdoc.exe] Error 1120
        jom: D:\Develop_Programs\qt\src\qt-everywhere-src-5.15.10\qttools\src\qdoc\Makefile [release] Error 2
        

        I'm using libclang from https://download.qt.io/development_releases/prebuilt/libclang/qt/libclang-release_15.0.0-based-windows-vs2019_64.7z

        What could be the reason?

        S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 24 Jul 2023, 06:25 last edited by
        #2

        @Alxi11 Do you need qdoc? For most users it can safely be skipped. All Qt docs are available online, after all.

        (Z(:^

        A 1 Reply Last reply 25 Jul 2023, 03:14
        0
        • S sierdzio
          24 Jul 2023, 06:25

          @Alxi11 Do you need qdoc? For most users it can safely be skipped. All Qt docs are available online, after all.

          A Offline
          A Offline
          Alxi11
          wrote on 25 Jul 2023, 03:14 last edited by
          #3

          @sierdzio Indeed... But I wander how official release built this :P

          C 1 Reply Last reply 25 Jul 2023, 16:13
          0
          • A Alxi11
            25 Jul 2023, 03:14

            @sierdzio Indeed... But I wander how official release built this :P

            C Offline
            C Offline
            cristian-adam
            wrote on 25 Jul 2023, 16:13 last edited by
            #4

            Qt 5.15 uses libclang 6. See the provisioning script at https://code.qt.io/cgit/qt/qt5.git/tree/coin/provisioning/common/windows/libclang.ps1?h=5.15.2

            And at the end of the file you have:

            if ( $libclang_version -eq "60" ) {
                # This is a hacked static build of libclang which requires special
                # handling on the qdoc side.
                Set-EnvironmentVariable "QDOC_USE_STATIC_LIBCLANG" "1"
            }
            

            libclang 15 is used for Qt6.

            A 1 Reply Last reply 29 Jul 2023, 14:22
            3
            • A Alxi11 has marked this topic as solved on 29 Jul 2023, 14:21
            • C cristian-adam
              25 Jul 2023, 16:13

              Qt 5.15 uses libclang 6. See the provisioning script at https://code.qt.io/cgit/qt/qt5.git/tree/coin/provisioning/common/windows/libclang.ps1?h=5.15.2

              And at the end of the file you have:

              if ( $libclang_version -eq "60" ) {
                  # This is a hacked static build of libclang which requires special
                  # handling on the qdoc side.
                  Set-EnvironmentVariable "QDOC_USE_STATIC_LIBCLANG" "1"
              }
              

              libclang 15 is used for Qt6.

              A Offline
              A Offline
              Alxi11
              wrote on 29 Jul 2023, 14:22 last edited by
              #5

              @cristian-adam I changed to https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_60-windows-vs2015_64-clazy.7z and it worked! Thank you very much!

              1 Reply Last reply
              1

              4/5

              25 Jul 2023, 16:13

              • Login

              • Login or register to search.
              4 out of 5
              • First post
                4/5
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved