discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSDictionary DictionaryWithContentsOfFile] question


From: Lloyd Dupont
Subject: Re: [NSDictionary DictionaryWithContentsOfFile] question
Date: Wed, 31 Aug 2005 11:41:03 +1000

I tried to rebuild my GNUstep distribution with XML support.
I went in to gnustep/core/base
typed
./configure

It echos a long string of text and finaly outputed:
=====================
checking for xml2-config... /mingw/bin/xml2-config
checking for libxml - version >= 2.3.0... no
*** Could not run libxml test program, checking why...

You most likely do not want to build base without XML support.
For instance, MacOS-X compatible property lists require XML.
If you really want to build -base without XML support,
add --disable-xml to the configure arguments.
configure: error: Missing support for XML functionality.
=====================

And here, let me say: "stop, bull.. er.. manure!".
I checked the xml2-config file my self and it says:
=========
   --version)
echo 2.4.12
exit 0
;;
=========
so... how come ./configure believes "2.4 < 2.3" ?

I also tried to look into the configure script and search what kind of code was associated with the string "xml2-config".. er.. as usual I don't understand a thing of configure scripts, but for configure experts to comment here is the 2 text block which seems related to XML checking:
===========
 if test x$xml_config_prefix != x ; then
   xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
   if test x${XML2_CONFIG+set} != xset ; then
     XML2_CONFIG=$xml_config_prefix/bin/xml2-config
   fi
   if test x${XML_CONFIG+set} != xset ; then
     XML_CONFIG=$xml_config_prefix/bin/xml-config
   fi
 fi

# Extract the first word of "xml2-config", so it can be a program name with args.
set dummy xml2-config; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
 echo $ECHO_N "(cached) $ECHO_C" >&6
else
 case $XML2_CONFIG in
 [\\/]* | ?:[\\/]*)
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
 ;;
 *)
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
 IFS=$as_save_IFS
 test -z "$as_dir" && as_dir=.
 for ac_exec_ext in '' $ac_executable_extensions; do
 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   break 2
 fi
done
==== AND ====
 if test "x$no_xml" = x ; then
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
   enable_libxml=yes
 else
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
   if test "$XML_CONFIG" = "no" ; then
echo "*** The xml-config script installed by libxml could not be found" echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the XML_CONFIG environment variable to the"
     echo "*** full path to xml-config."
   else
     if test -f conf.xmltest ; then
       :
     else
       echo "*** Could not run libxml test program, checking why..."
       CFLAGS="$CFLAGS $XML_CFLAGS"
       LIBS="$LIBS $XML_LIBS"
             fi
   fi

   XML_CFLAGS=""
   XML_LIBS=""
   enable_libxml=no
 fi
===========


----- Original Message ----- From: "Lloyd Dupont" <lloyd@nova-mind.com>
To: "GNUstep Discussion" <discuss-gnustep@gnu.org>
Sent: Wednesday, August 31, 2005 10:37 AM
Subject: [NSDictionary DictionaryWithContentsOfFile] question


Hi There!

I'm porting MacOSX software to windows.
This application use XML-format plist format.

I followed the source from [NSDictionary dictionaryWithContentsOfFile:..] from call to call.
And I ended up in
[NSPropertyListSerialixation propertyListFromData:mutabilityOption:format:errorDescription:]

Which has some #ifndef HAVE_LIBXML, so that let me to believe the XML loading should be supported.
However when I tried to load a XML property list, the result was null :-(
And the error message is:
XML format not supported ... XML support not present

How could I enable it?
Thanks!



_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep





reply via email to

[Prev in Thread] Current Thread [Next in Thread]