【发布时间】:2013-05-15 11:33:19
【问题描述】:
我正在尝试使用 LAME (3.99.5) 在 Cygwin 中构建具有 MP3 支持的 SoX (14.4.1)。我一直在关注本指南:http://bencos.googlecode.com/svn-history/r137/trunk/out/sox/README.win32.txt 运行“./configure”时,它告诉我“找不到 LAME”。我已将lame-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 中安装多个软件包并更新路径,我得到了 configure 和 make 工作。专业提示是阅读安装文件以查看它们是否列出了所需的包并可能检查 Linux 发行版,因为它们的包引用依赖项和构建依赖项。
【问题讨论】:
标签: build open-source cygwin sox lame