mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: opencv: Fix building on non-x86_64 systems.
* gnu/packages/image-processing.scm (opencv)[arguments]: Add configure-flag to disable carotene. Don't require x86_64 CPU except on x86_64. Fix typo.
This commit is contained in:
parent
c5c42f0a9c
commit
6949f45c10
1 changed files with 7 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
||||
;;; Copyright © 2018 Lprndn <guix@lprndn.info>
|
||||
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -235,6 +236,7 @@ (define-public opencv
|
|||
`(#:configure-flags
|
||||
(list "-DWITH_IPP=OFF"
|
||||
"-DWITH_ITT=OFF"
|
||||
"-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64
|
||||
|
||||
;; CPU-Features:
|
||||
;; See cmake/OpenCVCompilerOptimizations.cmake
|
||||
|
@ -245,10 +247,13 @@ (define-public opencv
|
|||
"-DCPU_BASELINE=SSE2, NEON"
|
||||
|
||||
"-DCPU_DISPATCH=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2"
|
||||
"-DCPU_DISPATCH_REQUIRE=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2"
|
||||
,@(if (string-prefix? "x86_64" (or (%current-target-system)
|
||||
(%current-system)))
|
||||
'("-DCPU_DISPATCH_REQUIRE=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2")
|
||||
'())
|
||||
|
||||
"-DBUILD_PERF_TESTS=OFF"
|
||||
"-D BUILD_TESTS=ON"
|
||||
"-DBUILD_TESTS=ON"
|
||||
|
||||
(string-append "-DOPENCV_EXTRA_MODULES_PATH="
|
||||
"/tmp/guix-build-opencv-" ,version ".drv-0"
|
||||
|
|
Loading…
Reference in a new issue