mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05: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
4ca80a2b95
commit
2759d4ca74
1 changed files with 8 additions and 0 deletions
|
@ -358,6 +358,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