ffmpeg-php ubuntu



Я скачал исходники ffmpeg-php extension, но там нет ни makefile, ни configure. Есть только config.m4 - чего с ним делать, пока не знаю. Вот вытяжка из INSTALL:

=================== INSTALLATION INSTRUCTIONS =========================

These instructions are for Linux since I don't have windows. If you successfully build on windows, let me know how you did it and I'll update the instructions.

BUILDING FFMPEG ---------------

cd /path/to/ffmpeg ./configure --enable-shared --prefix=/usr make clean && make [become root] make install

BUILDING FFMPEG-PHP AS A SHARED EXTENSION -----------------------------------------

1. Build php if not already built or installed by your distro (See the file INSTALL in your php source directory)

2. Unpack the archive

tar -xjf ffmpeg-php.X.XX.tar.gz

3. cd into the ffmpeg extension directory

cd ffmpeg-php.X.XX/

4. Run phpize (included with your php install) to build configuration files


5. Configure and build

./configure && make

6. Install the shared extension

make install (as root)

If everything went as planned, ffmpeg-php is now installed as a shared library. You must explicitly load it in your scripts using dl( or if you want it available to all scripts by default add to your php.ini file which will tell php to load it when starting up. ===================

Как мне собрать расширение? Я попробовал поискать phpize, но не нашел

Re: ffmpeg-php ubuntu

> Я скачал исходники ffmpeg-php extension, но там нет ни makefile, ни configure > 4. Run phpize (included with your php install) to build configuration files

Вывод: не читал\не знает английского.

Anoxemian ★★★★★ ()
Ответ на: Re: ffmpeg-php ubuntu от Anoxemian

Re: ffmpeg-php ubuntu

user@host:~/Desktop/ffmpeg-php-0.5.0$ ./configure --enable-shared --prefix=/usr && make checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/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 ISO C89... 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 -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 checking for PHP extension directory... /usr/lib/php5/20060613+lfs checking for PHP installed headers prefix... /usr/include/php5 checking for re2c... re2c checking for re2c version... 0.9.12 (ok) checking for gawk... no checking for nawk... nawk checking if nawk is broken... no checking for ffmpeg support... yes, shared checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option

Что не так прописал? Там --enable-shared[=PKGS] build shared libraries [default=yes] в конфиге. Писал также --enable-shared=yes - та же реакция.

Дистр feisty.

s1y ()
Ответ на: Re: ffmpeg-php ubuntu от HappyCoder

Re: ffmpeg-php ubuntu

уже поставил перед тем, как собирать. phpize выполнил. где-то дальше трабла

s1y ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.