-
-
Notifications
You must be signed in to change notification settings - Fork 381
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 failures on Windows for conda-forge package #1547
Comments
Thanks for working on this. The only Windows builds I do are via the Actions workflow, so unless anyone else can help, you might have to go ahead without Windows. |
I noticed while working on ANTsPy that the Windows builds there all turn shared libraries off (eg ANTsX/ANTsPy#345). I'm guessing that Conda needs shared libs turned on, but maybe this context will help narrow the search for solutions. |
Further update: Superbuild works on Windows with shared libs. So ANTs can build on Windows with shared libs on, so maybe the error is specific to using system ITK on Windows. https://github.com/cookpa/ANTs/actions/runs/5291048324 Edit to add runner info: CMake 3.26.4 |
Thanks for all your efforts on this, @ghisvail ! |
ANTs is now available on conda-forge 🥳 I am trying my best to enable builds for Windows. |
Awesome. Thanks for this. |
Still no luck with Windows on the
|
It is a mystery. Are you sure that the ITK build you are linking against was compiled with the same settings? I read that incompatible compilers can cause this error. |
I just checked, both are compiled with the same compiler ( |
I found an example of the same problem: https://discourse.itk.org/t/link-error-on-declaring-metrics-in-two-different-classes/2600 It seems like might be solvable on the ANTs side by resolving the duplicate imports, but would probably involve a lot of work. I guess other platform compilers are tolerant of these conflicts somehow. |
When did the error occur?
[ ] CMake configuration (cmake / ccmake)
[x] Compilation (make)
[ ] Installation (make install)
Build environment
ANTs version
Version 2.4.4
Build configuration and logs
https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/717445/logs/25
Additional context
I have resumed my effort for providing a Conda package for ANTs via conda-forge. It builds fine on Linux and macOS but fails on Windows with a linking error.
I would not mind skipping the Windows builds, but since you all made the efforts to provide Windows binaries lately, I was hopeful we could make it happen too for Conda.
The text was updated successfully, but these errors were encountered: