求助:mplayer ./configure通过,make通不过

Totem,mplayer,sopcast,realplayer,bmp
回复
Adept.X
帖子: 35
注册时间: 2007-01-23 21:33
送出感谢: 0
接收感谢: 0

求助:mplayer ./configure通过,make通不过

#1

帖子 Adept.X » 2007-10-22 13:01

大家好,我昨晚用svn update后,configure通过,但是make不能过。依赖的包都已经安装了。今天上午十一点半左右,再此update后,还是通不过,不过错误的信息变了,两次错误都是发生在同一个文件中,请高手帮忙,谢谢谢谢!
configure选项:

代码: 全选

$./configure ---enable-gui --enable-largefiles --enable-menu

代码: 全选

Config files successfully generated by ./configure --enable-gui --enable-largefiles --enable-menu !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: little-endian
  Optimizing for: k8

  Languages:
    Messages/GUI: en
    Manual pages: en  

  Enabled optional drivers:
    Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv live555 cddb cdda libdvdcss(internal) dvdread(internal) vcd dvb smb network 
    Codecs: x264 xvid libdv libavcodec qtx real xanim win32 faad2 faac musepack libmpeg2 libdca liba52 mp3lib libtheora speex tremor(internal) libmad liblzo gif 
    Audio output: alsa openal pulse esd arts oss v4l2 nas sdl mpegpes(dvb) 
    Video output: v4l2 dxr3 sdl gif89a pnm jpeg png mpegpes(dvb) fbdev caca aa ggi xvidix cvidix opengl dga xv x11 xover dfbmga directfb md5sum tga 
    Audio filters: ladspa 
  Disabled optional drivers:
    Input: dvdnav vstream radio tv-dshow nemesi 
    Codecs: libamr_wb libamr_nb toolame twolame 
    Audio output: sun jack ivtv dxr2 
    Video output: ivtv dxr2 vesa zr zr2 svga xmga mga winvidix 3dfx xvmc bl xvr100 tdfx_vid s3fb tdfxfb 
    Audio filters: 

'config.h' and 'config.mak' contain your configuration options.
然后make,错误信息如下:

代码: 全选

$make
.......
......
......
ao_v4l2.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
ao_v4l2.c: In function ‘init’:
ao_v4l2.c:80: error: ‘freq’ undeclared (first use in this function)
ao_v4l2.c:80: error: (Each undeclared identifier is reported only once
ao_v4l2.c:80: error: for each function it appears in.)
ao_v4l2.c: In function ‘get_space’:
ao_v4l2.c:132: error: ‘freq’ undeclared (first use in this function)
make[1]: *** [ao_v4l2.o] Error 1
make[1]: Leaving directory `/media/sda10/neoanima/mysoft/mplayer/mplayer/libao2'
make: *** [libao2/libao2.a] Error 2
不知道为什么,现在郁闷死了。
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26
送出感谢: 0
接收感谢: 1 次

#2

帖子 windwiny » 2007-10-22 13:49

依赖库没有装完整
Adept.X
帖子: 35
注册时间: 2007-01-23 21:33
送出感谢: 0
接收感谢: 0

新问题产生

#3

帖子 Adept.X » 2007-10-22 15:44

由于用的是svn版本,我怀疑有些文件可能不行,就下载了rc2版本,编译通过。于是我比较libao/ao_v4l2.c文件在两个版本的差别,发现只是一个定义外部变量的差异,即:extern int v4l2_fd , svn中多这一行,同时末尾没有程序结束语分号“;”,于是我加上分号,然后上面的错误消失了,但是新的错误又来了。如下:

代码: 全选

 mplayer.o: In function `main':
mplayer.c:(.text+0x32d2): undefined reference to `load_termcap'
mplayer.o:(.data+0x20e4): undefined reference to `menu_fribidi_charset'
mplayer.o:(.data+0x2108): undefined reference to `menu_flip_hebrew'
mplayer.o:(.data+0x212c): undefined reference to `menu_flip_hebrew'
mplayer.o:(.data+0x2150): undefined reference to `menu_fribidi_flip_commas'
mplayer.o:(.data+0x2174): undefined reference to `menu_fribidi_flip_commas'
mplayer.o:(.data+0x39ec): undefined reference to `fribidi_charset'
mplayer.o:(.data+0x3a10): undefined reference to `flip_hebrew'
mplayer.o:(.data+0x3a34): undefined reference to `flip_hebrew'
mplayer.o:(.data+0x3a58): undefined reference to `fribidi_flip_commas'
mplayer.o:(.data+0x3a7c): undefined reference to `fribidi_flip_commas'
libao2/libao2.a(ao_v4l2.o): In function `play':
ao_v4l2.c:(.text+0xed): undefined reference to `v4l2_write'
libao2/libao2.a(ao_v4l2.o): In function `init':
ao_v4l2.c:(.text+0x125): undefined reference to `v4l2_fd'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
而且还更这个文件有关。

我是用sudo apt-get buil-dep mplayer安装的编译依赖包,而且,configure后,在log中找no的选项,再补一些包的,我想依赖上应该是没有问题的。
feiny
帖子: 79
注册时间: 2007-06-17 18:16
送出感谢: 0
接收感谢: 0

#4

帖子 feiny » 2007-10-22 20:12

缺少编译环境么?
sudo apt-get install build-essential
头像
weilichun
帖子: 218
注册时间: 2007-09-09 15:41
来自: Beijing
送出感谢: 0
接收感谢: 1 次
联系:

#5

帖子 weilichun » 2007-10-26 16:06

代码: 全选

make clean
make
试试

修改配置应该clean后再make
caryturing
帖子: 12
注册时间: 2008-06-08 19:10
送出感谢: 0
接收感谢: 0

emacs编译安时 make 出错了

#6

帖子 caryturing » 2008-06-08 21:41

./configure通过了 make出错,没有需要的目标“/usr/local/etc/emacs/lisp/org/org-agenda.elc”我没有/usr/local/etc/emacs/lisp/org目录
$ ./configure -enable-font-backend --with-xft --with-freetype --with-x-toolkit
$make bootstrap
...
Wrote /usr/local/etc/emacs/lisp/obsolete/scribe.elc
Compiling /usr/local/etc/emacs/lisp/obsolete/swedish.el
Wrote /usr/local/etc/emacs/lisp/obsolete/swedish.elc
Compiling /usr/local/etc/emacs/lisp/obsolete/x-menu.el
Wrote /usr/local/etc/emacs/lisp/obsolete/x-menu.elc
make[3]: *** 没有规则可以创建“compile-main”需要的目标“/usr/local/etc/emacs/lisp/org/org-agenda.elc”。 停止。
make[3]: Leaving directory `/usr/local/etc/emacs/lisp'
make[2]: *** [compile] 错误 2
make[2]: Leaving directory `/usr/local/etc/emacs/lisp'
make[1]: *** [bootstrap-build] 错误 2
make[1]: Leaving directory `/usr/local/etc/emacs'

make: *** [bootstrap] 错误 2
请求大侠帮忙解决。
回复

回到 “影音多媒体”