[xml] libxml2 for ARM



I am new with Linux and I don't know my way around well. I am writing

an application that is supposed to run in an RFID reader. The

operating system on the reader is Linux and the processor is an ARM

type. In order to implement my application, I need an XML parser, so I

chose libxml2-2.6.10. In trying to build the library for arm-linux, I

am having a very difficult time. Basically, I did all the things that

were suggested by you and other postings but to no avail.

 

Here is what I tried:

 

My system is running Red Hat Linux 9.

I downloaded libxml2-2.6.10.tar.gz into the /opt directory. Then I proceeded to gunzip it into

the /opt/libxml2-2.6.10 directory. I opened an xterm where I typed the following:

CC=arm-linux-gcc; ./configure; Make - as was suggested to me by Daniel Veillard

 

I expected that the library be built and put into the /usr/local/lib which is the default directory for the built binary right?

> Unfortunately, it wasn't there.

 

I also noticed that the Makefile never got changed to use

CC=arm-linux-gcc. Instead, it still had CC=gcc. Does this mean that

The built library is not an arm-linux library?

The linker also needs to be arm-linux-ld not ld.

If modify the Makefile by changing CC=gcc to CC=arm-linux-gcc, I get the following errors:

 

 

make  all-recursive

make[1]: Entering directory `/opt/libxml2-2.6.10'

Making all in include

make[2]: Entering directory `/opt/libxml2-2.6.10/include'

Making all in libxml

make[3]: Entering directory `/opt/libxml2-2.6.10/include/libxml'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory `/opt/libxml2-2.6.10/include/libxml'

make[3]: Entering directory `/opt/libxml2-2.6.10/include'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory `/opt/libxml2-2.6.10/include'

make[2]: Leaving directory `/opt/libxml2-2.6.10/include'

Making all in .

make[2]: Entering directory `/opt/libxml2-2.6.10'

if /bin/sh ./libtool --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include  -D_REENTRANT      -g -O2 -Wall -MT SAX.lo -MD -MP -MF ".deps/SAX.Tpo" -c -o SAX.lo SAX.c; \

then mv -f ".deps/SAX.Tpo" ".deps/SAX.Plo"; else rm -f ".deps/SAX.Tpo"; exit 1; fi

libtool: compile: unable to infer tagged configuration

make[2]: Leaving directory `/opt/libxml2-2.6.10'

make[1]: Leaving directory `/opt/libxml2-2.6.10'

 

 

 

 

> I need this library desperately for my project and I am stuck without

> it.

>

> Any help you can suggest will be immensely appreciated.

 



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