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