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. QDoc and lupdate will not be compiled
Forum Updated to NodeBB v4.3 + New Features

QDoc and lupdate will not be compiled

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.5k 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.
  • D Offline
    D Offline
    dalishi
    wrote on last edited by dalishi
    #1

    When build Qt6 on Ubuntu 20 as static from source, configure says QDoc and lupdate will not be compiled because llvm or clang cannot be located. I'm sure the llvm and clang libs have been installed from apt install libclang-dev llvm. I also tried to set the CMAKE_PREFIX_PATH to /usr/lib/llvm-10, it still does not work. Anyone have encountered this issue?

    WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
    Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
    On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
    On macOS, you can use Homebrew's llvm package.
    You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.
    WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.
    You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.
    
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check the configure logs to see what happens with the clang detection ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you check the configure logs to see what happens with the clang detection ?

        D Offline
        D Offline
        dalishi
        wrote on last edited by
        #3

        Hi @SGaist I found some info in the log. Am I supposed to set Clang_DIR?

        -- Could NOT find Clang (missing: Clang_DIR)
        -- Could NOT find WrapLibClang (missing: WrapLibClang_FOUND) (Required is at least version "8")
        -- Running syncqt for module: 'QtTools' 
        -- Could NOT find Clang (missing: Clang_DIR)
        -- Could NOT find WrapLibClang (missing: WrapLibClang_FOUND) (Required is at least version "8")
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you do the clang installation prior to the configure call or after ?

          If after, do a new configure from a clean state.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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