Compile phase needs to be informed where your libxml2 include files are.

Something similar to:
-IC:/GNUstep/include/libxml2
depending on where libxml2 headers are installed. The above should be correct 
for your machine, based on information you provided.

I'm not at the computer right now, so this is from memory; Google around and 
look at sample apps to check for correctness of the following addition to your 
GNUmakefile:

sample_app_CFLAGS = -IC:/GNUstep.....

Did you look at NSXML class family and other XML-parsing classes in GNUstep and 
in Foundation?

Regards,

Ivan Vučica
via phone

On 14. 1. 2013., at 06:22, umen <[email protected]> wrote:

> i trying to use libxml2 in GNUsetup in windows using objective-C 
> compiling with clang. 
> it keeps giving me the error:
> 
>    $ make CC=clang 
>    This is gnustep-make 2.6.2. Type 'make print-gnustep-make-help' for
> help.
>    Making all for tool sample_app...
>     Compiling file HtmlParser.m ...
>    In file included from HtmlParser.m:1:
>    ./HtmlParser.h:2:9: fatal error: 'libxml/tree.h' file not found
>    #import <libxml/tree.h>
>            ^
>    1 error generated.
>    make[3]: *** [obj/sample_app.obj/HtmlParser.m.o] Error 1
>    make[2]: *** [internal-tool-all_] Error 2
>    make[1]: *** [sample_app.all.tool.variables] Error 2
>    make: *** [internal-all] Error 2
> 
> 
> the files do existe in :c:\GNUstep\include\libxml2\libxml\
> 
> 
> this is my GNUsetup file which compiles the files 
> 
>    include $(GNUSTEP_MAKEFILES)/common.make
> 
> 
> 
>    TOOL_NAME = sample_app
> 
>    sample_app_HEADERS = HttpManager.h UT.h HtmlParser.h
>    sample_app_OBJC_FILES = main.m HttpManager.m UT.m HtmlParser.m
>    sample_app_RESOURCE_FILES =
> 
>    include $(GNUSTEP_MAKEFILES)/tool.make
> 
> and this is my file that include the libxml2 headers 
> 
>    #import <Foundation/Foundation.h>
>    #import <libxml/tree.h>
>    #import <libxml/parser.h>
>    #import <libxml/HTMLparser.h>
>    #import <libxml/xpath.h>
>    #import <libxml/xpathInternals.h>
> 
>    @interface HtmlParser
>    {
>        NSString* encoding;
>    }
> 
> 
>    -(id)init
>    {
>        self = [super init];
>        if(self) {
>            encoding = @"UTF-8";
>        }
>        
>        return self;
>        
>    }
> 
> 
>    -(void)ExtractInnerSiteLinks:(NSString*) PageHtml:(NSString*) url;
> 
> 
>    @end
> 
> 
> 
> 
> --
> View this message in context: 
> http://gnustep.8.n7.nabble.com/GNUSetup-objective-c-can-t-find-libxml-tree-h-file-not-found-tp32352.html
> Sent from the GNUstep - General mailing list archive at Nabble.com.
> 
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to