opencv3: don't download ippicv if not enabled #37765
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On aarch64 ipp is not available but the derivation still tries to download it
leading to an error that the platform is not supported.
There is already an option to enable ipp which is disabled by default.
So the sensitive thing to do is to only download the ippicv package if
the option is enabled.
This should make opencv3 build on aarch64.
Motivation for this change
Use
python3Packages.opencv3
on raspberry pi.Things done
I built
python3Packages.opencv3
andopencv3
on my x86_64 machine. But I was unable to build opencv3 on my RaspberryPi 3. It always produces a compile segmentation fault, I assume due the lack of resources of the device.build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)