=== Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: false === Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg === Can't probe using: environment, continuing with other methods because: Some environment variables are missing === Probing OpenCV library using pkg_config === Can't probe using: pkg_config, continuing with other methods because: Could not run `"pkg-config" "--libs" "--cflags" "opencv4"` The pkg-config command could not be found.
次のコマンドを実行して、pkg-config をインストールする。
1
sudo apt-get install pkg-config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
you@DESKTOP-INFS1IG:~/rust-opencv-1$ sudo apt-get install pkg-config [sudo] password for you: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: pkg-config 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 48.2 kB of archives. After this operation, 134 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48.2 kB] Fetched 48.2 kB in 1s (40.3 kB/s) Selecting previously unselected package pkg-config. (Reading database ... 36286 files and directories currently installed.) Preparing to unpack .../pkg-config_0.29.2-1ubuntu3_amd64.deb ... Unpacking pkg-config (0.29.2-1ubuntu3) ... Setting up pkg-config (0.29.2-1ubuntu3) ... Processing triggers for man-db (2.10.2-1) ...