Модераторы: skyboy, MoLeX, Aliance, ksnk
  

Поиск:

Ответ в темуСоздание новой темы Создание опроса
> ffmpeg-php - решение проблемы с установкой 
V
    Опции темы
numerovan
Дата 23.1.2014, 15:53 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 549
Регистрация: 1.12.2007

Репутация: нет
Всего: 2



Здравствуйте. Ни как не могу установить этот модуль ffmpeg-php, сутки потратил. Система mac os 10.8, php 5.3, в самой ОС поставил ffmpeg, но при таком подходе php ни как не хочет работать с ним, поэтому думаю за модуль.
Много чего пересмотрел, перепробывал, ни как не получается. На данный момент руководствовался вот этой статьей http://www.dorianmoore.com/works/2352/inst...5-from-macports
Xcode, line tool и т.д. все стоит.
Проблема происходит после того как ввожу в терминал make. make install

покажу то что выдает, самое думаю заковырестое это внизу этих строк
Код

MacBook-Pro-Vladimir:ffmpeg volodya-nrg$ ./configure && make install
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin12.5.0
checking host system type... i386-apple-darwin12.5.0
checking target system type... i386-apple-darwin12.5.0
checking for PHP prefix... /opt/local
checking for PHP includes... -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include
checking for PHP extension directory... /opt/local/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /opt/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/local/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /opt/local/bin/nm output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin12.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
Installing shared extensions:     /opt/local/lib/php/extensions/no-debug-non-zts-20090626/
cp: modules/*: No such file or directory
make: *** [install-modules] Error 1
MacBook-Pro-Vladimir:ffmpeg volodya-nrg$ 


Кто нибудь сталкивался с такой проблемой ?
PM MAIL   Вверх
numerovan
Дата 24.1.2014, 11:26 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 549
Регистрация: 1.12.2007

Репутация: нет
Всего: 2



Решил проблему.
Тестил на Линуксе и на Мак ОС. В линуксе все ставится хорошо и там не нужен модуль ffmpeg-php, просто в саму ОС нужно поставить ffmpeg и самое главное в чем была проблема , когда производилась попытка конвертирования файла в другой, дело было в правах, т.е. на текущую папку ни те права были поставлены и файл само собой не создавался, а так ffmpeg хорошо работает с командной строки через php.

В маке так и не разобрался , открыл все права на все файлы и папки и на сам исполняемый модуль ffmpeg ... в общем ни как не получилось запустить через php-скрипт, но хорошо работает когда сам это дело делаешь через терминал, но такой подход не нужен был, нужно ведь автоматизировать это дело.
PM MAIL   Вверх
numerovan
Дата 1.2.2014, 06:04 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 549
Регистрация: 1.12.2007

Репутация: нет
Всего: 2



решил вопрос с ffmpeg на mac os, в общем дело было в относительном пути к самой программе исполнения, т.е. вот так вот не работало
Код

exec('ffmpeg ...');


а вот так заработало 
Код

exec('/opt/local/bin/ffmpeg ...');

думал дело еще в правах на исполнение файла, оказыается нет.
PM MAIL   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | PHP: Extensions | Следующая тема »


 




[ Время генерации скрипта: 0.1118 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.