Closed tbirdso closed 2 years ago
@thewtex Do you have any thoughts on why finding Python development libraries could fail when building with Dockcross?
It looks like this is failing both at the ITKCLEsperanto level and in its dependency CLIc-prototype
. Note that the latter uses FindPython
but still fails when I change to FindPython3
in a development branch.
In both cases CMake is able to find the Python interpreter but fails to find other "Development" components (i.e. libraries, include directories). I have inspected the container and confirmed that development files accompany the interpreter as expected.
ITK and its external modules all seem to rely on development components and are not universally failing; see recent successful build in https://github.com/InsightSoftwareConsortium/ITKVkFFTBackend/runs/8234343023?check_suite_focus=true. However, in that log and others it is common to see the CMake config printout:
Could NOT find Python3 (missing: Python3_LIBRARIES Development Development.Embed) (found version "3.7.13")
In that case it seems like ITK uses a workaround to still set the Python3 executable; however, I have tried applying this in a development branch for ITKCLEsperanto + CLIc_prototype without success.
Identified source of failure:
Submitted a resolution in https://github.com/clEsperanto/CLIc_prototype/pull/100.
Failure to compile for Linux Python CI:
Notes
2022-09-02T18:53:20.4583802Z -- Generating done 2022-09-02T18:53:20.4685154Z CMake Warning: 2022-09-02T18:53:20.4685758Z Manually-specified variables were not used by the project: 2022-09-02T18:53:20.4685963Z 2022-09-02T18:53:20.4686046Z PYTHON_EXECUTABLE 2022-09-02T18:53:20.4686268Z PYTHON_INCLUDE_DIR 2022-09-02T18:53:20.4686498Z PYTHON_VERSION_STRING 2022-09-02T18:53:20.4686662Z