ffmpeg-php configure (configure: error: ffmpeg shared libraries not found. Make sure ffmpeg)

Софт под Linux, разные программы, но только связанные с Linux

Модератор: /dev/random

Ответить
GuT
Сообщения: 9

ffmpeg-php configure

Сообщение GuT »

Хочу поставить ffmpeg-php-0.5.2.1.
Было много проблем, но они решались через гугл.
Теперь даже гугл не помогает.

При ошибке configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
зарубежные сайты говорят, что надо


3. If you get an error like shared libraries not found problem and the program halts in the middle, then you must specify the ffmpeg installed path explicitly to the ./configure.

configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option

To Fix:

1. First find out the ffmpeg path with ffmpeg --help command. The prefix default path should be like /usr/local/cpffmpeg
2. Configure the FFmpeg-php with --with-ffmpeg option

./configure --with-ffmpeg=/usr/local/cpffmpeg

That should resolve the problem!


Набираю ffmpeg --help
выдает

Код: Выделить всё

ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard   configuration:  --extra-cflags=-fomit-frame-pointer -DRUNTIME_CPUDETECT --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr
  built on Jul 23 2008 21:50:24, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
ffmpeg: missing argument for option '--help'


Ну вобщем то вот делаю дальше так

Код: Выделить всё

root@gut-desktop:/home/gut/Desktop/ffmpeg-php-0.5.2.1# ./configure --with-ffmpeg=/usr/
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
checking for PHP extension directory... /usr/lib/php5/20051025
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers... ...found in /usr//include/ffmpeg
checking for ffmpeg libavcodec.so...
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4455
Статус: GNU generation
ОС: Debian GNU/Linux

Re: ffmpeg-php configure

Сообщение Rootlexx »

GuT писал(а):
02.08.2008 09:07
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option

Написано, что ffmpeg должен быть собран с опцией --enabled-shared. У вас:
GuT писал(а):
02.08.2008 09:07
--extra-cflags=-fomit-frame-pointer -DRUNTIME_CPUDETECT --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr

этой опции, похоже, нет. Для сравнения у меня:
--prefix=/usr --enable-shared --libdir=/usr/lib --enable-liba52 --enable-pp --enable-gpl --enable-pthreads --enable-libnut --enable-libtheora --enable-libvorbis --enable-x11grab --enable-dirac --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libx264 --enable-libxvid --enable-libamr_nb --enable-libamr_wb
Спасибо сказали:
GuT
Сообщения: 9

Re: ffmpeg-php configure

Сообщение GuT »

И как теперь быть?
На сайтах пишут, что надо узнать путь к ffmpeg с помощью команды ffmpeg --help.
И потом узнав путь, сконфигурировать его с этим путём: типа ./configure --with-ffmpeg=/usr/local/cpffmpeg.
Но я не могу понять через ffmpeg --help, какой у меня путь к ffmpeg. Пытаюсь так: ./configure --with-ffmpeg=/usr/, но выводит ту же самую ошибку, что и без --with-ffmpeg=/usr/.
:frusty:
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4455
Статус: GNU generation
ОС: Debian GNU/Linux

Re: ffmpeg-php configure

Сообщение Rootlexx »

GuT писал(а):
02.08.2008 17:53
И как теперь быть?

Поставьте ffmpeg с поддержкой разделяемых библиотек.
Спасибо сказали:
GuT
Сообщения: 9

Re: ffmpeg-php configure

Сообщение GuT »

Rootlexx писал(а):
02.08.2008 18:38
GuT писал(а):
02.08.2008 17:53
И как теперь быть?

Поставьте ffmpeg с поддержкой разделяемых библиотек.


Да и переустановкой тоже проблемы:

Код: Выделить всё

root@gut-desktop:/home/gut/Desktop/files/DADA/ffmpeg-0.4.9-pre1# make && make install
make -C libavcodec all
make[1]: Entering directory `/home/gut/Desktop/files/DADA/ffmpeg-0.4.9-pre1/libavcodec'
gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
                 from common.c:28:
common.h:69: error: array type has incomplete element type
common.h:71: error: array type has incomplete element type
make[1]: *** [common.o] Ошибка 1
make[1]: Leaving directory `/home/gut/Desktop/files/DADA/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Ошибка 2
root@gut-desktop:/home/gut/Desktop/files/DADA/ffmpeg-0.4.9-pre1#


Откуда скачивал пакет уже не помню.
Обычный пакет я ставил при помощи apt-get install ffmpeg, но так он собирался без поддержки разделяемых библиотек.
И ещё проблемка при проигравании 3gp-видео с помощью fplay нет звука, а при конвертации например avi to 3gp ругает что нет amr кодека. Как привязать amr кодек, где его взять?
Спасибо сказали:
Ответить