This is a simple example project for visionOS, aiming to provide working image rapresentation of DICOM files. There are a few steps needed to get this working, that require further explanation down below.
Caution
This project is not intended to be used in any medical production environment. It should be only used for R&D.
- visionOS 2.0+
- XCode 16+
- Patience and time to spare
This project uses the open source, industry standard library DCMTK. Pre-compiled binaries for visionOS are not available, so we'll need to compile our own. To do that, many dependencies of DCMTK also need to be compiled targeting visionOS.
Tip
This project includes the facility script setup-dependencies.sh
- From a terminal window, cd to Dependencies directory inside the repository root
- Clone DCMTK with this command
git clone https://github.com/DCMTK/dcmtk dcmtk-src
- Navigate to dcmtk-src/dcmdata/apps and edit CMakeLists.txt to remove all occurrences of dcm2pdf
Important
The last step is needed to disable the dcm2pdf module that cannot compile on visionOS, because it relies on unavailable system calls
- Run Dependencies/setup-dependencies.sh and wait for everything to compile, including DCMTK itself
- Manually add dmctk and zlib dependency folders to the XCode project
Important
Be sure to select the build target when adding files to the XCode project, otherwise the app won't have the necessary resources inside its bundle
Create a directory named DataSet located at repository root and copy all your .dcm files inside of it
Build the XCode project and enjoy!