Re: [xml] Cross compiling in QNX



Update - the linker error seem to be a limitation within cygwin. The library itself is created. Once I replaced libxml2.so softlink with a hardlink to libxml2.so.11, it worked.

Regards,
Sree


On Fri, Mar 8, 2013 at 2:58 PM, Sree R <sreesr2001 gmail com> wrote:
Hello,

I am trying to build libxml2 for QNX/ARM, from pc/cygwin/windows 7.

#./configure --build=i686-pc-cygwin --host=arm-unknown-nto-qnx6.5.0 --disable-silent-rules
# make

It does not create the shared library, while the static library is created.
But 'xmllint' linker seem to refer the libxml2.so.11, which is not built.

Any inputs would be much appreciated.

Regards,
Sree

Logs
===
/bin/sh ./libtool  --tag=CC    --mode=link ntox86-gcc    -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long       -version-info 11:0:9    -o libxml2.la -rpath /usr/local/lib SAX.lo entities.lo encoding.lo error.lo  parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo  xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo  HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo  nanohttp.lo nanoftp.lo  catalog.lo globals.lo  threads.lo c14n.lo xmlstring.lo buf.lo xmlregexp.lo  xmlschemas.lo xmlschemastypes.lo xmlunicode.lo   xmlreader.lo relaxng.lo dict.lo SAX2.lo  xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo  xmlmodule.lo schematron.lo xzlib.lo   -lz   -lm  -lsocket
libtool: link: (cd ".libs" && rm -f "libxml2.so" && ln -s "libxml2.so.11" "libxml2.so")
libtool: link: ntox86-ar cru .libs/libxml2.a  SAX.o entities.o encoding.o error.o parserInternals.o parser.o tree.o hash.o list.o xmlIO.o xmlmemory.o uri.o valid.o xlink.o HTMLparser.o HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o nanohttp.o nanoftp.o catalog.o globals.o threads.o c14n.o xmlstring.o buf.o xmlregexp.o xmlschemas.o xmlschemastypes.o xmlunicode.o xmlreader.o relaxng.o dict.o SAX2.o xmlwriter.o legacy.o chvalid.o pattern.o xmlsave.o xmlmodule.o schematron.o xzlib.o
libtool: link: ntox86-ranlib .libs/libxml2.a
libtool: link: ( cd ".libs" && rm -f "libxml2.la" && ln -s "../libxml2.la" "libxml2.la" )

==
/bin/sh ./libtool  --tag=CC    --mode=link ntox86-gcc    -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long    -o xmllint xmllint.o   ./libxml2.la  -lz   -lm  -lsocket
libtool: link: ntox86-gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wno-long-long -o .libs/xmllint xmllint.o  ./.libs/libxml2.so -lz -lm -lsocket
C:/QNX650/host/win32/x86/usr/bin/ntox86-ld.exe:./.libs/libxml2.so: file format not recognized; treating as linker script
C:/QNX650/host/win32/x86/usr/bin/ntox86-ld.exe:./.libs/libxml2.so:1: syntax error




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