ryosaeba
Certified Guru
Hi,
my gp2x is back to me and I'm working on something new, but I'm stuck trying to cross compile libxml++ for the gp2x.
I already cross compiled other libraries without too much problems but I can't solve this.
libxml++ is a c++ wrapper around the libxml2 library (which is already present in my ooPo toolkit).
I edited config.sub adding this:
I exported this env variables:
And then I run
The compilation goes well till this point
I'm trying to compile version 1.0.5 'cause it doesn't have the dependecy on glibmm, present in versions 2.x
Any help is really appreciated, a precompiled version of the library could do too.
my gp2x is back to me and I'm working on something new, but I'm stuck trying to cross compile libxml++ for the gp2x.
I already cross compiled other libraries without too much problems but I can't solve this.
libxml++ is a c++ wrapper around the libxml2 library (which is already present in my ooPo toolkit).
I edited config.sub adding this:
Code:
gp2x)
basic_machine=arm-gp2x
os=-linux-gnu
;;
I exported this env variables:
Code:
CC='gp2x-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib'
CXX='gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib'
CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2'
LDFLAGS='-L/usr/local/gp2xdev/lib'
LD_LIBRARY_PATH='/usr/local/gp2xdev/lib'
PKG_CONFIG_PATH='/usr/local/gp2xdev/lib/pkgconfig'
And then I run
Code:
./configure --prefix=/usr/local/gp2xdev --host=gp2x --libdir=/usr/local/gp2xdev/lib --build=x86_64-pc-linux-gnu --enable-static --enable-shared
make
The compilation goes well till this point
Code:
make[2]: Entering directory `/home/ryo/development/libxml++-1.0.5/libxml++'
/bin/sh ../libtool --tag=CXX --mode=link gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -g -O2 -L/usr/local/gp2xdev/lib -o libxml++-1.0.la -rpath /usr/local/gp2xdev/lib -version-info 1:4:0 attribute.lo dtd.lo document.lo noncopyable.lo keepblanks.lo parsers/libparsers.la exceptions/libexceptions.la nodes/libnodes.la io/libio.la -L/usr/local/gp2xdev/lib -lxml2 -lz -lm
gp2x-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/usr/local/gp2xdev/include -I/usr/local/gp2xdev/include/libxml2 -L/usr/local/gp2xdev/lib -shared -nostdlib /usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/../../../../gp2x/lib/crti.o /usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/crtbeginS.o .libs/attribute.o .libs/dtd.o .libs/document.o .libs/noncopyable.o .libs/keepblanks.o -Wl,--whole-archive parsers/.libs/libparsers.a exceptions/.libs/libexceptions.a nodes/.libs/libnodes.a io/.libs/libio.a /usr/local/gp2xdev/gp2x/lib/libstdc++.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/usr/local/gp2xdev/lib -Wl,--rpath -Wl,/usr/local/gp2xdev/lib -L/usr/local/gp2xdev/lib -L/home/ryo/development/gp2xdev/toolchain/gcc-4.0.2/build-gp2x-c++/gp2x/libstdc++-v3/src -L/home/ryo/development/gp2xdev/toolchain/gcc-4.0.2/build-gp2x-c++/gp2x/libstdc++-v3/src/.libs -L/home/ryo/development/gp2xdev/toolchain/gcc-4.0.2/build-gp2x-c++/gcc -L/usr/local/gp2xdev/gp2x/bin -L/usr/local/gp2xdev/gp2x/lib /usr/local/gp2xdev/lib/libxml2.so -lz -L/usr/local/gp2xdev/lib/gcc/gp2x/4.0.2 -L/usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/../../../../gp2x/lib -lm -lc -lgcc /usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/crtendS.o /usr/local/gp2xdev/lib/gcc/gp2x/4.0.2/../../../../gp2x/lib/crtn.o -mcpu=arm920t -Wl,-soname -Wl,libxml++-1.0.so.1 -o .libs/libxml++-1.0.so.1.0.4
exceptions/.libs/libexceptions.a(locale_facets.o):../../../../libstdc++-v3/src/locale_facets.cc:65: multiple definition of `std::__num_base::_S_atoms_out'
parsers/.libs/libparsers.a(locale_facets.o):../../../../libstdc++-v3/src/locale_facets.cc:65: first defined here
exceptions/.libs/libexceptions.a(locale_facets.o):(.data._ZNSt10__num_base11_S_atoms_inE+0x0): multiple definition of `std::__num_base::_S_atoms_in'
parsers/.libs/libparsers.a(locale_facets.o):(.data._ZNSt10__num_base11_S_atoms_inE+0x0): first defined here
exceptions/.libs/libexceptions.a(locale_facets.o):(.data._ZNSt10money_base8_S_atomsE+0x0): multiple definition of `std::money_base::_S_atoms'
parsers/.libs/libparsers.a(locale_facets.o):(.data._ZNSt10money_base8_S_atomsE+0x0): first defined here
...
...
a lot of other errors
...
...
I'm trying to compile version 1.0.5 'cause it doesn't have the dependecy on glibmm, present in versions 2.x
Any help is really appreciated, a precompiled version of the library could do too.