无法在 Solaris 10 sparc 上编译 ffmpeg
有人为 Solaris 10 sparc 编译过 ffmpeg 0.6.1 吗?我收到以下错误:
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
Has anyone compiled ffmpeg 0.6.1 for Solaris 10 sparc? I'm getting the following errors:
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
1.- 确保安装了 gcc
2.- 确保安装了 yams
3.- 确保安装了 GNU Make
4.- 确保它选择了正确的 grep
5.- 下载源代码: http://ffmpeg.org/releases/ffmpeg-1.0.tar.gz
诺埃尔·贾弗雷
1.- Make sure gcc is installed
2.- Make sure yams is installed
3.- Make sure GNU Make is installed
4.- Make sure that it picks up the correct grep
5.- Download source code : http://ffmpeg.org/releases/ffmpeg-1.0.tar.gz
Noël Jaffré
不幸的是, Solaris
/usr/bin/grep
不支持 -q 标志,看起来您需要将路径设置为查找GNU grep 或符合 POSIX 标准的
/usr/xpg4/bin/grep
作为 grep 命令。 Google 还可以找到人们编写的几个 ffmpeg 补丁来解决这个问题。ffmpeg 作者了解这一点问题,但拒绝更改其配置脚本,因为它们依赖于 POSIX 合规性。
Unfortunately, Solaris
/usr/bin/grep
does not support the -q flag, it looks like you'll need to set your path to either findGNU grep
or the POSIX-compliant/usr/xpg4/bin/grep
as the grep command. Google can also find a couple patches to ffmpeg that people have written to solve this.The ffmpeg authors know of this problem, but refuse to change their configure script, since they rely on POSIX-compliance.
看起来构建脚本期望找到 GNU 版本的帮助程序,例如 grep。确保它选择正确的,例如,如果您有 已安装 Sun 免费软件包。
It looks like the build script is expecting to find the GNU versions of helpers like grep. Make sure that it picks up the correct ones, e.g. by aliasing grep to
/usr/sfw/bin/ggrep
if you have the Sun Freeware package installed.在这个主题上花了几个小时后,我终于在 Solaris 5.1 SPARC 上安装了 ffmpeg 2.2.2。步骤:
http://www.ffmpeg.org/download.html
文件需要修改
这可能会导致问题 - 我必须将其设置回警告级别,因为
它导致了有关缺少参考的错误(这是一个
标准库,所以它应该不是问题)
sed 's/\/bin\/sh/\/bin\/bash/' configure >配置.mod
sed 's/awk/nawk/'configure.mod > configure.mod2
sed '/implicit-function-declaration/d' configure.mod2 > configure.mod3
cp configure.mod3 配置
sed 's/\/bin\/ sh/\/bin\/bash/' version.sh > version.sh.mod
cp version.sh.mod version.sh
运行配置
configure --extra-cflags="-fpic" --disable-mmx
--disable-protocol=udp --disable-encoder=nellymoser --disable-debug --arch=sparc --target-os=sunos
gmake install
After spending several hours on this topic I finally installed ffmpeg 2.2.2 on Solaris 5.1 SPARC. Steps:
http://www.ffmpeg.org/download.html
files needs to be modified
This might cause problem - I had to set it back to warning level as
it caused an error regarding a missing reference (which was a
standard library so it should not be a problem)
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
Run configure
configure --extra-cflags="-fpic" --disable-mmx
--disable-protocol=udp --disable-encoder=nellymoser --disable-debug --arch=sparc --target-os=sunos
gmake install