Ubuntu 未找到包-将libav添加到PKG_CONFIG_PATH环境变量

Ubuntu 未找到包-将libav添加到PKG_CONFIG_PATH环境变量,ubuntu,ffmpeg,ubuntu-18.04,libav,pkg-config,Ubuntu,Ffmpeg,Ubuntu 18.04,Libav,Pkg Config,我正在尝试构建Parrot SDK,在运行该命令时,由于未找到多个libav包变体,该命令不断失败。下面是错误消息。 user@TheMysteriousMachine:~/WORKING_DIRECTORY$ ./build.sh -p arsdk-native -t build-sdk -j [I] Starting task 'build-sdk' [I] In '/home/user/WORKING_DIRECTORY': AL

我正在尝试构建Parrot SDK,在运行该命令时,由于未找到多个libav包变体,该命令不断失败。下面是错误消息。 user@TheMysteriousMachine:~/WORKING_DIRECTORY$ ./build.sh -p arsdk-native -t build-sdk -j [I] Starting task 'build-sdk' [I] In '/home/user/WORKING_DIRECTORY': ALCHEMY_TARGET_CONFIG_DIR="/home/user/WORKING_DIRECTORY/products/arsdk /native/config" ALCHEMY_TARGET_OUT="/home/user/WORKING_DIRECTORY/out/arsdk-native" ALCHEMY_TARGET_PRODUCT="arsdk" ALCHEMY_TARGET_PRODUCT_VARIANT="native" ALCHEMY_TARGET_SCAN_ADD_DIRS=" /home/user/WORKING_DIRECTORY/packages" ALCHEMY_TARGET_SCAN_PRUNE_DIRS=" /home/user/WORKING_DIRECTORY" ALCHEMY_USE_COLORS="1" ALCHEMY_WORKSPACE_DIR="/home/user/WORKING_DIRECTORY" PARROT_BUILD_PROP_GROUP="drones" PARROT_BUILD_PROP_PRODUCT="arsdk" PARROT_BUILD_PROP_PROJECT="arsdk" PARROT_BUILD_PROP_UID="arsdk-native-20190316-1404-0.0.0" PARROT_BUILD_PROP_VARIANT="native" PARROT_BUILD_PROP_VERSION="0.0.0" /home/user/WORKING_DIRECTORY/build/alchemy/scripts/alchemake -j 8 all ---------------------------------------------------------------------- + ALCHEMY_WORKSPACE_DIR = /home/user /WORKING_DIRECTORY + TARGET_PRODUCT = arsdk + TARGET_PRODUCT_VARIANT = native + TARGET_OS = linux + TARGET_OS_FLAVOUR = native + TARGET_LIBC = native + TARGET_ARCH = x64 + TARGET_CPU = + TARGET_OUT = /home/user/WORKING_DIRECTORY/out/arsdk-native + TARGET_CONFIG_DIR = /home/user/WORKING_DIRECTORY /products/arsdk/native/config + TARGET_CC_PATH = /usr/bin/cc + TARGET_CC_VERSION = 7 ---------------------------------------------------------------------- Scanning /home/user/WORKING_DIRECTORY/packages for makefiles... Found 44 makefiles Prebuilt module ncurses marked as overriden Prebuilt module ncurses marked as overriden Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containing
libavcodec.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavcodec' found
    Package libavformat was not found in the pkg-config search path.
    Perhaps you should add the directory containing
libavformat.pc' to the PKG_CONFIG_PATH environment variable No package 'libavformat' found Package libswscale was not found in the pkg-config search path. Perhaps you should add the directory containing
libswscale.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libswscale' found
    Package libavutil was not found in the pkg-config search path.
    Perhaps you should add the directory containing
libavutil.pc' to the PKG_CONFIG_PATH environment variable No package 'libavutil' found Package libavcodec was not found in the pkg-config search path. Perhaps you should add the directory containing
libavcodec.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavcodec' found
    Package libavformat was not found in the pkg-config search path.
    Perhaps you should add the directory containing
libavformat.pc' to the PKG_CONFIG_PATH environment variable No package 'libavformat' found Package libswscale was not found in the pkg-config search path. Perhaps you should add the directory containing
libswscale.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libswscale' found
    Package libavutil was not found in the pkg-config search path.
    Perhaps you should add the directory containing
libavutil.pc' to the PKG_CONFIG_PATH environment variable No package 'libavutil' found Found 96 modules Computing modules dependencies... Checking modules dependencies... /home/user/WORKING_DIRECTORY/build/alchemy/main.mk:360: *** /home/user /WORKING_DIRECTORY/packages/libARDiscovery: module 'libARDiscovery' depends on unknown module 'avahi'. Stop. [E] Task 'build-sdk' failed (Command failed (returncode=2)) 据我所知,libav已经被ffmpeg所取代,但是构建应该仍然能够将包引用为libav。我尝试使用“export PKG_CONFIG_PATH=…”向PKG_CONFIG_PATH添加不同的路径,但没有成功。可能我没有添加正确的路径,我使用了“dpkg-L ffmpeg”来定位包。其输出为: user@TheMysteriousMachine:~$ dpkg -L ffmpeg /. /etc /etc/ffserver.conf /usr /usr/bin /usr/bin/ffmpeg /usr/bin/ffplay /usr/bin/ffprobe /usr/bin/ffserver /usr/bin/qt-faststart /usr/share /usr/share/doc /usr/share/doc/ffmpeg /usr/share/doc/ffmpeg/RELEASE_NOTES /usr/share/doc/ffmpeg/copyright /usr/share/ffmpeg /usr/share/ffmpeg/libvpx-1080p.ffpreset /usr/share/ffmpeg/libvpx-1080p50_60.ffpreset /usr/share/ffmpeg/libvpx-360p.ffpreset /usr/share/ffmpeg/libvpx-720p.ffpreset /usr/share/ffmpeg/libvpx-720p50_60.ffpreset /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/ffmpeg /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ffmpeg-all.1.gz /usr/share/man/man1/ffmpeg-bitstream-filters.1.gz /usr/share/man/man1/ffmpeg-codecs.1.gz /usr/share/man/man1/ffmpeg-devices.1.gz /usr/share/man/man1/ffmpeg-filters.1.gz /usr/share/man/man1/ffmpeg-formats.1.gz /usr/share/man/man1/ffmpeg-protocols.1.gz /usr/share/man/man1/ffmpeg-resampler.1.gz /usr/share/man/man1/ffmpeg-scaler.1.gz /usr/share/man/man1/ffmpeg-utils.1.gz /usr/share/man/man1/ffmpeg.1.gz /usr/share/man/man1/ffplay-all.1.gz /usr/share/man/man1/ffplay.1.gz /usr/share/man/man1/ffprobe-all.1.gz /usr/share/man/man1/ffprobe.1.gz /usr/share/man/man1/ffserver-all.1.gz /usr/share/man/man1/ffserver.1.gz /usr/share/man/man1/qt-faststart.1.gz /usr/share/doc/ffmpeg/changelog.Debian.gz user@TheMysteriousMachine:~$dpkg-L ffmpeg /. /等 /etc/ffserver.conf /usr /usr/bin /usr/bin/ffmpeg /usr/bin/ffplay /usr/bin/ffprobe /usr/bin/ffserver /usr/bin/qt快速启动 /usr/股份 /usr/共享/文档 /usr/share/doc/ffmpeg /usr/share/doc/ffmpeg/RELEASE_NOTES /usr/share/doc/ffmpeg/版权所有 /usr/share/ffmpeg /usr/share/ffmpeg/libvpx-1080p.ffpreset /usr/share/ffmpeg/libvpx-1080p50_60.ffpreset /usr/share/ffmpeg/libvpx-360p.ffpreset /usr/share/ffmpeg/libvpx-720p.ffpreset /usr/share/ffmpeg/libvpx-720p50_60.ffpreset /usr/共享/林寻 /usr/共享/林寻/覆盖 /usr/share/lintian/overrides/ffmpeg /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ffmpeg-all.1.gz /usr/share/man/man1/ffmpeg-bitstream-filters.1.gz /usr/share/man/man1/ffmpeg-codecs.1.gz /usr/share/man/man1/ffmpeg-devices.1.gz /usr/share/man/man1/ffmpeg-filters.1.gz /usr/share/man/man1/ffmpeg-formats.1.gz /usr/share/man/man1/ffmpeg-protocols.1.gz /usr/share/man/man1/ffmpeg-resampler.1.gz /usr/share/man/man1/ffmpeg-scaler.1.gz /usr/share/man/man1/ffmpeg-utils.1.gz /usr/share/man/man1/ffmpeg.1.gz /usr/share/man/man1/ffplay-all.1.gz /usr/share/man/man1/ffplay.1.gz /usr/share/man/man1/ffprobe-all.1.gz /usr/share/man/man1/ffprobe.1.gz /usr/share/man/man1/ffserver-all.1.gz /usr/share/man/man1/ffserver.1.gz /usr/share/man/man1/qt-faststart.1.gz /usr/share/doc/ffmpeg/changelog.Debian.gz
…我可以假设其中有用的部分是'/usr/bin',我将其添加到我的PKG_CONFIG_路径中,但在构建时仍然存在相同的错误。我正在运行Ubuntu 18.04 LTS。我不知所措,在过去的两天里一直在为这件事努力,如果有任何帮助,我将不胜感激。谢谢,我很乐意提供更多需要的信息。作为一个小小的请求,我对Linux非常陌生,因此如果您能在命令行操作中包含尽可能多的细节,这将非常有帮助。

假设您在这里遵循FFmpeg Ubuntu编译指南:


您要查找的路径必须在这里:
PKG\u CONFIG\u path=“$HOME/ffmpeg\u build/lib/pkgconfig

假设您在这里遵循了ffmpeg Ubuntu编译指南:

您要查找的路径必须在这里:
PKG\u CONFIG\u path=“$HOME/ffmpeg\u build/lib/pkgconfig