2

我在 Ubuntu 18.04 上构建 OpenCV 4.1 作为 deb 包。建库成功后。我打电话make package并收到以下错误:

CPack: Create package CMake Error at /usr/share/cmake-3.10/Modules/CPackDeb.cmake:622 (message): CPackDeb: file utility is not available. CPACK_DEBIAN_PACKAGE_SHLIBDEPS and CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS options are not available. Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/CPackDeb.cmake:1119 (cpack_deb_prepare_package_vars)

有人对如何解决它有任何想法吗?

4

1 回答 1

7

只需要安装file包:apt install file

于 2019-11-07T20:08:00.567 回答