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

build shiboken generator when cross-compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4.0
    • Build System
    • None
    • All

    Description

       

      sometimes when cross-compiling the python interpreter cannot be run, but python libs are still found

      this results in the shiboken6 executable being skipped

      instead I propose the following:

      diff --git a/sources/shiboken6/generator/CMakeLists.txt b/sources/shiboken6/generator/CMakeLists.txt 
      index bac998ae5..7895cb623 100644 
      --- a/sources/shiboken6/generator/CMakeLists.txt 
      +++ b/sources/shiboken6/generator/CMakeLists.txt 
      @@ -3,7 +3,7 @@ set(package_name "Shiboken6Tools") 
      
       set(CMAKE_AUTOMOC ON) 
      
      -if(NOT (Qt${QT_MAJOR_VERSION}Core_FOUND AND PYTHONINTERP_FOUND)) 
      +if(NOT (Qt${QT_MAJOR_VERSION}Core_FOUND AND PYTHONLIBS_FOUND)) 
           message(WARNING "Some dependencies were not found: shiboken6 generator compilation disabled!") 
           return() 
       endif()

      this allows to provide the shiboken6 executable on conda-forge

       

      Attachments

        Issue Links

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              jschueller Julien Schueller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: