gpt4 book ai didi

linux - 运行 ./configure for vlc 时找不到 libavcodec

转载 作者:IT王子 更新时间:2023-10-29 00:05:51 26 4
gpt4 key购买 nike

我正在尝试在 ubuntu 10.04 上为 vlc 运行“./configure”。但由于某种原因它找不到 libavcode 库。我查看了/usr/lib,它有库,为什么 ./configure 找不到它?

这是来自“./configure”的错误:

checking for AVCODEC... no
configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.

但是我已经安装了libavcodec-dev,但是还是失败:

$ sudo apt-get install libavcodec-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavcodec-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.

我检查了“/usr/lib”,我看到了 libavcodec.so:

-rw-r--r-- 1 root root 7339558 2010-03-04 04:42 libavcodec.a
lrwxrwxrwx 1 root root 21 2010-06-26 00:38 libavcodec.so -> libavcodec.so.52.20.1
lrwxrwxrwx 1 root root 21 2010-05-10 22:30 libavcodec.so.52 -> libavcodec.so.52.20.1
-rw-r--r-- 1 root root 5560152 2010-03-04 04:54 libavcodec.so.52.20.1
-rw-r--r-- 1 root root 1316312 2010-03-04 04:42 libavformat.a
lrwxrwxrwx 1 root root 22 2010-06-26 00:38 libavformat.so -> libavformat.so.52.31.0
lrwxrwxrwx 1 root root 22 2010-05-10 22:30 libavformat.so.52 -> libavformat.so.52.31.0
-rw-r--r-- 1 root root 694880 2010-03-04 04:42 libavformat.so.52.31.0
-rw-r--r-- 1 root root 85164 2010-03-04 04:42 libavutil.a
lrwxrwxrwx 1 root root 20 2010-06-26 00:38 libavutil.so -> libavutil.so.49.15.0
lrwxrwxrwx 1 root root 20 2010-05-10 22:30 libavutil.so.49 -> libavutil.so.49.15.0
-rw-r--r-- 1 root root 47296 2010-03-04 04:54 libavutil.so.49.15.0

感谢您的帮助。

最佳答案

apt-get build-dep vlc

...应该清除大部分(如果不是全部)vlc ./configure 缺少依赖项的错误

关于linux - 运行 ./configure for vlc 时找不到 libavcodec,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3327462/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com