gcc - cross compiler d-bus -
i want corss_compiler d-bus arm.
toolchain: arm-linux-gcc-3.4.1
configure option: cc=arm-linux-gcc ./configure --prefix=/opt/dbus/ --host=arm-linux --enable-abstract-sockets -with-xml=expat
sourecode : d-bus-1.2.24 d-bus-1.3.1 d-bus-1.4.0
make[2]: entering directory `/home/mandy/desktop/apps/d-bus/remotec/dbus-1.4.0/bus' ccld dbus-daemon /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: warning: gc-sections option ignored dbus_daemon-bus.o(.text.process_config_postinit+0x120): in function `bus_context_check_security_policy': /home/mandy/desktop/apps/d-bus/remotec/dbus-1.4.0/bus/bus.c:1638: undefined reference `bus_set_watched_dirs' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.os)(.text+0x44): in function `__libc_csu_init': : undefined reference `__init_array_end' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.os)(.text+0x48): in function `__libc_csu_init': : undefined reference `__init_array_start' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.os)(.text+0x8c): in function `__libc_csu_fini': : undefined reference `__fini_array_end' /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.os)(.text+0x90): in function `__libc_csu_fini': : undefined reference `__fini_array_start' collect2: ld returned 1 exit status make[2]: *** [dbus-daemon] error 1 make[2]: leaving directory `/home/mandy/desktop/apps/d-bus/remotec/dbus-1.4.0/bus' make[1]: *** [all-recursive] error 1 make[1]: leaving directory `/home/mandy/desktop/apps/d-bus/remotec/dbus-1.4.0' make: *** [all] error 2
at dbus-1.2.24 , dbus-1.3.1 same error.
what can ?
thanks lot.
these general instructions cross compile dbus avr32 architecture. based on reference(3rd post) arm create little tutorial. posting tutorial because useful others or compare commands.
expat libraries
in order cross compile dbus necessary cross compile expat libraries first. option prefix can specify must installed.
download expat src code: ftp://ftp.free.fr/.mirrors1/ftp.netbsd.org/packages/distfiles/expat-2.0.1.tar.gz
untar it:
tar zxvf expat-2.0.1.tar.gz
configure appropiate host , c compiler. must have avr32 linux toolchain installed (buildroot compile toolchain you, must add binaries path enviroment variable $path)
cd expat-2.0.1/ ./configure --host=avr32-linux --prefix=/home/juan/builds/build_expat/ cc=avr32-linux-gcc make; make install
dbus
download dbus src code: http://dbus.freedesktop.org/releases/dbus/dbus-1.5.0.tar.gz
untar it:
tar zxvf dbus-1.5.0.tar.gz cd dbus-1.5.0.tar.gz
configure specifying installation folder (--prefix), c compiler, include folder , lib folder expat libraries:
./configure --prefix=/home/juan/builds/build_dbus/ --host=avr32-linux --with-x=no ac_cv_have_abstract_sockets=yes "cc=avr32-linux-gcc -i/home/juan/builds/build_expat/include -l/home/juan/builds/build_expat/lib" make;make install;
Comments
Post a Comment