gpt4 book ai didi

ios - 如何成功地将 ImageMagick 集成到 iOS 中?

转载 作者:行者123 更新时间:2023-12-01 15:58:48 26 4
gpt4 key购买 nike

我目前有一个链接器错误,大约 44 次引用了架构 x86_64 的 undefined symbol 。所有这些都来自一个集成文件“libMagickCore.a”,所以我试图寻找“架构 x86_64 libmagickcore.a 的 undefined symbol ”的解决方案
我在这里看到了解决方案Undefined symbols for architecture x86_64 ImageMagick on Mac Lion它解决了 Mac Lion 上的类似问题。我还查看了 ImageMagick 板上的类似问题。我发现的线程和 Stack Overflow 链接似乎都在谈论包含或明确排除 X11 库。

我试图在build设置下将“-lX11”添加到“其他链接器标志”,但最终得到“找不到 -lX11 的库”。因此,我还尝试将 libX11.dylib 从/opt/X11/lib 拖到我的 XCode 项目中,但无济于事。关于 ImageMagick 板上类似问题的建议是使用“--without-wmf”“--without-x11”标志,但我不知道要在没有编译器错误的情况下将其添加到build设置的哪个键/值对说“不支持的选项”。

这些是链接器错误:

Undefined symbols for architecture x86_64:
"_xmlAddAttributeDecl", referenced from:
_MSLAttributeDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGAttributeDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlAddChild", referenced from:
_MSLReference in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_MSLCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGReference in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
_SVGCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlAddDocEntity", referenced from:
_MSLEntityDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_MSLUnparsedEntityDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGEntityDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
_SVGUnparsedEntityDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlAddDtdEntity", referenced from:
_MSLEntityDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGEntityDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlAddElementDecl", referenced from:
_MSLElementDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGElementDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlAddNotationDecl", referenced from:
_MSLNotationDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGNotationDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlCleanupParser", referenced from:
_UnregisterMSLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_UnregisterSVGImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlCreateIntSubset", referenced from:
_MSLInternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGInternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlCreatePushParserCtxt", referenced from:
_ProcessMSLScript in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_ReadSVGImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlDetectCharEncoding", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlFree", referenced from:
_MSLAttributeDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGAttributeDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlFreeDoc", referenced from:
_SVGEndDocument in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlFreeInputStream", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlFreeParserCtxt", referenced from:
_ProcessMSLScript in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_ReadSVGImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlGetDocEntity", referenced from:
_MSLGetEntity in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGGetEntity in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlGetLastChild", referenced from:
_MSLCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlGetParameterEntity", referenced from:
_MSLGetParameterEntity in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGGetParameterEntity in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlInitParser", referenced from:
_RegisterMSLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_RegisterSVGImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlLoadExternalEntity", referenced from:
_MSLResolveEntity in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGResolveEntity in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlMalloc", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlNanoFTPClose", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoFTPConnect", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoFTPGet", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoFTPInit", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoFTPNewCtxt", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoHTTPCleanup", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoHTTPClose", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoHTTPMethod", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNanoHTTPRead", referenced from:
_ReadURLImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-url.o)
"_xmlNewCDataBlock", referenced from:
_MSLCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlNewCharRef", referenced from:
_MSLReference in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGReference in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlNewDoc", referenced from:
_MSLStartDocument in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGStartDocument in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlNewDtd", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlNewReference", referenced from:
_MSLReference in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGReference in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlParseChunk", referenced from:
_ProcessMSLScript in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_ReadSVGImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlParseExternalSubset", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlPopInput", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlPushInput", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlSplitQName", referenced from:
_MSLAttributeDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGAttributeDeclaration in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlStrdup", referenced from:
_MSLStartDocument in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGStartDocument in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlSubstituteEntitiesDefault", referenced from:
_ProcessMSLScript in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_ReadSVGImage in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlSwitchEncoding", referenced from:
_MSLExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGExternalSubset in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
"_xmlTextConcat", referenced from:
_MSLCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-msl.o)
_SVGCDataBlock in libMagickCore.a(magick_libMagickCore_6_Q8_la-svg.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

通过转到“构建阶段”并将二进制文件与库链接,将“libxml2.2.tbd”添加到项目中解决了该问题。

关于ios - 如何成功地将 ImageMagick 集成到 iOS 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36203862/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com