opencv: use system protobuf compiler

This commit is contained in:
Bas van Dijk 2017-12-31 12:45:23 +01:00 committed by Orivej Desh
parent 965e5c24d6
commit 81acfbfb9f

View File

@ -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
'';