我试图使用LAME (3.99.5)在Cygwin中构建SoX (14.4.1),并提供MP3支持。我一直在遵循这个指南:运行时的http://bencos.googlecode.com/svn-history/r137/trunk/out/sox/README.win32.txt。/配置“它告诉我”它“找不到跛脚”。我把lam-enc.dll放进了sox目录,但没有被检测到。有人能帮我找出失败的原因吗?下面是日志文件的命令和输出:
./configure --with-lame
...
configure:13645: checking whether to dlopen lame
configure:13654: result: no
configure:13664: checking lame/lame.h usability
configure:13664: gcc -c -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -fopenmp conftest.c >&5
configure:13664: $? = 0
configure:13664: result: yes
configure:13664: checking lame/lame.h presence
configure:13664: gcc -E conftest.c
configure:13664: $? = 0
configure:13664: result: yes
configure:13664: checking for lame/lame.h
configure:13664: result: yes
configure:13689: checking for lame_get_lametag_frame in -lmp3lame
configure:13714: gcc -o conftest.exe -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -fopenmp conftest.c -lmp3lame >&5
conftest.c:53:1: warning: function declaration isn't a prototype
conftest.c:55:1: warning: function declaration isn't a prototype
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lmp3lame编辑:我通过在cygwin中安装几个包并更新路径来进行配置和工作。提示是读取安装文件,看看它们是否列出了所需的包,并可能检查Linux发行版,因为它们的包引用依赖项和构建依赖项。
发布于 2013-05-15 12:40:32
您还需要--enable-dl-lame,以便它能够使用动态库:
./configure --with-lame --enable-dl-lame编辑以合并来自评论讨论的信息:
可能需要更多的Cygwin包,例如libltdl和libtool-* (用于动态加载支持)、与zlib相关的包(用于libid3tag)等。
另外,configure.ac需要修补(在第175行中将*mingw*)更改为*cygwin* | *mingw*) ),然后必须通过autoreconf (gcc-tools Cygwin包)重新生成configure脚本。或者,您可以尝试在configure中找到对应于configure.ac第175行的行,并对其进行更改;在这种情况下,重新生成是不必要的。
发布于 2013-05-19 23:32:40
zlib-devel包提供了-lz所需的库。
https://stackoverflow.com/questions/16563929
复制相似问题