Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-126

Build Process Failing on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 1.3.0, 1.0.1
    • CMake
    • None
    • macOS

    Description

      I am experiencing an issue with the VS Code Qt extensions when building and running applications. My applications compile and run successfully in Qt Creator, but any project I attempt to build and run in VS Code fails, regardless of the Qt version or whether I use a pre-release (1.3.0 or release version (1.0.1) of the extension.

      Steps I have followed when building

      1. Open a Calqlatr demo in VS Code.
      2. Scan for kits
      3. Selected Qt-6.8.1-macos as kit (Tested also 6.7.2, 6.7.3 and 6.8.0)
      4. Select build using the CMake extension
      5. Attempt to run the application.

      Expected Behavior

      The application should build and run successfully in VS Code, as it does in Qt Creator.

      Actual Behavior

      The build process fails in VS Code with an error (CMake output attached below).

      Troubleshooting Steps Taken

      • Reinstalled the VS Code Qt extensions.
      • Reinstalled Dependent extensions (CMake, CMake Tools, C/C++)
      • Reset all configurations.
      • Installed different Qt versions to test compatibility.
      • Removed PATH environment variable from .local/share/CMakeTools/cmake-tools-kits.json
      • Used auto-setup.cmake file in argument generated by Qt Creator 
        -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=<PATH TO>/auto-setup.cmake
      • Tested different examples, projects, and empty projects generated by setup wizard in Qt Creator in different directories
      • Used find package to see if it could find Wrap OpenGL (it did) but 
        WrapOpenGL_FOUND is still FALSE. (See log)
        --debug-find-pkg=WrapOpenGL
      • Used find package to see if it could find Qt6GUI (it did) but 
        WrapOpenGL_FOUND is still FALSE. (See log)

      System Information

      • Operating System: macOS
      • Qt Versions Tested: 6.7.2, 6.7.3, 6.8.0, 6.8.1
      • VS Code Qt Extension Version: Tested with both current release (1.0.1) and pre-release versions (1.3.0)

      CMake Output Log attached.

      Attachments

        1. CMakeOutputLog.txt
          8 kB
        2. cmake-tools-kits.json
          3 kB
        3. find_package_qt6GUI_log.txt
          0.5 kB
        4. find_package_wrapopengl_log.txt
          0.5 kB
        5. SCR-20250117-jtib.png
          SCR-20250117-jtib.png
          20 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            orkun.tokdemir Orkun Tokdemir
            ashwalton Ashley Walton
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes