Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26727

Source configure fails using llvm and vs2022

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 5.0.3
    • Building Qt Creator
    • None
    • i7 1185 G7
    • Windows
    • e9f3f8cc64 (qt-creator/qt-creator/master) e9f3f8cc64 (qt-creator/qt-creator/qmlprojectstorage)

    Description

      I follow this guide for Windows: https://github.com/qt-creator/qt-creator

      • built llvm in release using cmake 3.22.0 and ninja 1.10.2
      • Python 3.10.0
      • installed windows sdk debug tools
      • Qt 5.15.2 built from source

      When configuring according to your guide:

      cmake -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=D:\qt\qt5-5.15.2install;D:\dep\llvm\llvm_install" D:\qt\qt-creator\qt-creator_src

      I get an Error. According to cmakeerror.log.

      something with pthread.h . I think this is relevant for QWebEngine, but actually I dont have QWebEngine built.
       CmakeError.log

      Determining if the include file pthread.h exists failed with the following output:
      Change Dir: D:/qt/qt-creator/qt-creator_build/CMakeFiles/CMakeTmp
      
      Run Build Command(s):D:/dep/ninja-win/ninja.exe cmTC_a84f6 && [1/2] Building C object CMakeFiles\cmTC_a84f6.dir\CheckIncludeFile.c.obj
      
      FAILED: CMakeFiles/cmTC_a84f6.dir/CheckIncludeFile.c.obj 
      
      "D:\Programme\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\Hostx64\x64\cl.exe"  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_a84f6.dir\CheckIncludeFile.c.obj /FdCMakeFiles\cmTC_a84f6.dir\ /FS -c D:\qt\qt-creator\qt-creator_build\CMakeFiles\CMakeTmp\CheckIncludeFile.c
      
      D:\qt\qt-creator\qt-creator_build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
      ninja: build stopped: subcommand failed.
      

      configure output

      D:\qt\qt-creator\qt-creator_build>cmake -DCMAKE_BUILD_TYPE=Release -G Ninja "-DCMAKE_PREFIX_PATH=D:\qt\qt5-5.15.2install;D:\dep\llvm\llvm_install" D:\qt\qt-creator\qt-creator_src -DCMAKE_INSTALL_PREFIX=D:\qt\qt-creator\qt-creator_install
      CMake Error at cmake/CreatePythonXY.cmake:70 (file):
       file must be called with at least two arguments.
      Call Stack (most recent call first):
       src/libs/qtcreatorcdbext/CMakeLists.txt:113 (create_python_xy)
      
      -- Could NOT find elfutils (missing: ELFUTILS_INCLUDE_DIR ELFUTILS_LIB_dw ELFUTILS_LIB_elf)
      -- PerfParser is disabled. Set ELFUTILS_INSTALL_DIR to enable it.
      -- The following packages have not been found:
      
      KF5SyntaxHighlighting
       * litehtml
       * Qt5SvgWidgets
       * Qt5WebEngineWidgets
       * Qt5Quick3DParticles
       * elfutils, a collection of utilities and libraries to read, create and modify ELF binary files, <https://sourceware.org/elfutils/>
      -- The following features have been disabled:
      * Build documentation
       * Build online documentation
       * Build tests
       * Build with sanitize, SANITIZE_FLAGS=''
       * Build with Crashpad
       * Library Minitrace
       * Build Qbs
       * Native WebKit help viewer, with CONDITION FWWebKit AND FWAppKit AND Qt5_VERSION VERSION_LESS 6.0.0
       * QtWebEngine help viewer, with CONDITION BUILD_HELPVIEWERBACKEND_QTWEBENGINE AND TARGET Qt5::WebEngineWidgets
       * Qt Quick 3D particles, with CONDITION TARGET Qt5::Quick3DParticles
       * multilanguage-support in qml2puppet, with CONDITION TARGET QtCreator::multilanguage-support
       * Include developer documentation
      

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            pettaa Peter Tuppatsch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes