2010-03-19 66 views
1

我正在嘗試在Gumstix Overo上使用ROS框架進行交叉編譯boost。我一直在這裏發佈的說明(需要時修改腳本),但是我遇到了一個問題,即bjam不能正確編譯boost。在Gumstix Overo上使用GumROS進行交叉編譯Boost

我打電話的bjam如下:

# boost 
if [ ! -f /opt/gumros/lib/libboost_date_time-gcc41-mt-1_38.so ] ; then 
    if [ ! -f boost_1_38_0.tar.gz ] ; then 
    wget --tries=10 http://heanet.dl.sourceforge.net/sourceforge/boost/boost_1_38_0.tar.gz 

    fi 
# tar xzf boost_1_38_0.tar.gz 
    cd boost_1_38_0 
    GPP_PATH=${OVEROTOP}/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/bin/g++ 
    GPP_VER=`${GPP_PATH} -v 2>&1 | tail -1 | awk '{print $3}'` 
    echo "using gcc : ${GPP_VER} : ${GPP_PATH} ; " > tools/build/v2/user-config.jam 
    sudo apt-get install bjam 
    set +o errexit 
    sudo bjam --toolset=gcc-${GPP_VER} --prefix=/opt/gumros --with-date_time install     
    set -o errexit 
    cd .. 
else 
    echo "boost appears to be already installed; skipping." 
fi 
if [ ! -f /opt/gumros/lib/libboost_date_time-gcc41-mt-1_38.so ] ; then 
    echo "Failed to compile libboost_date_time"; 
    exit; 
fi 

我檢查用戶配置,以確保一切是猶太教以及確保該GPP_PATH是正確的。然而,當我運行該腳本我遇到編譯錯誤,如:

讀取軟件包列表...完成正在 依賴關係樹讀取狀態 信息...完成的bjam已經 最新版本。 0升級,0 新安裝,0刪除和5不是 升級。 ...耐心......發現 14370目標......更新14 目標... gcc.compile.C++ bin.v2/libs/date_time/build/gcc-4.3.3/release /threading-multi/gregorian/greg_month.o 克++:錯誤嘗試執行 'cc1plus': execvp:沒有這樣的文件或目錄

"/home/andrew/overo-oe/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/bin/g++" 

-ftemplate深入-128 -O3 -finline函數-Wno -inline -Wall -pthread -fPIC -DBOOST_ALL_DYN_LINK = 1 -DBOOST_ALL_NO_LIB = 1 -DDATE_TIME_INLINE -DNDEBUG -I「。」 -c -o「bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_month.o」 「libs/date_time/src/gregorian/greg_month.cpp」

...失敗gcc.compile.C++ bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_month.o ... gcc.compile.C++ bin。 V2 /庫/ DATE_TIME /建設/ GCC-4.3.3 /發行/線程的多/陽曆/ greg_weekday.o G ++:錯誤嘗試執行 'cc1plus': execvp:沒有這樣的文件或目錄

"/home/andrew/overo-oe/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/bin/g++" 

-template-depth-128 -O3 -finline-func t -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_DYN_LINK = 1 -DBOOST_ALL_NO_LIB = 1 -DDATE_TIME_INLINE -DNDEBUG -I「。」 -c -o「bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_weekday.o」 「libs/date_time/src/gregorian/greg_weekday.cpp」

...失敗gcc.compile.C++ bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_weekday.o ... gcc.compile.C++ bin。 V2 /庫/ DATE_TIME /建設/ GCC-4.3.3 /發行/線程的多/陽曆/ date_generators.o G ++:錯誤嘗試執行 'cc1plus': execvp:沒有這樣的文件或目錄

等等...

僅供參考,我正在使用本教程來幫助我。 http://www.ros.org/wiki/gumros

+0

@amelim:line 2> here <,where? – Lazer 2010-05-13 19:56:35

回答

1

是否運行

"/home/andrew/overo-oe/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/bin/g++" 
-ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -I"." -c -o "bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_weekday.o" 
"libs/date_time/src/gregorian/greg_weekday.cpp" 

用手給予同樣的錯誤?如果是這樣,似乎你的編譯器可能被錯誤地安裝。

+0

絕對不正確的編譯器安裝。安裝g ++ - arm * – 2011-12-01 00:23:04