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

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.1, 5.15.15
    • 5.15.3
    • Shiboken
    • None
    • macOS 10.15.7
      CMake 3.20.1
      pyside-setup 5.15.3 (from March 24th 2021)
    • macOS
    • 58ac9b4ca4e67db1480c03f3fc84948d2dcb793f (pyside/pyside-setup/dev) 25d26714d8309134e0c73dbe9b7b72f107eedce3 (pyside/pyside-setup/6.1) 4205f6b65e10ad0707fc8f667f7b0f1349a28c93 (pyside/pyside-setup/6.1.0) 209d9ff229 (pyside/tqtc-pyside-setup/5.15)

    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

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              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