Skip to content

Loading…

Link error when adding wax.framework to cocos2d template project #13

Open
marcnewbie opened this Issue · 2 comments

2 participants

@marcnewbie

Hi,

I followed the "installation framework" procedure, which works fine for ordinary iPhone project templates; but when using the cocos2d template I get link errors.
Seems like there's something in the "wax_xml" source.
Here's the output:

Ld build/Debug-iphonesimulator/CocosTest.app/CocosTest normal i386
cd /Users/Marc/Documents/CocosTest
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/Marc/Documents/CocosTest/build/Debug-iphonesimulator -F/Users/Marc/Documents/CocosTest/build/Debug-iphonesimulator -F/Users/Marc/Documents/CocosTest/../../Downloads -filelist /Users/Marc/Documents/CocosTest/build/CocosTest.build/Debug-iphonesimulator/CocosTest.build/Objects-normal/i386/CocosTest.LinkFileList -mmacosx-version-min=10.6 -all_load -ObjC -Xlinker -objc_abi_version -Xlinker 2 -framework CoreGraphics -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -framework AudioToolbox -framework OpenAL -lz -framework AVFoundation "-lcocos2d libraries" -framework CoreData -framework wax -o /Users/Marc/Documents/CocosTest/build/Debug-iphonesimulator/CocosTest.app/CocosTest

Undefined symbols:
"_xmlDocSetRootElement", referenced from:
_createXML in wax(wax_xml.o)
"_xmlDocGetRootElement", referenced from:
_parse in wax(wax_xml.o)
"_xmlDocDumpMemoryEnc", referenced from:
_generate in wax(wax_xml.o)
"_xmlAddChild", referenced from:
_createXML in wax(wax_xml.o)
_createXML in wax(wax_xml.o)
_createXML in wax(wax_xml.o)
"_xmlReadMemory", referenced from:
_parse in wax(wax_xml.o)
"_xmlNewNode", referenced from:
_createXML in wax(wax_xml.o)
"_xmlNewProp", referenced from:
_createXML in wax(wax_xml.o)
"_xmlIsBlankNode", referenced from:
_createTable in wax(wax_xml.o)
"_xmlNewText", referenced from:
_createXML in wax(wax_xml.o)
_createXML in wax(wax_xml.o)
"_xmlNewDoc", referenced from:
_generate in wax(wax_xml.o)
"_xmlFreeDoc", referenced from:
_generate in wax(wax_xml.o)
_parse in wax(wax_xml.o)
"_xmlFree", referenced from:
_xmlFree$non_lazy_ptr in wax(wax_xml.o)
(maybe you meant: _xmlFree$non_lazy_ptr)
"_xmlNodeListGetString", referenced from:
_createTable in wax(wax_xml.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

@probablycorey

Hey, this is probably because you are using -all_load or -force_load in your project.

To get around this try adding /usr/include/libxml2/** to your Header Search Paths (like in this image http://img183.imageshack.us/img183/6213/xcodebuildsettingsod6.jpg)

If that doesn't work let me know.

In the future I plan on removing the libxml dependency.

@marcnewbie

Thanks, it worked after I added the "libxml2" framework as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.