opencv: use system protobuf compiler
This commit is contained in:
parent
965e5c24d6
commit
81acfbfb9f
1 changed files with 7 additions and 0 deletions
|
@ -214,6 +214,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
cmakeFlags = [
|
||||
"-DWITH_OPENMP=ON"
|
||||
"-DBUILD_PROTOBUF=OFF"
|
||||
"-DPROTOBUF_UPDATE_FILES=ON"
|
||||
(opencvFlag "IPP" enableIpp)
|
||||
(opencvFlag "TIFF" enableTIFF)
|
||||
(opencvFlag "JASPER" enableJPEG2K)
|
||||
|
@ -231,6 +233,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Workaround for: https://github.com/opencv/opencv/issues/10474
|
||||
preBuild = ''
|
||||
make opencv_dnn
|
||||
'';
|
||||
|
||||
postBuild = lib.optionalString enableDocs ''
|
||||
make doxygen
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue