Build errors when trying to build with ASIWebPageRequest

726 views
Skip to first unread message

Cristy

unread,
Dec 7, 2010, 2:00:40 AM12/7/10
to ASIHTTPRequest
Hi,

I have an iPhone project that I wish to use ASIWebPageRequest for, but
when I import the ASIWebPageRequest class I'm getting build errors due
to the fact that it can't find the libxml dependancies:

e.g.:
error: libxml/HTMLparser.h: No such file or directory

I tried linking against libxml2.2.7.3.dylib, libxml2.2.dylib and
libxml2.dylib, with no luck.

Can you please tell me how I can get this to compile?

Thanks,

Cristy


Cristy

unread,
Dec 7, 2010, 7:56:35 PM12/7/10
to ASIHTTPRequest
Turns out I was missing $(SDKROOT)/usr/include/libxml2 from my Header
Search Paths in my Project Settings, I also had to link against
libxml2.2.7.3.dylib.

This means that the headers can now be found without any problems, but
now I'm left with 9 errors and 2 warnings during linking. Is there
some other library that I'm missing which needs to be linked?

ld: warning: directory '/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator4.1.sdk/usr/lib/gcc/arm-apple-
darwin10/4.0.1' following -L not found
ld: warning: directory '/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator4.1.sdk/usr/lib/gcc/arm-apple-
darwin10/4.2.1' following -L not found
Undefined symbols:
"_OBJC_IVAR_$_ASIHTTPRequest.uploadProgressDelegate", referenced
from:
_OBJC_IVAR_$_ASIHTTPRequest.uploadProgressDelegate$non_lazy_ptr
in ASIWebPageRequest.o
(maybe you meant: _OBJC_IVAR_
$_ASIHTTPRequest.uploadProgressDelegate$non_lazy_ptr)
"_OBJC_IVAR_$_ASIHTTPRequest.downloadProgressDelegate", referenced
from:
_OBJC_IVAR_$_ASIHTTPRequest.downloadProgressDelegate
$non_lazy_ptr in ASIWebPageRequest.o
(maybe you meant: _OBJC_IVAR_
$_ASIHTTPRequest.downloadProgressDelegate$non_lazy_ptr)
"_OBJC_CLASS_$_ASIHTTPRequest", referenced from:
_OBJC_CLASS_$_ASIWebPageRequest in ASIWebPageRequest.o
objc-class-ref-to-ASIHTTPRequest in ASIWebPageRequest.o
"_NetworkRequestErrorDomain", referenced from:
_NetworkRequestErrorDomain$non_lazy_ptr in ASIWebPageRequest.o
(maybe you meant: _NetworkRequestErrorDomain$non_lazy_ptr)
"_OBJC_CLASS_$_ASINetworkQueue", referenced from:
objc-class-ref-to-ASINetworkQueue in ASIWebPageRequest.o
"_OBJC_IVAR_$_ASIHTTPRequest.complete", referenced from:
_OBJC_IVAR_$_ASIHTTPRequest.complete$non_lazy_ptr in
ASIWebPageRequest.o
(maybe you meant: _OBJC_IVAR_$_ASIHTTPRequest.complete
$non_lazy_ptr)
"_OBJC_METACLASS_$_ASIHTTPRequest", referenced from:
_OBJC_METACLASS_$_ASIWebPageRequest in ASIWebPageRequest.o
"_OBJC_IVAR_$_ASIHTTPRequest.delegate", referenced from:
_OBJC_IVAR_$_ASIHTTPRequest.delegate$non_lazy_ptr in
ASIWebPageRequest.o
(maybe you meant: _OBJC_IVAR_$_ASIHTTPRequest.delegate
$non_lazy_ptr)
"_OBJC_IVAR_$_ASIHTTPRequest.contentLength", referenced from:
_OBJC_IVAR_$_ASIHTTPRequest.contentLength$non_lazy_ptr in
ASIWebPageRequest.o
(maybe you meant: _OBJC_IVAR_$_ASIHTTPRequest.contentLength
$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status

Cristy

unread,
Dec 7, 2010, 8:53:58 PM12/7/10
to ASIHTTPRequest
Nevermind, this is solved now. Creating a new project and moving all
of the source code in fixed the problem.....strange!
Reply all
Reply to author
Forward
0 new messages