Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
403 stars 75 forks source link

dicom-transfer-syntax-registry does not build on Windows by default #432

Closed Enet4 closed 3 months ago

Enet4 commented 8 months ago

It has come to my attention that the openjp2 crate is not Windows-ready, meaning that the openjp2 Cargo feature in dicom-transfer-syntax-registry should not have been selected by default, and that JPEG 2000 support on Windows currently requires linking with the reference OpenJPEG implementation.

The known mitigation for the time being is to disable default features and selectively add the other ones. To build all the project's binaries, for example:

cargo build --release --bins --no-default-features --features=cli,rle,jpeg,backtraces,rayon,simd

Or with OpenJPEG reference software:

cargo build --release --bins --no-default-features --features=cli,rle,jpeg,backtraces,openjpeg-sys,openjpeg-sys-threads,rayon,simd

(It is a bit more complicated when selecting a specific package via -p)

Moving forward:

Enet4 commented 3 months ago

Resolved with #449