Hello Francisco,
the post you are referring to eals with building DTN2, so it does not necessarily work with IBR-DTN. However thismight point into the right direction
1. Johannes is the guru here, but as far as I know we largely use Buildroot (http://buildroot.uclibc.org) to create embedded Builds. You should take a look at that
2. The approach you posted: Just a guess, but judging form your command line maybe you are using the C Cross Compiler but the standard C++ one. That would explain why it is confused with teh generated object files. Try adding a CXX parameter wit the appropriate g++ Crosscompiler to the command line
MfG
Sebastian
Am 10.12.2012 um 10:18 schrieb Francisco Cuesta ndarkness@gmail.com:
Hello,
I've got a large question about compiling/crosscompiling ibr-dtn bundle, so I would thank if you could help me a bit with it. My question can be split in two parts.
Firstly, I wanted to download the sources of ibr-dtn, so I have gone to the site http://www.ibr.cs.tu-bs.de/trac/ibr-dtn/wiki/source , after following the svn repository explanation if I open eclipse and I try to open the project which I have just download, I cannot see the sources, I mean, I don't know where are the .cpp or .h of the project. Should I go to other directory or website to get just the sources (without compiling)?
On the other hand, if I want to crosscompile the bundle for an arm architecture,(I have already read this post http://www.ietf.org/mail-archive/web/dtn-users/current/msg00198.html), I'm using the following command for configuring the crosscompiling
t@t-ThinkCentre-M57e:~/ibrdtn-svn$ ./configure --host=i686-linux --target=arm-mv5sft-linux-gnueabi CC=~/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/arm-mv5sft-linux-gnueabi-gcc
and then I do
t@t-ThinkCentre-M57e:~/ibrdtn-svn$ make
However, I get an compilation error which can be read at the end the following compiling output
/home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) /home/t/M/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/../lib/gcc/arm-mv5sft-linux-gnueabi/4.3.2/../../../../arm-mv5sft-linux-gnueabi/bin/ld: api/.libs/libapi.a(BLOBBundle.o): Relocations in generic ELF (EM: 3) api/.libs/libapi.a(BLOBBundle.o): could not read symbols: File in wrong format collect2: ld returned 1 exit status make[4]: *** [libibrdtn.la] Error 1 make[4]: Leaving directory `/home/t/ibrdtn-svn/ibrdtn/ibrdtn' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/t/ibrdtn-svn/ibrdtn/ibrdtn' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/t/ibrdtn-svn/ibrdtn/ibrdtn' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/t/ibrdtn-svn/ibrdtn' make: *** [all-recursive] Error 1
Thanks in advance,
Juan
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.