-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build macos arm64 wheels #7
Conversation
Similarly to the report from Sept 2022, the error is related to a failure to execute
|
9d7226e
to
d83704f
Compare
The VTK compile tools are being built successfully on macOS host (Intel) when we are cross-compiling the arm64 wheels: That said, downloading VTK in a sub-directory of the source tree is having unintended side effects:
The VTK modules are discovered along side the one from |
2c499e6
to
d2c5449
Compare
d2c5449
to
6c48899
Compare
@Korijn arm64 wheels can now be built 🎉 Note This particular wheel can be downloaded at https://github.com/ClinicalGraphics/VTKU3DExporter/actions/runs/6030972183?pr=7 Immediate Next steps:
Footnotes |
List of changes: $ git shortlog c1906cf12..37ade3c26 --no-merges Jean-Christophe Fillion-Robin (3): Remove redundant BUILD_TESTING option COMP: Support configuring install directories Add support for finding VTKCompileTools and passing cross-compilation variables (#7)
List of changes: $ git shortlog c1906cf12..37ade3c26 --no-merges Jean-Christophe Fillion-Robin (3): Remove redundant BUILD_TESTING option COMP: Support configuring install directories Add support for finding VTKCompileTools and passing cross-compilation variables (#7)
Note this is a general fix and it does not mean that the CMAKE_CROSSCOMPILING and CMAKE_CROSSCOMPILING_EMULATOR will be passed down.
Update setup.py so that these variables are passed: - CMAKE_CROSSCOMPILING - CMAKE_SYSTEM_NAME - VTKCompileTools_DIR Add support for building VTKCompileTools for x86_64 (the one provided in the wheel sdk are for arm64): - Update setup.py adding "auto_build_vtk_compile_tools()" - Add BUILDVTKCompileTools CMake module and associated test ensuring the tool can be executed on the GitHub runner
3d23b0b
to
511670e
Compare
After downloading the artifacts1 and installing on a macOS M1 workstation, the dependencies are successfully installed:
Footnotes |
After:
I was able to run Prerequisites
Tests
|
Closes #17
To provide some context, this commit reverts the following:
Source: Kitware/LookingGlassVTKModule@3a6888a from Sept 2022
Associated GitHub issues related to official support that would avoid relying on cross-compilation: