Portaal Portaal Pingviini veeb foorumi pealeht
  Viki  |  IRC  |  Otsing  |  Küsimused ja vastused  |  Profiil  |  Privaatsõnumite vaatamiseks logi sisse  | Logi sisse või Registreeru
<empty>
Vaata järgmist teemat
Vaata eelmist teemat

Postita uus teemaVasta teemale
Autor Sõnum
karlsson


Pingviini aktivist
Pingviini aktivist



Liitunud: 30.09.2011
Postitused: 122


niger.gif
postituspostitatud: 01.11.2014, 16:34  postituse pealkiri:  mldonkey cross-compile probleem  

Üritan lauaarvutis kompileerida mldonkey binaari võrgukettale. Siiani olen jälginud seda õpetust http://dns323.kood.org/howto:crosscompile
Järjekorras sai ette antud käsud
Kood:
# cd /home/aare
# tar xjf cross-compiler-armv5l.tar.bz2
# export PATH=/home/aare/cross-compiler-armv5l/bin:$PATH
# export CC=armv5l-gcc

Sellega siis peaks ok olema.
Mldonkey käsud:
Kood:
# tar xjf mldonkey-3.1.5.tar.bz2
# cd mldonkey-3.1.5/
# sudo apt-get install ocaml
# sudo apt-get install ocaml-nox ocaml-native-compilers
# sudo apt-get install zlib1g
# sudo apt-get install zlib1g-dev
# ./configure --prefix=/ffp --disable-multinet --enable-donkey --disable-donkeysui --enable-batch CC="armv5l-gcc" CXX="armv5l-g++" --build=i686-pc-linux-gnu --host=armv5l-unknown-linux

ja väljuv logi on selline:
Kood:
checking for armv5l-unknown-linux-gcc... armv5l-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether armv5l-gcc accepts -g... yes
checking for armv5l-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... armv5l-gcc -E
checking build system type... i686-pc-linux-gnu
checking host system type... armv5l-unknown-linux-gnu

--------------------------------
     Checking system tools.
--------------------------------
checking for armv5l-unknown-linux-ranlib... no
checking for ranlib... ranlib
configure: WARNING: using cross tools not prefixed with host triplet
checking for gmake... no
checking for make... make
checking if make is GNU make ... yes
checking for bzip2... bzip2
checking for gzip... (cached) bzip2
checking for perl... /usr/bin/perl
checking for rpmbuild... no
checking for rpm... no
checking for wget... wget
----------------------------------------
     Checking system tools finished.
----------------------------------------

--------------------------------
     Checking OCaml compiler.
--------------------------------
checking for ocamlc.opt... /usr/bin/ocamlc.opt
checking for armv5l-unknown-linux-ocamlc... /usr/bin/ocamlc.opt
checking for camlp4... /usr/bin/camlp4
checking for ocamlopt.opt... ocamlopt.opt
checking for ocamlopt... (cached) ocamlopt.opt
checking for ocamldep... ocamldep
checking for ocamllex.opt... ocamllex.opt
checking for ocamllex... (cached) ocamllex.opt
checking for ocamlyacc... ocamlyacc
checking for ocamldoc... ocamldoc
checking for ocamlmktop... ocamlmktop
checking for camlp4... /usr/bin/camlp4
checking for camlp4of... /usr/bin/camlp4 pa_o.cmo pr_o.cmo Camlp4QuotationExpander.cmo Camlp4GrammarParser.cmo
-------------------------------------------
     Checking OCaml 4.01.0 finished.
-------------------------------------------

----------------------------------
     Checking system headers.
----------------------------------
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for setrlimit... yes
checking for getrlimit... yes
checking for strerror_r... yes
checking for strerror... yes
checking for posix_fallocate... no
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... yes
checking for sys/resource.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in.h... yes
checking for netinet/ip.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for poll... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for sys/param.h... yes
checking for sys/mount.h... yes
-------------------------------------------
     Checking system headers finished.
-------------------------------------------

-----------------------------------
     Checking system libraries.
-----------------------------------
----- checking zlib (required)
checking for inflate in -lz... no
Zlib missing, did you install zlib and zlib-developer packages?

See zlib pakk on tegelikult installitud ..
Proovisin ka
Kood:
# sudo apt-get purge zlib1g
# sudo apt-get purge zlib1g-dev
# sudo apt-get install zlib1g
# sudo apt-get install zlib1g-dev

