mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
gnu: opencv: Fix build with new version of jasper.
* gnu/packages/image-processing.scm (opencv): Fix build failure. [arguments]<#:phases>['fix-jasper]: New phase. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
fd52eec439
commit
9c2031f1bb
1 changed files with 32 additions and 24 deletions
|
@ -360,6 +360,14 @@ (define-public opencv
|
|||
"--strip-components=1"
|
||||
"-C" "../opencv-contrib")))
|
||||
|
||||
(add-after 'unpack 'fix-jasper
|
||||
(lambda _
|
||||
;; See <https://github.com/opencv/opencv/pull/17983>.
|
||||
(substitute* "modules/imgcodecs/src/grfmt_jpeg2000.cpp"
|
||||
(("&jas_matrix_get")
|
||||
"jas_matrix_getref"))
|
||||
#t))
|
||||
|
||||
(add-after 'set-paths 'add-ilmbase-include-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; OpenEXR propagates ilmbase, but its include files do not appear
|
||||
|
|
Loading…
Reference in a new issue