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 Qt with clang under windows?
QtWS25 Last Chance

How to build Qt with clang under windows?

Scheduled Pinned Locked Moved Unsolved General and Desktop
clangbuilding qtqt 5.15
4 Posts 3 Posters 786 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.
  • C Offline
    C Offline
    Crazy Sage
    wrote on 16 Nov 2021, 15:58 last edited by
    #1

    Trying to build Qt with clang, using config line
    configure -debug-and-release -no-pch -nomake examples -nomake tests -skip qtwebengine -opensource -platform win32-clang-msvc
    But I'm getting following error: unable to read PCH file qmake_pch.pch: 'no such file or directory'
    fatal error: PCH file 'qmake_pch.pch' not found: module file not found
    What am I doing wrong?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Nov 2021, 18:36 last edited by
      #2

      Hi,

      Which version of Qt ?
      Which version of clang ?

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

      C 1 Reply Last reply 18 Nov 2021, 06:44
      0
      • S SGaist
        16 Nov 2021, 18:36

        Hi,

        Which version of Qt ?
        Which version of clang ?

        C Offline
        C Offline
        Crazy Sage
        wrote on 18 Nov 2021, 06:44 last edited by
        #3

        @SGaist Qt 5.15.2
        Clang 7.0.0

        C 1 Reply Last reply 18 Nov 2021, 15:45
        0
        • C Crazy Sage
          18 Nov 2021, 06:44

          @SGaist Qt 5.15.2
          Clang 7.0.0

          C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 18 Nov 2021, 15:45 last edited by
          #4

          @Crazy-Sage said in How to build Qt with clang under windows?:

          Clang 7.0.0

          And you're sure this ancient compiler supports all MSVC commands when you use clang-cl. What do you think you will gain when you compile Qt with clang-cl at all?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0

          4/4

          18 Nov 2021, 15:45

          • Login

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