I am  trying to create a .deb package for openCV 3.2 for raspberry pi.My control file is:Source: opencvPriority: optionalMaintainer: xxx <xxx@xx.xx>Build-Depends: debhelper (>= 9), cmakeStandards-Version: 3.9.5Section: libsHomepage: <insert the upstream URL, if relevant>#Vcs-Git: git://anonscm.debian.org/collab-maint/opencv.git#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/opencv.git;a=summaryPackage: opencv-devSection: libdevelArchitecture: anyDepends: opencv (= ${binary:Version}), ${misc:Depends}Description: <insert up to 60 chars description> <insert long description, indented with spaces>Package: opencv1Architecture: anyDepends: ${shlibs:Depends}, ${misc:Depends}Description: <insert up to 60 chars description> <insert long description, indented with spaces>My opencv1.install is:usr/lib/lib*.so.*and my rules file is:#!/usr/bin/make -f# See debhelper(7) (uncomment to enable)# output every command that modifies files on the build system.DH_VERBOSE = 1export DH_OPTIONS=-v# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*DPKG_EXPORT_BUILDFLAGS = 1include /usr/share/dpkg/default.mk# see FEATURE AREAS in dpkg-buildflags(1)#export DEB_BUILD_MAINT_OPTIONS = hardening=+all# see ENVIRONMENT in dpkg-buildflags(1)# package maintainers to append CFLAGS#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic# package maintainers to append LDFLAGS#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed# main packaging script based on dh7 syntax%:    dh $@ --buildsystem=cmake # debmake generated override targets# This is example for Cmake (See http://bugs.debian.org/641051 )override_dh_auto_configure:    dh_auto_configure -- \    -D CMAKE_BUILD_TYPE=RELEASE \    -D INSTALL_PYTHON_EXAMPLES=ON \    -D BUILD_EXAMPLES=ON ..override_dh_auto_test:The problem is that when I execute the following command:dpkg-buildpackage -us -uc --source-option=--include-binaries --source-option=-isessionIt configures and builds opencv but when it tries to install, it outputs the following error:make[1]: Leaving directory '/home/pi/debianizator/opencv-3.2.0/obj-arm-linux-gnueabihf'        cd /home/pi/debianizator/opencv-3.2.0   dh_install -O--buildsystem=cmake        cp --reflink=auto -a debian/tmp/usr/include/opencv debian/opencv-dev//usr/include/        cp --reflink=auto -a debian/tmp/usr/include/opencv2 debian/opencv-dev//usr/include/dh_install: Cannot find (any matches for) usr/lib/lib*.a (tried in . and debian/tmp)dh_install: opencv-dev missing files: usr/lib/lib*.adh_install: Cannot find (any matches for) usr/share/pkgconfig/* (tried in . and debian/tmp)dh_install: opencv-dev missing files: usr/share/pkgconfig/*dh_install: missing files, abortingdebian/rules:23: recipe for target 'binary' failedmake: *** [binary] Error 2dpkg-buildpackage: fallo: fakeroot debian/rules binary devolvi un estado de salida de error 2It seems that doesn't find the static libraries, and in fact, if I list tmp/lib there aren't static libraries. This is the content of debian/tmp/liblibopencv_calib3d.so           libopencv_objdetect.so.3.2.0libopencv_calib3d.so.3.2       libopencv_photo.solibopencv_calib3d.so.3.2.0     libopencv_photo.so.3.2libopencv_core.so              libopencv_photo.so.3.2.0libopencv_core.so.3.2          libopencv_shape.solibopencv_core.so.3.2.0        libopencv_shape.so.3.2libopencv_features2d.so        libopencv_shape.so.3.2.0libopencv_features2d.so.3.2    libopencv_stitching.solibopencv_features2d.so.3.2.0  libopencv_stitching.so.3.2libopencv_flann.so             libopencv_stitching.so.3.2.0libopencv_flann.so.3.2         libopencv_superres.solibopencv_flann.so.3.2.0       libopencv_superres.so.3.2libopencv_highgui.so           libopencv_superres.so.3.2.0libopencv_highgui.so.3.2       libopencv_videoio.solibopencv_highgui.so.3.2.0     libopencv_videoio.so.3.2libopencv_imgcodecs.so         libopencv_videoio.so.3.2.0libopencv_imgcodecs.so.3.2     libopencv_video.solibopencv_imgcodecs.so.3.2.0   libopencv_video.so.3.2libopencv_imgproc.so           libopencv_video.so.3.2.0libopencv_imgproc.so.3.2       libopencv_videostab.solibopencv_imgproc.so.3.2.0     libopencv_videostab.so.3.2libopencv_ml.so                libopencv_videostab.so.3.2.0libopencv_ml.so.3.2            pkgconfiglibopencv_ml.so.3.2.0          python2.7libopencv_objdetect.so         python3.4libopencv_objdetect.so.3.2On the other hand I don't know why it tries to install static libraries because as I posted above the opencv1.install doesn't tell that static libraries must be installed.So how can I solve this error and generate a .deb?
dh_install cannot find usr/lib/lib*.a
debian;raspberry pi;raspbian;cmake;opencv
You need to edit debian/opencv-dev.install and remove references to non-existent files (at least usr/lib/lib*a. and usr/share/pkg-config/*, although the latter feels like a mistake).