I want to keep my package brand new, here is the process of compile 'transmission' in my NextVod box. ref: https://trac.transmissionbt.com/wiki/Building
There are two methods for build transmission.
- In nextvod: Inside debian system of nextvod
- In PC: Use cross comipler of STLinux 2.3
Method 1: In nextvod
- prerequisite:
- debian system in nextvod
- packages: sudo apt-get install intltool libssl-dev libcurl4-openssl-dev
- build libevent
- wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
- tar xf libevent-2.0.21-stable.tar.gz
- ./configure && make && make verify && sudo make install
- build transmission
- wget http://mirrors.m0k.org/transmission/files/transmission-2.73.tar.xz
- tar xf transmission-2.73.tar.xz
- ./configure --enable-utp --enable-cli --enable-daemon --enable-lightweight \
--enable-nls --without-gtk --prefix=/usr/ - make
- sudo make install
Method 2: In PC
Here we test the transmission 2.76 version.
- ./configure --host=sh4-linux \
--enable-utp --enable-cli --enable-daemon --enable-lightweight \
--disable-nls --without-gtk --prefix=$PWD/pkg/usr/ - make
- fakeroot make install
- fakeroot tar -C$PWD/pkg -cJf transmission-cli-2.76-1.txz usr
Problem Solved(or, Solving):
- Q:What's the differences between --build,--target,--host?
A: English, Chinese description. - Q: In nextvod: ./configure Message: No package 'ssl' found
A: sudo apt-get install libssl-dev - Q: In nextvod: ./configure Message: No package 'libcurl' found
A: sudo apt-get install libcurl4-openssl-dev - Q: In nextvod: ./configure Message: No package 'libevent' found
A: build manually (the package in apt lenny repository is old) - Q: In nextvod: ./configure Message: configure: error: Package requirements (libevent >= 2.0.10) were not met
A: - The lenny debian contains libevent 1.3e-3
- install libevent
- Q: In PC: ./configure checking for LIBCURL. Perhaps you should add the directory containing `libcurl.pc' to the PKG_CONFIG_PATH environment variable PKG_CONFIG_PATH environment variable.
A: - sshpkg -Ss curl # found it stlinux23-sh4-curl-dev
- export B=/opt/STM/STLinux-2.3/devkit/sh4/target
- export PKG_CONFIG_PATH=$B/usr/lib/pkgconfig
- Q:In PC:LIBEVENT... configure: error: Package requirements (libevent >= 2.0.10) were not met
A: install libevent to cross compiler subdirectory - ./configure --host=sh4-linux --prefix=$B/usr
- make && make install
- Q:In PC: intltool-update: command not found. Your intltool is too old. You need intltool 0.35.0 or later
A: It could not build under cross compiler, because it depends on perl. So, just --disable-nls - Q:In PC:configure: error: XML::Parser perl module is required for intltool
A: It could not build under cross compiler, because it depends on perl.
Update History
- 2012/12/04 build 2.73 on chroot debian of nextvod
- 2013/01/12 build 2.76 on STLinux 2.3 cross compiler environment
沒有留言:
張貼留言