2012年11月1日 星期四

Add libupnp into amule with ARM sdk

以下都是在arm sdk

 從sourceforge拉libupnp下來compile沒什麼問題

 ./configure --prefix=/projects/cuh/ARM/upnp --host=arm-none-linux-gnueabi 

問題點發生在amule在configure時一直都無法detect libupnp

 vi configure

有兩個地方

fi
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
$as_echo "$result$resultstr" >&6; }
        libupnp_error="libupnp >= 1.6.6 not found$resultstr"

else

        #result=no
        result=yes
        libupnp_error="cross compiling"

fi





    #if test $cross_compiling = no; then :
    if test $cross_compiling = yes; then :



原因出現在cross_compile, 目前還不知道為什麼amule在cross comile時無法用libupnp 不過這樣修改後就可以compile了


2012-11-01  16:56
使用libupnp 1.6.17會有問題, 改成1.6.6就ok了

0 意見: