Cocos2d-x IOS Mac Environment compilation error can ' t locate file for:-lpng-ljpeg-ltiff-lwebp-lfreetype-lwebsockets-lcurl

Source: Internet
Author: User
Tags svn client

Compile errors on Mac with Xcode6, Visual Studio compiles under Windows no problem, and then view the error message:

Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:
Can ' t locate file for
File:-lpng isn't an object file (not allowed in a library)
1Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-lpng2Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-lpng isn't anObject file(Not allowedincha library)3Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-ljpeg4Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-ljpeg isn't anObject file(Not allowedincha library)5Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-ltiff6Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-ltiff isn't anObject file(Not allowedincha library)7Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-lwebp8Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-lwebp isn't anObject file(Not allowedincha library)9Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-lfreetypeTenError:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-lfreetype isn't anObject file(Not allowedincha library) OneError:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-lwebsockets AError:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-lwebsockets isn't anObject file(Not allowedincha library) -Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:can'T locate file for:-lcurl -Error:/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool:file:-lcurl isn't anObject file(Not allowedinchA library)

The reason is actually very simple, is Cocod2d-x mac and iOS static library did not search,

It is generally not uploaded correctly using SVN client. A caused by,

Workaround: Copy the. A file below the corresponding version of the Cocod2d-x directory to the appropriate directory,

Then add the static Library of. A to the SVN version control;

Using commands

SVN add  

The library file path for iOS is as follows:

/opt/cocos2d-x-3.2>Find. -type F |grep-I. ios/lib./external/curl/prebuilt/ios/LIBCURL.A./external/freetype2/prebuilt/ios/Libfreetype.a./external/jpeg/prebuilt/ios/libjpeg.a./external/lua/lua/prebuilt/ios/liblua.a./external/lua/luajit/prebuilt/ios/libluajit.a./external/png/prebuilt/ios/libpng.a./external/tiff/prebuilt/ios/LIBTIFF.A./external/webp/prebuilt/ios/Libwebp.a./external/websockets/include/ios/libwebsockets.h./external/websockets/prebuilt/ios/LIBWEBSOCKETS.A./plugin/plugins/flurry/proj.ios/libflurry.a./plugin/plugins/umeng/proj.ios/libmobclicklibrary.a

Cocos2d-x IOS Mac Environment compilation error can ' t locate file for:-lpng-ljpeg-ltiff-lwebp-lfreetype-lwebsockets-lcurl

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.