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. libclang debug libs are missing
Forum Updated to NodeBB v4.3 + New Features

libclang debug libs are missing

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 345 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.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by Cobra91151
    #1

    Hello!

    I would like to build Qt 6 - debug and release mode for Visual Studio 2019 compiler. From the docs: https://wiki.qt.io/Building_Qt_6_from_Git, it requires the libclang libraries, which can be found here: https://download.qt.io/development_releases/prebuilt/libclang/, but it only available for release mode build. Where I can find the libclang source code or libclang prebuilt libs for debug mode? Also, there are a lot of clang libs available here: https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.6, but I am no sure which are suitable for Qt 6? Thank you.

    1 Reply Last reply
    0
    • Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #2

      Hello!

      I have built LLVM and Clang successfully. Here are my instructions:

      1. Download llvm-project-llvmorg-15.0.6.zip from https://github.com/llvm/llvm-project
      2. Use this command to build LLVM and Clang: cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE="Debug" -DLLVM_USE_CRT_DEBUG=MDd -DLLVM_ENABLE_PROJECTS="clang" -DLIBCLANG_BUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX="C:\\LLVM\\msvc2019\\x64\\debug" -S C:\\llvm-project-llvmorg-15.0.6\\llvm
        cd build
        cmake --build .
        cmake --install .
        The same will work for Release type as well just change the -DCMAKE_BUILD_TYPE="Debug" and -DLLVM_USE_CRT_DEBUG=MDd to -DCMAKE_BUILD_TYPE="Release" and -DLLVM_USE_CRT_DEBUG=MD. The issue is resolved. Thank you.
      1 Reply Last reply
      1

      • Login

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