簡體   English   中英

運行./configure for vlc時找不到libavcodec

[英]Can't find libavcodec when running ./configure for vlc

我想在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錯誤並且缺少依賴項

檢查configure.log可能會給你一個關於缺少什么的提示。 它可以是頭文件而不是庫。

默認情況下,libavcodec安裝到/ usr / lib,而vlc默認為/ usr / local / lib。 在vlc中,將--prefix = / usr添加到配置行將解決此問題。 李勇

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM