rtorrent交叉編譯

2021-04-30 09:59:38 字數 1888 閱讀 8343

體系結構說明:

build system type... i686-pc-linux-gnu

host system type... mipsel-unknown-linux-gnu

一、 所需**:

libsigc++-2.2.3  libsigc++-2.2.3.tar.gz  libtorrent-0.12.2.tar.gz  rtorrent-0.8.2.tar.gz

openssl-0.9.8b.tar.tar        curl-7.19.3.tar.gz 二、

[sutianzhu@localhost libsigc++-2.2.3]$

安裝:

./configure --prefix=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/ --host=mipsel-linux

make&&make install

二、 openssl-0.9.8b.tar.tar

安裝:

【由於缺少此檔案

/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/include/openssl/rc4.h 】

./configure linux-mipsel -db_endian linux:' mipsel-linux-gcc' --prefix=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir

make&&make install

新增此行

vim configure:

1170 $ranlib="mipsel-linux-ranlib"; 三、

[root@localhost curl-7.19.3]

編譯:

./configure --prefix=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/ --host=mipsel-linux  --with-ssl=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/ssl --with-zlib=/home/sutianzhu/proj-mips-linux/zlib-1.2.3/zlibinstall/ --with-gnu-ld=mipsel-linux-ld

三、 錯誤解決: 1

、/dev/urandom

、execinfo.h

不能執行問題:

修改有關選項:讓對應項等於

「no」

具體如下:

錯誤:checking for execinfo.h... configure: error: cannot run test program while cross compiling

修改:19777   if test "$cross_compiling" =no ; then

錯誤:不能開啟

/dev/urandom

或者不存在

修改:25471   test "$cross_compiling" = no && 2

、在板子上執行出現如下問題:

error opening terminfo:vt102

則在板子上修改如下檔案:

export term=vt100

export terminfo=/mnt/sj/terminfo

mkdir /mnt/sj/terminfo/v -p

cp /usr/share/terminfo/v/vt100  /mnt/sj/terminfo/v/

編譯 交叉編譯

交叉編譯含義 是指在乙個平台上生成另乙個平台上的可執行 同乙個體系結構可以執行不同的作業系統,同樣乙個作業系統也可以在不同的體系結構上執行 例 常說的x86 linux平台 指inter x86體系結構及linux for x86作業系統 x86 winnt平台 指inter x86體系結構及win...

交叉編譯(2) 交叉編譯鏈

什麼是交叉編譯鏈 明白了什麼是交叉編譯,那我們來看看什麼是交叉編譯鏈。首先編譯過程是按照不同的子功能,依照先後順序組成的乙個複雜的流程,如下圖 那麼編譯過程包括了預處理 編譯 彙編 鏈結等功能。既然有不同的子功能,那每個子功能都是乙個單獨的工具來實現,它們合在一起形成了乙個完整的工具集。同時編譯過程...

交叉編譯 Go 交叉編譯 跨平台編譯

golang 支援交叉編譯,在乙個平台上生成另乙個平台的可執行程式 cgo enabled 0 goos linux goarch amd64 go build main.go cgo enabled 0 goos windows goarch amd64 go build main.go cgo ...