Кто-нибудь скомпилировал ffmpeg 0.6.1 для Solaris 10 sparc?Я получаю следующие ошибки:
uname -a SunOS SERVERNAME 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V440 bwddmadm@bwddmliv>/export/home/USERID/ffmpeg-0.6.1/configure --prefix=/export/home/USERID/ffmpegX --extra-cflags="-fPIC" --disable-mmx --disable-protocol=udp --disable-encoder=nellymoser Broken shell detected. Trying alternatives. Trying shell bash grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . Unknown C compiler gcc awk: syntax error near line 1 awk: illegal statement near line 1 grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . install prefix /export/home/USERID/ffmpegX source path /export/home/USERID/ffmpeg-0.6.1 C compiler gcc .align is power-of-two no ARCH sparc (generic) big-endian no runtime cpu detection no VIS enabled yes gprof enabled no debug symbols yes strip symbols yes optimizations yes static yes shared no postprocessing support no new filter support no filters using lavformat no network support yes threading support no SDL support no Sun medialib support no AVISynth enabled no libdc1394 support no libdirac enabled no libfaac enabled no libfaad enabled no libfaad dlopened no libgsm enabled no libmp3lame enabled no libnut enabled no libopencore-amrnb support no libopencore-amrwb support no libopenjpeg enabled no librtmp enabled no libschroedinger enabled no libspeex enabled no libtheora enabled no libvorbis enabled no libvpx enabled no libx264 enabled no libxvid enabled no zlib enabled no bzlib enabled no Enabled decoders: pr: -- empty file Enabled encoders: pr: -- empty file Enabled hwaccels: pr: -- empty file Enabled parsers: pr: -- empty file Enabled demuxers: pr: -- empty file Enabled muxers: pr: -- empty file Enabled protocols: pr: -- empty file Enabled filters: pr: -- empty file Enabled bsfs: pr: -- empty file Enabled indevs: pr: -- empty file Enabled outdevs: pr: -- empty file License: LGPL version 2.1 or later Creating config.mak and config.h... bwddmadm@bwddmliv> gmake /export/home/USERID/ffmpeg-0.6.1/version.sh: syntax error at line 4: `revision=$' unexpected CC libavdevice/alldevices.o libavdevice/alldevices.c: In function `avdevice_register_all': libavdevice/alldevices.c:42: error: `CONFIG_ALSA_OUTDEV' undeclared (first use in this function) libavdevice/alldevices.c:42: error: (Each undeclared identifier is reported only once libavdevice/alldevices.c:42: error: for each function it appears in.) libavdevice/alldevices.c:42: error: `CONFIG_ALSA_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:43: error: `CONFIG_AUDIO_BEOS_OUTDEV' undeclared (first use in this function) libavdevice/alldevices.c:43: error: `CONFIG_AUDIO_BEOS_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:44: error: `CONFIG_BKTR_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:45: error: `CONFIG_DV1394_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:46: error: `CONFIG_JACK_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:47: error: `CONFIG_OSS_OUTDEV' undeclared (first use in this function) libavdevice/alldevices.c:47: error: `CONFIG_OSS_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:48: error: `CONFIG_V4L2_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:49: error: `CONFIG_V4L_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:50: error: `CONFIG_VFWCAP_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:51: error: `CONFIG_X11_GRAB_DEVICE_INDEV' undeclared (first use in this function) libavdevice/alldevices.c:54: error: `CONFIG_LIBDC1394_INDEV' undeclared (first use in this function) gmake: *** [libavdevice/alldevices.o] Error 1 bwddmadm@bwddmliv> exit script done on Fri Jan 14 11:34:05 2011
1.- Убедитесь, что gcc установлен
install gcc if needed # pkg search gcc # pkg install pkg:/developer/gcc-45@4.5.2-0.175.1.0.0.24.0
2.- Убедитесь, что yams установлен
install yams if needed download from http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz unzip, untar in local dir #./configure #make install add the path # PATH=$PATH:/usr/local/bin
3.- Убедитесь, что GNU Make установлен
Installed if required # pkg search gnu make # pkg install pkg:/developer/build/gnu-make@3.82-0.175.1.0.0.24.0
4.- Убедитесь, что он выбрал правильный grep
e.g. by aliasing grep to /usr/sfw/bin/ggrep if you have the Sun Freeware package installed
5.- Скачать исходный код: http://ffmpeg.org/releases/ffmpeg-1.0.tar.gz
a.- unzip, untar in local dir b.- edit configure 1.- replace awk by nawk 2.- follow the patch configuration from https://trac.handbrake.fr/browser/trunk/contrib/patch-ffmpeg-solaris.patch?rev=1531 Some details about the reasons here : http://www.techques.com/question/1-4690966/can't-compile-ffmpeg-on-Solaris-10-sparc Be careful the line numbers are not valid for version 1.0 place the modifications suggested accordingly c.- #./configure d.- # gmake
Noël Jaffré
К сожалению, Solaris /usr/bin/grep не поддерживает флаг -q , похоже, вам нужно указать путь либо для поиска GNU grep, либо POSIX-совместимого /usr/xpg4/bin/grep в качестве команда grep. Google также может найти пару патчей для ffmpeg, которые люди написали для решения этой проблемы.
/usr/bin/grep
GNU grep
/usr/xpg4/bin/grep
Авторы ffmpeg знают об этой проблеме , но отказываются изменять свой скрипт конфигурации, поскольку они полагаются на POSIX-совместимость.
Потратив несколько часов на эту тему, я наконец установил ffmpeg 2.2.2 на Solaris 5.1 SPARC.Шаги:
sed 's/\/bin\/sh/\/bin\/bash/' configure > configure.mod
sed 's/awk/nawk/' configure.mod > configure.mod2
sed '/implicit-function-declaration/d' configure.mod2 > configure.mod3
cp configure.mod3 configure
sed 's/\/bin\/sh/\/bin\/bash/' version.sh > version.sh.mod
cp version.sh.mod version.sh
Выполнить настройку
настроить --extra-cflags = "- fpic" --disable-mmx --disable-protocol = udp --disable-encoder = nellymoser --disable-debug --arch = sparc --target-os = sunos
gmake install
Похоже, что скрипт сборки ожидает найти версии помощников GNU, таких как grep. Убедитесь, что он подбирает правильные, например, присвоив grep значение /usr/sfw/bin/ggrep, если у вас установлено пакет Sun Freeware .
/usr/sfw/bin/ggrep