Mldonkey Cross-port

inshar_it

Neuer User
Mitglied seit
17 Feb 2006
Beiträge
39
Punkte für Reaktionen
0
Punkte
0
Hi to all!

I am literally going crazy!
I am trying to cross-compile mldonkey 2.9.1 under DS15.2 toolchain.
As described in the wiki i have added the right PATH with shell command:

export PATH=/home/inshar/fritz_ds_mod/kernel2.6/ds26-15.2/toolchain/target/bin:$PATH

(this is exact path on my system)

After i give the ./configure

LDFLAGS=-static ./configure --host=mipsel-linux --enable-minimum

It seems all goes perfect and at end the configure says me:

Configuring MLDonkey 2.9.1 completed.

Network modules:
- eDonkey enabled (eMule SUI disabled)
- BitTorrent disabled
- FileTP (aka wget) disabled
- Fasttrack disabled
- Gnutella disabled - unmaintained
- Gnutella2 disabled - unmaintained
- Direct Connect disabled
- Open Napster disabled - currently not usable
- Soulseek disabled - currently not usable
- OpenFT disabled - currently not usable

Core features:
- zlib (required) enabled
- threads enabled
- bzip2 disabled
- iconv disabled
- libmagic disabled
- graphical stats disabled

Compilers:
- Ocaml version 3.09.2
- mipsel-linux-gcc version 4.2.0

Now execute 'make' to start compiling. Good luck!

To compile a static code execute: make mlnet.static
To produce a release tarball execute: make release.mlnet.static
To clean the build directory execute: make maintainerclean
root@inshar-desktop:/home/inshar/mldonkey-2.9.1#

Looking in the Compilers i see that is right cross platform (mipsel-gcc-version 4.2.0)

So at this point i give: make mlnet.static
All the compile & linking goes well...
But at the end the executable i get does not work on fritz!
I have tried to execute on UBUNTU machine and it works!!!!:mad:

So it compiles the mlnet.static for i386 and i do not understand why!?:confused:

So where is my mistake??? I am sure there is something i am missing!!!
Thanks a lot in advance
 
How about taking a look at some DS-Mod make includes (make/.../*.mk)? You might want to specify --target and --build as well.
 
As far as I can see ocaml is used instead of gcc. So you will need a ocaml cross-compiler!?

Greets Oliver
 
kriegaex schrieb:
How about taking a look at some DS-Mod make includes (make/.../*.mk)? You might want to specify --target and --build as well.

I do not understand well /*.mk what means , should i look something?
I am not linux compilation expert...
I have used also --target --build but they do not change result...
I think is ocaml problem...
 
olistudent schrieb:
As far as I can see ocaml is used instead of gcc. So you will need a ocaml cross-compiler!?

Greets Oliver

Yes i also think that!
But what should be the directives to build with gcc or make ocaml cross-build?
I fear is needed ocaml cross-build toolchain right?!:confused:
 
Do not double-post, please. Rather edit previous messages ("Ändern" button) instead. And yes, you would need an O'Caml cross-toolchain, if something like this exists for an embedded target. And here I guess we are beginning to leave the domain of this forum. Anyway, there exists an O'Caml Debian package containing the byte-code as well as the native compiler. It is also available for the mipsel platform, so it might run on a Debian system which can either be installed via Debootstrap or downloaded as a pre-fabricated image. Some links for further investigation (but you should learn some Linux and compiling stuff before trying to pursue this any further):
 
Ok!

Thanks for advice...
I will try to compile directly by Debian Fritz Environment.
I will post results once done!
 
Kostenlos!

Statistik des Forums

Themen
247,215
Beiträge
2,263,905
Mitglieder
375,714
Neuestes Mitglied
patricacamacho24