twistedfall / opencv-rust

Rust bindings for OpenCV 3 & 4
MIT License
1.86k stars 144 forks source link

vcpkg install of dependencies takes >100gigs for me #567

Closed anandijain closed 2 months ago

anandijain commented 2 months ago

this isn't so much of a problem with the repo as it is with vcpkg, but i wanted to notify that in my case (win11), trying to vcpkg the dependencies (opencv4 and llvm) ended up failing and eating my disk until empty.

so i would recommend against that method, i am going to try chocolatey instead.

image

thank you for the bindings

anandijain commented 2 months ago

just realized choco needs llvm too, any way to install the dependencies that takes less space?

twistedfall commented 2 months ago

In CI I install llvm from choco even when testing OpenCV from vcpkg. Also I only build release libs. That cuts down the compilation time and size considerably. There is also a cleanup step that frees up space (at the cost of increasing compilation time for reinstalls). You can check that in the CI installation script: https://github.com/twistedfall/opencv-rust/blob/master/ci/install-windows-vcpkg.sh

twistedfall commented 2 months ago

I hope that helped! I'm going to close this issue as there is nothing actionable from my side.