[redland-dev] Does latest version of redland compile with win32 ?

Richard H. McCullough rhm at pioneerca.com
Thu Aug 14 10:22:35 BST 2008


If you are interested in a completely different approach --
I successfully built all the Redland products recently.
I used Cygwin, and I did not set WIN32, figuring that
Cygwin would be just like a Linux build.

My results are available for download from
    http://mKRmKE.org/download/

Dick McCullough
Ayn Rand do speak od mKR done;
mKE do enhance od Real Intelligence done;
knowledge := man do identify od existent done;
knowledge haspart proposition list;
http://mKRmKE.org/

----- Original Message ----- 
From: "Lauri Aalto" <laalto at gmail.com>
To: "Developers" <redland-dev at lists.librdf.org>; 
<jrosello at pikko-software.com>
Sent: Thursday, August 14, 2008 1:41 AM
Subject: Re: [redland-dev] Does latest version of redland compile with win32 
?


> Hi,
>
> you seem to have both HAVE_CONFIG_H and WIN32 defined and therefore
> both generated raptor_config.h and static win32_raptor_config.h are
> being included.
>
> win32_raptor_config.h is designed to be used when configure has not
> been run and generally, autotools are not used. In that case you'll
> have to set up the makefiles or similar build system yourself. There
> are some old contributed project files in raptor/win32.
>
> I have only a little experience on mingw but I guess undefining WIN32
> can break a lot of system headers.
>
> A quick workaround is to add CFLAGS=-DWIN32_CONFIG_H environment
> variable and run configure again.
>
> A proper fix is maybe to edit the .c files to include
> win32_raptor_config.h only if WIN32 is defined and HAVE_CONFIG_H is
> not defined.
>
> Besides the config issue there are some missing header files (libxml,
> curl). Edit the config file to not use those features, or install the
> libraries properly "./configure && make && make install" does the
> trick for most libraries.
>
> Lauri
>
> On Thu, Aug 14, 2008 at 10:14 AM, jrosello at pikko-software.com
> <jrosello at pikko-software.com> wrote:
>> i spent hours trying to compile redland on windows xp,
>> i modified the configure like explained in the documentation, downloaded 
>> and
>> compiled libxml, tryed to place it directly in raptor directory, but 
>> raptor
>> does not want to compile.
>> I ran configure before, it worked well
>> Here is the message i got (compiling with mingw32 and msys, using make)
>>
>> $ make
>> Making all in src
>> make[1]: Entering directory `/c/Julien/redland-1.0.8/raptor/src'
>> make  all-am
>> make[2]: Entering directory `/c/Julien/redland-1.0.8/raptor/src'
>> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
>> -DRAPTOR_INTERNAL=1 -I./libxml   -DLIBRDFA_IN_RAPTOR -I../librdfa -g -O2  
>> -MT
>> raptor_parse.lo -MD -MP -MF .deps/raptor_parse.Tpo -c -o raptor_parse.lo
>> raptor_parse.c
>> gcc -DHAVE_CONFIG_H -I. -DRAPTOR_INTERNAL=1 -I./libxml -DLIBRDFA_IN_RAPTOR
>> -I../librdfa -g -O2 -MT raptor_parse.lo -MD -MP -MF 
>> .deps/raptor_parse.Tpo
>> -c raptor_parse.c  -DDLL_EXPORT -DPIC -o .libs/raptor_parse.o
>> In file included from raptor_parse.c:31:
>> ./win32_raptor_config.h:48:1: warning: "RAPTOR_XML_LIBXML" redefined
>> In file included from raptor_parse.c:27:
>> ./raptor_config.h:263:1: warning: this is the location of the previous
>> definition
>> In file included from raptor_parse.c:51:
>> raptor_internal.h:193:27: libxml/parser.h: No such file or directory
>> In file included from raptor_parse.c:51:
>> raptor_internal.h:201: error: syntax error before '*' token
>> raptor_internal.h:206: error: syntax error before "xc"
>> raptor_internal.h:207: error: syntax error before "xmlErrorPtr"
>> raptor_internal.h:788:23: curl/curl.h: No such file or directory
>> raptor_internal.h:789:24: curl/types.h: No such file or directory
>> raptor_internal.h:790:23: curl/easy.h: No such file or directory
>> raptor_internal.h:809: error: syntax error before "CURL"
>> raptor_internal.h:809: warning: no semicolon at end of struct or union
>> raptor_internal.h:810: error: `CURL_ERROR_SIZE' undeclared here (not in a
>> function)
>> raptor_internal.h:857: error: syntax error before '}' token
>> raptor_internal.h:929: error: syntax error before "xmlSAXHandler"
>> raptor_internal.h:929: warning: no semicolon at end of struct or union
>> raptor_internal.h:931: warning: data definition has no type or storage 
>> class
>> raptor_internal.h:933: error: syntax error before "loc"
>> raptor_internal.h:933: warning: data definition has no type or storage 
>> class
>> raptor_internal.h:964: error: conflicting types for 'locator'
>> raptor_internal.h:840: error: previous declaration of 'locator' was here
>> raptor_internal.h:966: error: conflicting types for 'error_handlers'
>> raptor_internal.h:846: error: previous declaration of 'error_handlers' 
>> was
>> here
>> raptor_internal.h:986: error: syntax error before '}' token
>> raptor_parse.c: In function `raptor_parse_uri_write_bytes':
>> raptor_parse.c:784: error: dereferencing pointer to incomplete type
>> raptor_parse.c: At top level:
>> raptor_internal.h:810: error: storage size of `error_buffer' isn't known
>> make[2]: *** [raptor_parse.lo] Error 1
>> make[2]: Leaving directory `/c/Julien/redland-1.0.8/raptor/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/c/Julien/redland-1.0.8/raptor/src'
>> make: *** [all-recursive] Error 1
>>
>> Event if i specify the right path to libxml, whenever i place the library 
>> i
>> can't compile.
>>
>> Anyone tryed to compile redland/rascal/raptor for windows recently ? The
>> last win32 binaries have been release in 2006 so i don't want to use 
>> them.
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.librdf.org/mailman/listinfo/redland-dev
>
> 




More information about the redland-dev mailing list