Macos 在Mac Big Sur(Mac osx 10.11)上为arm64构建avrocpp库
我正在尝试在Mac Big Sur Mac OS 10.11)上为ARM64构建avrocpp。安装boost并下载avro cpp后,当我从avro目录运行build.sh进行构建时,在编译avro的DataFile.cpp时出现以下错误(以及更多错误):Macos 在Mac Big Sur(Mac osx 10.11)上为arm64构建avrocpp库,macos,boost,avro,zlib,macos-big-sur,Macos,Boost,Avro,Zlib,Macos Big Sur,我正在尝试在Mac Big Sur Mac OS 10.11)上为ARM64构建avrocpp。安装boost并下载avro cpp后,当我从avro目录运行build.sh进行构建时,在编译avro的DataFile.cpp时出现以下错误(以及更多错误): **Undefined symbols for architecture arm64: "boost::iostreams::zlib_error::check(int)", referenced from:
**Undefined symbols for architecture arm64:
"boost::iostreams::zlib_error::check(int)", referenced from:
long boost::iostreams::symmetric_filter<boost::iostreams::detail::zlib_compressor_impl<std::__1::allocator<char> >, std::__1::allocator<char> >::write<boost::iostreams::detail::linked_streambuf<char, std::__1::char_traits<char> > >(boost::iostreams::detail::linked_streambuf<char, std::__1::char_traits<char> >&, char const*, long) in DataFile.o**
**架构arm64的未定义符号:
“boost::iostreams::zlib_error::check(int)”,引用自:
长boost::iostreams::symmetric_filter::write(boost::iostreams::detail::linked_streambuf&,char const*,long)在DataFile.o中**
所有错误都出现在boost::iostream->zlib压缩器或解压缩器中
到目前为止,由于Homebrew不支持Mac Big sur for boost(boost:fix arm64 build),并且在构建boost zlib和avrocpp时出现了错误,因此我正在尝试构建源代码,但得到了错误,以下是我到目前为止尝试的内容:
&&cmake-G Xcode..
&&xcodebuild-verbose ARCHS=“arm64”仅\u活动\u ARCH=YES-配置发布) ;;