您好我正在尝试在 Mac OSX 10.6 上编译 libsndfile 1.0.25
我已经用 brew 安装了 libvorbis-1.3.4 和 libogg-1.3.1
1 - 我尝试用 brew 安装 libsndfile
2 - 我尝试使用 ./configure 和 make 手动安装 libsndfile
./configure 步骤似乎确实找到了 libvorbis 和 libogg,我已经确认这些是 x86_64 库。我希望输出中有一个提示,我不明白如何实现,并且有人可以快速发现它。感谢您的关注!
酿造错误输出:
==> Downloading http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
Already downloaded: /Library/Caches/Homebrew/libsndfile-1.0.25.tar.gz
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file programs/sndfile-play.c
patching file M4/clang.m4
patching file M4/really_gcc.m4
patching file configure.ac
==> autoreconf -i
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:207: error: possibly undefined macro: AC_SYS_EXTRA_LARGEFILE
configure.ac:295: error: possibly undefined macro: AC_OCTAVE_BUILD
autoreconf: /usr/bin/autoconf failed with exit status: 1
手册产生错误输出:
CCLD libsndfile.la
Undefined symbols for architecture x86_64:
"_vorbis_comment_clear", referenced from:
_vorbis_end in ogg_vorbis.o
_vorbis_read_header in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_info_clear", referenced from:
_vorbis_end in ogg_vorbis.o
_vorbis_read_header in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_ogg_stream_reset", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_sync_reset", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_sync_buffer", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_read_sample in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_sync_wrote", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_read_sample in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_sync_pageout", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_read_sample in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_stream_clear", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_ogg_close in libcommon.a(ogg.o)
_ogg_open in libcommon.a(ogg.o)
"_ogg_page_serialno", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_stream_init", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_write_header in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_stream_pagein", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_read_sample in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_stream_packetout", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_read_sample in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_vorbis_block_clear", referenced from:
_vorbis_read_header in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_dsp_clear", referenced from:
_vorbis_read_header in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_info_init", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_write_header in ogg_vorbis.o
"_vorbis_comment_init", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_write_header in ogg_vorbis.o
"_vorbis_synthesis_headerin", referenced from:
_vorbis_read_header in ogg_vorbis.o
_ogg_vorbis_open in ogg_vorbis.o
"_vorbis_synthesis_init", referenced from:
_vorbis_read_header in ogg_vorbis.o
"_vorbis_block_init", referenced from:
_vorbis_read_header in ogg_vorbis.o
_vorbis_write_header in ogg_vorbis.o
"_vorbis_comment_query", referenced from:
_vorbis_read_header in ogg_vorbis.o
"_vorbis_version_string", referenced from:
_ogg_vorbis_open in ogg_vorbis.o
"_ogg_sync_init", referenced from:
_ogg_vorbis_open in ogg_vorbis.o
_ogg_open in libcommon.a(ogg.o)
"_ogg_page_eos", referenced from:
_ogg_vorbis_open in ogg_vorbis.o
_vorbis_read_sample in ogg_vorbis.o
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_ogg_sync_clear", referenced from:
_ogg_vorbis_open in ogg_vorbis.o
_ogg_close in libcommon.a(ogg.o)
_ogg_open in libcommon.a(ogg.o)
"_ogg_page_granulepos", referenced from:
_ogg_vorbis_open in ogg_vorbis.o
"_vorbis_synthesis_pcmout", referenced from:
_vorbis_read_sample in ogg_vorbis.o
"_vorbis_synthesis_read", referenced from:
_vorbis_read_sample in ogg_vorbis.o
"_vorbis_synthesis", referenced from:
_vorbis_read_sample in ogg_vorbis.o
"_vorbis_synthesis_blockin", referenced from:
_vorbis_read_sample in ogg_vorbis.o
"_vorbis_analysis_wrote", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_analysis_blockout", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_analysis", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_bitrate_addblock", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_bitrate_flushpacket", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_ogg_stream_packetin", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_write_header in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_ogg_stream_pageout", referenced from:
_vorbis_write_samples in ogg_vorbis.o
_vorbis_close in ogg_vorbis.o
"_vorbis_analysis_buffer", referenced from:
_vorbis_write_d in ogg_vorbis.o
_vorbis_write_f in ogg_vorbis.o
_vorbis_write_i in ogg_vorbis.o
_vorbis_write_s in ogg_vorbis.o
"_vorbis_comment_add_tag", referenced from:
_vorbis_write_header in ogg_vorbis.o
"_vorbis_analysis_init", referenced from:
_vorbis_write_header in ogg_vorbis.o
"_vorbis_analysis_headerout", referenced from:
_vorbis_write_header in ogg_vorbis.o
"_ogg_stream_flush", referenced from:
_vorbis_write_header in ogg_vorbis.o
ld: symbol(s) not found for architecture x86_64