我正在尝试交叉编译boost,以便与Gumstix上的ROS框架一起使用。我一直遵循这里发布的说明(在需要的时候修改脚本),但是我遇到了一个问题,bjam无法正确编译boost。
我称布贾姆如下:
# 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未升级。...patience......found 14370目标..。...updating 14目标..。bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_month.o g++:试图执行“cc1plus”:execvp:没有这样的文件或目录时出错
"/home/andrew/overo-oe/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/bin/g++“
-f模板- -O3 -128-O3-finline-函数-Wno-内联-Wall -pthread -fPIC -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -I“-c -o -DNDEBUG-I/date_time/src/gregorian/greg_month.cpp”
bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_month.o... ...failed gcc.compile.c++bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_weekday.o g++:试图执行“cc1plus”:execvp:没有这样的文件或目录时出错
"/home/andrew/overo-oe/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/bin/g++“
-f模板-深度-128 -O3 -finline-函数-Wno-内联-Wall -pthread -fPIC -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -I“
bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/greg_weekday.o... ...failed gcc.compile.c++bin.v2/libs/date_time/build/gcc-4.3.3/release/threading-multi/gregorian/date_generators.o g++:试图执行“cc1plus”:execvp:没有这样的文件或目录时出错
等等..。
作为参考,我正在使用本教程来帮助我。http://www.ros.org/wiki/gumros
发布于 2010-03-25 18:00:28
跑
"/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"用手给出同样的错误?如果是这样的话,您的编译器可能安装得不正确。
https://stackoverflow.com/questions/2474772
复制相似问题