Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1556

Standalone build on macOS fails due to CMake invocation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.3
    • Fix Version/s: 6.1
    • Component/s: Shiboken
    • Labels:
      None
    • Environment:
      macOS 10.15.7
      CMake 3.20.1
      pyside-setup 5.15.3 (from March 24th 2021)
    • Platform/s:
      macOS
    • Commits:
      58ac9b4ca4e67db1480c03f3fc84948d2dcb793f (pyside/pyside-setup/dev) 25d26714d8309134e0c73dbe9b7b72f107eedce3 (pyside/pyside-setup/6.1) 4205f6b65e10ad0707fc8f667f7b0f1349a28c93 (pyside/pyside-setup/6.1.0)

      Description

      When building Shiboken 2 as standalone build on macOS, he setup script executes prepare_standalone_clang from main.py. As part of this function, CMake is invoked to retrieve the path to libclang by executing:

      log.info('Finding path to the libclang shared library.')
      cmake_cmd = [
           OPTION["CMAKE"],
           "-L",         # Lists variables
           "-N",         # Just inspects the cache (faster)
           "--build",    # Specifies the build dir
           self.shiboken_build_dir
       ]
       out = run_process_output(cmake_cmd)
      

      However, using --build in this fashion results in an error message from CMake:

      CMake Error: Unknown argument --build
      CMake Error: Run 'cmake --help' for all supported options.
      

      Apparently, the correct flag to use is -B instead of --build.

        Attachments

        For Gerrit Dashboard: PYSIDE-1556
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            snkauoe Sebastian Kaupe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes