LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1346|回复: 3

編譯madplay-0.15.2b出現: cannot find -lmad,這樣是正確的嗎?

[复制链接]
发表于 2008-3-22 21:32:28 | 显示全部楼层 |阅读模式
你好!我使用fedora 8編譯madplay-0.15.2b時,發生下面問題,後來換ubuntu 7.10系統編譯,也發生一樣的問題,我是用的cross compiler是arm-linux-gcc 2.95.3:

我在madplay-0.15.2目錄下,
#CC=arm-linux-gcc CPPFLAGS=-I/home/me/include LDFLAGS=-L/home/me/lib ./configure --host=arm-linux

#arm-linux-gcc -static -Wall -g -O2 -o madplay madplay.o getopt.o getopt1.o version.o resample.o filter.o tag.o crc.o rgain.o player.o audio.o audio_aiff.o audio_cdda.o
audio_hex.o audio_null.o audio_raw.o audio_snd.o audio_wave.o audio_oss.o -L/usr/local/arm/2.95.3/lib -lmad /home/me/lib -lz –lm

執行結果如下,請問這樣是正確的嗎?謝謝你!
/usr/local/arm/2.95.3/arm-linux/bin/ld: cannot find -lmad
collect2: ld return 1 exit status
发表于 2008-3-23 00:44:03 | 显示全部楼层
知道也不告诉你。。。。。。。
回复 支持 反对

使用道具 举报

发表于 2008-3-23 00:52:55 | 显示全部楼层
没装libmad这个库?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-28 20:17:51 | 显示全部楼层
感謝zhong,目前的問題解決了!
之前是我下錯指令參數以及libmad路徑,現在已經可以成功編譯madplay。
不過QT2410(mizi linux)上執行
#./madplay *.mp3
MPEG Audio Decoder 0.15.2 (beta) Copyright (C) 2000-2004 Bro. output: ioctl(SNDCTL_DSP_SPEED): Invalid argument
#不知道是不是參數的問題,導致無法播放。

#./madplay *.wav
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Le. error: frame 0: lost synchronization
0 frames decoded (0:00:00.0) -inf dB peak amplitude, 0 clipped samps
#不知道是什麼問題無法播放。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表