aga sama seis ikka.

--edit--
Kui mldonkey kompileerida arvuti jaoks, siis töötab kõik laitmatult.


ertserts
Vana Pingviin
Vana Pingviin



Liitunud: 31.10.2013
Postitused: 445
Asukoht: Tallinn
Distributsioon: Ubuntu, Debian
estonia.gif
postituspostitatud: 01.11.2014, 20:22  postituse pealkiri:  (teema puudub)  

Kas sa üritad endale kompileerida torrent serverit või klienti?
Arvan et torrent serverit sa vaevalt et hakkad püsti panema.

Netist vaatasin et see MLdonkey on nö. eDonkey2000 kloon. Samasse kategooriasse kukub ka Linuxi puhul aMule (seda vast eriti enam ei kasutata?). Juhul kui sul pole vaja teatud kindla uusima versiooni funktsionaalsust siis võid torrent kliendi (ka serveri) paketid täiesti kätte saada APT repodest, näiteks:

MLdonkey:
kmldonkey - KMLDonkey is an advanced GUI frontend for the MLDonkey P2P core (KDE).
või
mldonkey-gui - Graphical frontend for mldonkey based on GTK+

Transmission:
transmission - lightweight BitTorrent client

Azureus:
azureus - BitTorrent client

Bittornado:
bittornado-gui - bittorrent client with GUI interface

Bittorrent:
bittorrent-gui - Original BitTorrent client - GUI tools

jne.

Mulle endale imponeerib Transmission. Lihtne ja töökindel. Smile

_________________
ertserts@linuxialune:~$ echo;echo Local and Remote IP connections:;netstat -at|sort -k5|grep ESTABLISHED|cut -c20-80;echo

Shadow
Vana Pingviin
Vana Pingviin


Vanus: 49
Liitunud: 17.07.2006
Postitused: 453

Distributsioon: Gentoo
estonia.gif
postituspostitatud: 01.11.2014, 21:01  postituse pealkiri:  (teema puudub)  

Kui õigesti aru sain siis üritab ta kompileerida arm platvormile seda.

Äkki saab panna configure reale - --disable-zlib vms.

_________________
Image

ertserts
Vana Pingviin
Vana Pingviin



Liitunud: 31.10.2013
Postitused: 445
Asukoht: Tallinn
Distributsioon: Ubuntu, Debian
estonia.gif
postituspostitatud: 01.11.2014, 21:28  postituse pealkiri:  (teema puudub)  

Selge, seega sain vast teisiti asjast aru.
Kuid siis võib abi saada järgnevaltelt linkidelt:
sergeysurba
readynas

Netist võib veel otsida binaarsel valmiskujul nimega MLDonkey_3.1.3-arm-0.1.0.bin. Info lingilt spidersoft. Smile

_________________
ertserts@linuxialune:~$ echo;echo Local and Remote IP connections:;netstat -at|sort -k5|grep ESTABLISHED|cut -c20-80;echo

karlsson


Pingviini aktivist
Pingviini aktivist



Liitunud: 30.09.2011
Postitused: 122


niger.gif
postituspostitatud: 02.11.2014, 05:45  postituse pealkiri:  (teema puudub)  

Täpselt nii. Lauaarvutis (ubuntu i686) üritan seda mldonkey klienti kompileerida dns-323 (armv5l) platvormile.
Lauaarvutis kompileerides samale platvormile (i686) ei ole mingeid probleeme. zlib leitakse ja mldonkey klient töötab nagu kellavärk.

Kiirelt proovides, siis täpselt --disable-zlib parameetrit ei tunta. Uurin veel analoogseid parameetreid.

Cross-compile on minu jaoks uus asi ja hobikorras tahaks selle selgeks saada. Kui on soovitusi cross-compile parameetrite osas, siis uuriks huviga.

Ertserts, tänud loetelu eest. Hetkel torrenti jaoks juba ongi Transmission installitud, paraku Mldonkey kasutab muid võgustikke veel (donkey, gnutella) .


Näita (aja järgi):      
Postita uus teemaVasta teemale


Vaata järgmist teemat
Vaata eelmist teemat
Powered by phpBB2 Plus based on phpBB © 2001/7 phpBB Group