http://code.google.com/p/libtorrent/downloads/list
//设置为:export BOOST_ROOT="/d/clib/boost_1.55_0"
$ ./autotool.sh
$ ./configure --prefix=/mingw --enable-examples --enable-tests --enable-logging --build=i686-w64-mingw32 --target=i686-w64-mingw32 --with-openssl=/mingw --with-boost=/d/clib/boost_1.55_0 --with-boost-libdir=/d/clib/boost_1.55_0/stage/lib
{
$ ./configure --prefix=/mingw
--enable-examples
--enable-tests
--enable-logging
--build=i686-w64-mingw32
--target=i686-w64-mingw32
--with-openssl=/mingw
}
//#------------------------------------------------------
//设置--with-openssl值
//--with-openssl设置的路径为openssl的安装路径,将会检测openssl的动态链接库
//因此要重点注意openssl的动态链接库 libssl.dll.a和libcrypto.dll.a是否存在和正常
//openssl(./configure mingw shared --prefix=/mingw)--注意shared参数
//默认只检测/usr和/usr/local之下的bin,include,lib
//#------------------------------------------------------
//--with-boost=/d/clib/boost_1.55_0
//--with-boost-libdir=/d/clib/boost_1.55_0/stage/lib
#==== boost路径设置 ==============================
必须设置3个量才会正常检测到boost
1. export BOOST_ROOT=/d/clib/boost_1.55_0
2. --with-boost=/d/clib/boost_1.55_0
3. --with-boost-libdir=/d/clib/boost_1.55_0/stage/lib
#=================================================
configure出现if。。。fi语法错误,修改configure的错误位置在else fi之间加
任意语句可解决(空时的错误)
if
.........
$as_echo "--10------------------"
else
$as_echo "--11------------------"
fi