C200:Transmission

From Lundman Wiki
Revision as of 23:17, 15 October 2009 by Lundman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Transmission

First, I had to install intltool-0.40.6.tar.gz on the host platform:

# wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
# tar -zxvf intltool-0.40.6.tar.gz 
# cd intltool-0.40.6
# ./configure
# make
# sudo make install

Ok, lets get started. First we want to make it much easier to do Little-Endian:

# sudo bash
root# cd /usr/local/mips-4.3/bin           # This is my CodeSourcery place, where mips-linux-gnu-gcc and others, live.
root# wget http://www.lundman.net/ftp/nmt/c200_gcc_setup.sh
root# chmod 755 c200_gcc_setup.sh
root# ./c200_gcc_setup.sh
root# exit
# mipsel-linux-gnu-gcc
mips-linux-gnu-gcc: no input files


Time to get the sources:

# mkdir ger
# cd ger
#  wget http://www.openssl.org/source/openssl-0.9.8i.tar.gz
#  wget http://curl.haxx.se/download/curl-7.19.6.tar.gz
#  wget http://www.zlib.net/zlib-1.2.3.tar.gz
#  wget http://mirrors.m0k.org/transmission/files/transmission-1.75.tar.bz2
#  tar -zxf curl-7.19.6.tar.gz 
#  tar -zxf openssl-0.9.8i.tar.gz 
#  tar -zxf zlib-1.2.3.tar.gz 
#  tar -jxf transmission-1.75.tar.bz2 

OpenSSL:

#  cd openssl-0.9.8i
#  export cross=mipsel-linux-gnu-
#  ./Configure dist
#  make CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"
#  cd ..

zlib:

#  cd zlib-1.2.3
#  CC=mipsel-linux-gnu-gcc ./configure
#  make
#  cd ..

curl:

#  cd curl-7.19.6
#  ./configure --host=mipsel-linux-gnu --with-ssl=/home/lundman/ger/openssl-0.9.8i --with-zlib=/home/lundman/ger/zlib-1.2.3
#  make
#  cd ..

curl may need to be recompiled to properly see zlib and ssl, perhaps. Note the paths have to be absolute. "../" will not work.

transmission:

#  cd transmission-1.75
#  ./configure --host=mipsel-linux-gnu --with-ssl=/home/lundman/ger/openssl-0.9.8i --with-zlib=/home/lundman/ger/zlib-1.2.3 LIBCURL_CFLAGS=-I/home/lundman/ger/curl-7.19.6/include LIBCURL_LIBS="-L/home/lundman/ger/curl-7.19.6/lib/.libs/ -lcurl" OPENSSL_CFLAGS=-I/home/lundman/ger/openssl-0.9.8i/include OPENSSL_LIBS="-L/home/lundman/ger/openssl-0.9.8i/ -lcrypto -lssl"
#  make
#  ls -l daemon/.libs/transmission-daemon cli/.libs/transmissioncli 
-rwxr-xr-x 1 lundman lundman 5885129 2009-10-15 13:14 cli/.libs/transmissioncli
-rwxr-xr-x 1 lundman lundman 5869887 2009-10-15 13:14 daemon/.libs/transmission-daemon
#
#  file daemon/.libs/transmission-daemon cli/.libs/transmissioncli 
daemon/.libs/transmission-daemon: ELF 32-bit LSB executable, MIPS, MIPS64 version 1, dynamically linked (uses shared libs), for GNU/Linux 2.6.12, not stripped
cli/.libs/transmissioncli:        ELF 32-bit LSB executable, MIPS, MIPS64 version 1, dynamically linked (uses shared libs), for GNU/Linux 2.6.12, not stripped