I follow through the steps in their building instruction, except I compile the APR and the APR-util library using the following:
For APR: (for configure file, I got some of the idea from here)
./configure --prefix=/usr/arm-linux-gnueabi/apr --host=arm-linux-gnueabi CC="arm-linux-gnueabi-gcc" CXX="arm-linux-gnueabi-g++" I run make install and things are fine.
For APR-util:
./configure --prefix=/usr/arm-linux-gnueabi/apr-util --host=arm-linux-gnueabi -with-apr=/usr/arm-linux-gnueabi/apr CC="arm-linux-gnueabi-gcc" CXX="arm-linux-gnueabi-g++"
I run make install and got this:
/home/peter/apache/Apache_apr/apr-util-1.5.1/xml/expat/.libs/libexpat.so: could not read symbols: File in wrong format
/usr/arm-linux-gnueabi/expat/lib/libexpat.so: could not read symbols: File in wrong formatAt this point, I'm quite puzzled - I compiled the expat library with arm-linux-gnueabi and everything seems compiled fine. What went wrong?I also did a little search on libexpat.so - I've seen people saying libtool is linking the wrong library whatsoever - it there some well known issue with libtool when it comes to cross-compiling?
How should I properly compile ActiveMQ-cpp library for a ARM-platform? Is there some way I can fix the libexpat.so?
Many thanks!