Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build libclang with rtti for Lupdate clang-based c++ parser and QDoc
Forum Updated to NodeBB v4.3 + New Features

How to build libclang with rtti for Lupdate clang-based c++ parser and QDoc

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 160 Views 1 Watching
  • 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 last edited by
    #1

    Currently libclang from official development_release does not have rtti enabled. I want to build libclang with rtti, and keep it work with QDoc.
    My build environment: Windows 11, llvm-mingw 18.1.8.
    I'm using the following cmake command for libclang 18.1.8:

    cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RTTI=1 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX="C:/libclang1818-llvm" -DCMAKE_CL_64=1 -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"
    

    And I got libclang.dll.a not libclang.a. But I built Qt successfully.
    Is this OK or need some extra parameters? What's the official parameter?

    1 Reply Last reply
    0

    • Login

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