Re: [ros-users] Cross-compiling TF --> Bullet

Top Page
Attachments:
Message as email
+ (text/plain)
+ Makefile.bullet.patch (text/x-diff)
Delete this message
Reply to this message
Author: Daniel Maier
Date:  
To: ros-users
Subject: Re: [ros-users] Cross-compiling TF --> Bullet
Hi Brian,

not really worth a patch but for me this is all it took to cross-compile
bullet correctly.

Daniel

On Thu, May 20, 2010 at 09:09:51AM -0700, Brian Gerkey wrote:
> hi Daniel,
>
> Cross-compilation is not a well-exercised feature of ROS, so I'm not
> surprised that you're running into some trouble. The 3rdparty
> packages (e.g., bullet) are the most likely to be problems. We'd
> happily accept patches that makes those packages cross-compile
> correctly.
>
>     brian.

>
> On Thu, May 20, 2010 at 6:27 AM, Daniel Maier
> <> wrote:
> > Hi!
> >
> > I am (still) trying to cross compile  ROS for the NAO robot.
> > The rostoolchain.cmake is set up correctly and it looks like the ROS base
> > system also built correctly. However a call to rosmake tf fails once it is
> > building bullet.
> > (The exact error is probably not so important but the linker was
> > basically missing crt1.o, I guess due to some missing flags).
> >
> > If I understand this correctly, the Makefile.bullet is responsible for
> > this problem as it calls cmake without the -DCMAKE_TOOLCHAIN_FILE
> > argument. I edited the file manually and now it seems like bullet (and tf)
> > and the error is gone.
> >
> > Just wanted to let you know, and check whether I am doing something
> > wrong or not.
> >
> > Best,
> > Dan
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > ros-users mailing list
> >
> > https://lists.sourceforge.net/lists/listinfo/ros-users
> > _______________________________________________
> > ros-users mailing list
> >
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users

--- Makefile.bullet    2010-05-26 14:06:10.000000000 +0200
+++ Makefile.bullet    2010-05-26 14:09:37.000000000 +0200
@@ -51,7 +51,7 @@



 installed: $(SOURCE_DIR)/unpacked Makefile.bullet
-    cd $(SOURCE_DIR) && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR) -DCMAKE_CXX_FLAGS="-fPIC -DBT_USE_DOUBLE_PRECISION" -D BUILD_SHARED_LIBS=on . 
+    cd $(SOURCE_DIR) && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR) -DCMAKE_CXX_FLAGS="-fPIC -DBT_USE_DOUBLE_PRECISION" -D BUILD_SHARED_LIBS=on -DCMAKE_TOOLCHAIN_FILE=$(ROS_ROOT)/rostoolchain.cmake . 
     # Bullet appears not be parallel-make safe
     #cd $(SOURCE_DIR) && make $(PARALLEL_JOBS) 
     cd $(SOURCE_DIR) && make $(BULLET_TARGETS)