Undefined symbols for architecture x86_64:
“_FT_Done_Face”, referenced from:
cocos2d::FontFreeType::~FontFreeType() in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Done_FreeType”, referenced from:
cocos2d::FontFreeType::shutdownFreeType() in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Get_Char_Index”, referenced from:
cocos2d::FontFreeType::getBBOXFotChar(unsigned short, cocos2d::Rect&, int&) const in libcocos2dx iOS.a(CCFontFreeType.o)
cocos2d::FontFreeType::getHorizontalKerningForChars(unsigned short, unsigned short) const in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Get_Kerning”, referenced from:
cocos2d::FontFreeType::getHorizontalKerningForChars(unsigned short, unsigned short) const in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Init_FreeType”, referenced from:
cocos2d::FontFreeType::initFreeType() in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Load_Char”, referenced from:
cocos2d::FontFreeType::getGlyphBitmap(unsigned short, int&, int&) const in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Load_Glyph”, referenced from:
cocos2d::FontFreeType::getBBOXFotChar(unsigned short, cocos2d::Rect&, int&) const in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_New_Memory_Face”, referenced from:
cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Select_Charmap”, referenced from:
cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
“_FT_Set_Char_Size”, referenced from:
cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
“_TIFFClientOpen”, referenced from:
cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_TIFFClose”, referenced from:
cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_TIFFGetField”, referenced from:
cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_TIFFReadRGBAImageOriented”, referenced from:
cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_WebPDecode”, referenced from:
cocos2d::Image::initWithWebpData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_WebPGetFeaturesInternal”, referenced from:
WebPGetFeatures(unsigned char const*, unsigned long, WebPBitstreamFeatures*) in libcocos2dx iOS.a(CCImage.o)
“_WebPInitDecoderConfigInternal”, referenced from:
WebPInitDecoderConfig(WebPDecoderConfig*) in libcocos2dx iOS.a(CCImage.o)
“__TIFFfree”, referenced from:
cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“__TIFFmalloc”, referenced from:
cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_curl_easy_cleanup”, referenced from:
cocos2d::network::CURLRaii::~CURLRaii() in libcocos2dx iOS.a(HttpClient.o)
“_curl_easy_getinfo”, referenced from:
cocos2d::network::CURLRaii::perform(long*) in libcocos2dx iOS.a(HttpClient.o)
“_curl_easy_init”, referenced from:
cocos2d::network::CURLRaii::CURLRaii() in libcocos2dx iOS.a(HttpClient.o)
“_curl_easy_perform”, referenced from:
cocos2d::network::CURLRaii::perform(long*) in libcocos2dx iOS.a(HttpClient.o)
“_curl_easy_setopt”, referenced from:
cocos2d::network::configureCURL(void*) in libcocos2dx iOS.a(HttpClient.o)
bool cocos2d::network::CURLRaii::setOption<char const*>(CURLoption, char const*) in libcocos2dx iOS.a(HttpClient.o)
bool cocos2d::network::CURLRaii::setOption(CURLoption, bool) in libcocos2dx iOS.a(HttpClient.o)
bool cocos2d::network::CURLRaii::setOption<curl_slist*>(CURLoption, curl_slist*) in libcocos2dx iOS.a(HttpClient.o)
bool cocos2d::network::CURLRaii::setOption<unsigned long ()(void, unsigned long, unsigned long, void*)>(CURLoption, unsigned long ()(void, unsigned long, unsigned long, void*)) in libcocos2dx iOS.a(HttpClient.o)
bool cocos2d::network::CURLRaii::setOption<void*>(CURLoption, void*) in libcocos2dx iOS.a(HttpClient.o)
bool cocos2d::network::CURLRaii::setOption<char*>(CURLoption, char*) in libcocos2dx iOS.a(HttpClient.o)
…
“_curl_easy_strerror”, referenced from:
cocos2d::network::CURLRaii::perform(long*) in libcocos2dx iOS.a(HttpClient.o)
“_curl_slist_append”, referenced from:
cocos2d::network::CURLRaii::init(cocos2d::network::HttpRequest*, unsigned long ()(void, unsigned long, unsigned long, void*), void*, unsigned long ()(void, unsigned long, unsigned long, void*), void*) in libcocos2dx iOS.a(HttpClient.o)
“_curl_slist_free_all”, referenced from:
cocos2d::network::CURLRaii::~CURLRaii() in libcocos2dx iOS.a(HttpClient.o)
“_jpeg_CreateCompress”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_CreateDecompress”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_destroy_compress”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_destroy_decompress”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_finish_compress”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_mem_src”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_read_header”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_read_scanlines”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_set_defaults”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_start_compress”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_start_decompress”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_std_error”, referenced from:
cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_stdio_dest”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_jpeg_write_scanlines”, referenced from:
cocos2d::Image::saveImageToJPG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libcocos2dx iOS.a(CCImage.o)
“_libwebsocket_callback_on_writable”, referenced from:
cocos2d::network::WebSocket::onSocketCallback(libwebsocket_context*, libwebsocket*, int, void*, void*, long) in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_client_connect”, referenced from:
cocos2d::network::WebSocket::onSubThreadStarted() in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_context_destroy”, referenced from:
cocos2d::network::WebSocket::onSubThreadLoop() in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_context_user”, referenced from:
cocos2d::network::WebSocketCallbackWrapper::onSocketCallback(libwebsocket_context*, libwebsocket*, libwebsocket_callback_reasons, void*, void*, unsigned long) in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_create_context”, referenced from:
cocos2d::network::WebSocket::onSubThreadStarted() in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_get_internal_extensions”, referenced from:
cocos2d::network::WebSocket::onSubThreadStarted() in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_service”, referenced from:
cocos2d::network::WebSocket::onSubThreadLoop() in libcocos2dx iOS.a(WebSocket.o)
“_libwebsocket_write”, referenced from:
cocos2d::network::WebSocket::onSocketCallback(libwebsocket_context*, libwebsocket*, int, void*, void*, long) in libcocos2dx iOS.a(WebSocket.o)
“_libwebsockets_remaining_packet_payload”, referenced from:
cocos2d::network::WebSocket::onSocketCallback(libwebsocket_context*, libwebsocket*, int, void*, void*, long) in libcocos2dx iOS.a(WebSocket.o)
“_lws_frame_is_binary”, referenced from:
cocos2d::network::WebSocket::onSocketCallback(libwebsocket_context*, libwebsocket*, int, void*, void*, long) in libcocos2dx iOS.a(WebSocket.o)
“_png_create_info_struct”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_create_read_struct”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_create_write_struct”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_destroy_read_struct”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_destroy_write_struct”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_error”, referenced from:
cocos2d::(anonymous namespace)::pngReadCallback(png_struct_def*, unsigned char*, unsigned long) in libcocos2dx iOS.a(CCImage.o)
“_png_free”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_get_bit_depth”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_get_color_type”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_get_image_height”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_get_image_width”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_get_io_ptr”, referenced from:
cocos2d::(anonymous namespace)::pngReadCallback(png_struct_def*, unsigned char*, unsigned long) in libcocos2dx iOS.a(CCImage.o)
“_png_get_rowbytes”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_get_valid”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_init_io”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_malloc”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_read_end”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_read_image”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_read_info”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_read_update_info”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_set_IHDR”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_set_PLTE”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_set_expand_gray_1_2_4_to_8”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_set_longjmp_fn”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_set_packing”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_set_palette_to_rgb”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_set_read_fn”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_set_strip_16”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_set_tRNS_to_alpha”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_sig_cmp”, referenced from:
cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage.o)
“_png_write_end”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_write_image”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
“_png_write_info”, referenced from:
cocos2d::Image::saveImageToPNG(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, bool) in libcocos2dx iOS.a(CCImage.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
貌似是第三方库不支持x86_64,请问该如何解决呢?