@GeneRisi There are some various scripts around that people have tried to build Slicer from source to build a ARM64 variant, but nothing official yet such as Slicer preview build of such a version.
The below issue is still in progress and various Slicer developers have been actively working on a long chain of dependency updates including Qt5 → Qt6 that is part of bringing in ARM64 support across all the various libraries that Slicer uses. It is currently being worked on and I expect it to continue for a month or two.
opened 05:46PM - 12 Oct 21 UTC
Type: Bug
Domain: build-system
## Steps to reproduce
I followed all the instructions from the [docs](https:/… /slicer.readthedocs.io/en/latest/developer_guide/build_instructions/macos.html#prerequisites) to build slicer from source.
Build halts with the following error while trying to build DCMTK:
```
make[2]: *** [DCMTK-prefix/src/DCMTK-stamp/DCMTK-configure] Error 1
make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2
-- OpenSSL: Errors detected - See below.
ld: warning: double slash removed from -install_name (/Users/kliron/opt/slicer/OpenSSL//libcrypto.1.1.dylib)
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Users/kliron/opt/slicer/zlib-install/lib/libz.a, building for macOS-i386 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/libSystem.tbd (3 slices)
Undefined symbols for architecture i386:
"__DefaultRuneLocale", referenced from:
_CONF_parse_list in conf_mod.o
"___bzero", referenced from:
_ASN1_BIT_STRING_set_bit in a_bitstr.o
_asn1_item_embed_new in tasn_new.o
_addr_strings in b_addr.o
_mem_ctrl in bss_mem.o
_BLAKE2b_Final in blake2b.o
_BLAKE2s_Final in blake2s.o
_bn_div_fixed_top in bn_div.o
...
[...an extensive output of a lot more missing symbols...]
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libcrypto.dylib] Error 1
make[3]: *** [build_libs] Error 2
CMake Error at /Users/kliron/Projects/slicer/CMake/ExternalProjectForNonCMakeProject.cmake:104 (message):
OpenSSL: build step failed with exit code '2'.
```
## Expected behavior
A successful build.
## Environment
- Slicer version: latest source tree
- Operating system: MacOS Big Sur 11.6
Has anyone been able to compile slicer from source on a M1 Mac? How do I bypass the missing i386 openssl library?