Latest version fails to build for android
IsmailAlamKhan opened this issue · 5 comments
IsmailAlamKhan commented
Enet4 commented
IsmailAlamKhan commented
Hey I am kinda new to rust how can I use the version from your PR?
Enet4 commented
At your Cargo.toml:
[dependencies]
dicom = { git = "https://github.com/Enet4/dicom-rs", branch = "change/openjp2-opt" }
This also works when fetching individual crates.
IsmailAlamKhan commented
Thanks a lot for the responses, I still get the same issue. Here is my build command
rustup target add \
aarch64-linux-android \
armv7-linux-androideabi \
x86_64-linux-android \
i686-linux-android
# Build the android libraries in the jniLibs directory
cargo ndk -o $JNI_DIR \
--manifest-path ../Cargo.toml \
-t armeabi-v7a \
-t arm64-v8a \
-t x86 \
-t x86_64 \
build --release
and my environment is Apple Mac Mini M2 2023 MacOS Sonoma 14.2.1
IsmailAlamKhan commented
@Enet4 Thanks a lot! I was able to solve the issue with the PR by updating the dicom-pixeldata dependency, which was still on the official version. Here's the updated Cargo.toml. This might be helpful for someone else who encounters the same problem.
dicom = { git = "https://github.com/Enet4/dicom-rs", branch = "change/openjp2-opt" }
dicom-pixeldata = { git = "https://github.com/Enet4/dicom-rs", branch = "change/openjp2-opt", default-features = false, features = [
"rayon",
"openjpeg-sys",
"image",
] }