首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用GumROS交叉编译Boost在Gumstix上使用

用GumROS交叉编译Boost在Gumstix上使用
EN

Stack Overflow用户
提问于 2010-03-19 03:18:13
回答 1查看 1.3K关注 0票数 1

我正在尝试交叉编译boost,以便与Gumstix上的ROS框架一起使用。我一直遵循这里发布的说明(在需要的时候修改脚本),但是我遇到了一个问题,bjam无法正确编译boost。

我称布贾姆如下:

代码语言:javascript
复制
# 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

EN

回答 1

Stack Overflow用户

发布于 2010-03-25 18:00:28

代码语言:javascript
复制
"/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"

用手给出同样的错误?如果是这样的话,您的编译器可能安装得不正确。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2474772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档