[ros-users] boost errors with tf?

Josh Faust jfaust at willowgarage.com
Thu Aug 26 04:55:44 UTC 2010


Here's an explanation of what's going on:
http://www.boost.org/doc/libs/1_44_0/doc/html/signals/s04.html

<http://www.boost.org/doc/libs/1_44_0/doc/html/signals/s04.html>Short
version: qt #defines "signals" and "slots".  Ugh.

Josh

On Wed, Aug 25, 2010 at 5:43 PM, Adam Leeper <aleeper at stanford.edu> wrote:

> Thanks Josh. I moved the <tf/tf.h> line around, and discovered that it must
> come before <QtGUI>.
>
> I was having a similar problem with some other packages that (I now see)
> also use tf, but putting all the ROS stuff before the Qt stuff seems to
> solve everything.
>
> --Adam
>
>
> Adam Leeper
> Stanford University
> aleeper at stanford.edu
> 719.358.3804
>
>
> On Wed, Aug 25, 2010 at 4:53 PM, Josh Faust <jfaust at willowgarage.com>wrote:
>
>> What happens if you make the tf.h include the first include in the file?
>>
>> Josh
>>
>> On Wed, Aug 25, 2010 at 2:48 PM, Adam Leeper <aleeper at stanford.edu>wrote:
>>
>>> Hello-
>>>
>>> I'm working on making a simple test file that reproduces the problem, but
>>> in the mean time, does anyone recognize the following errors with Boost?
>>>
>>> I've narrowed it down to when I have #include for tf/tf.h, but I've used
>>> tf in the past with no problems. I suspect it might have something to do
>>> with the fact that my program is built in Qt, but like I said I am still
>>> trying to investigate.
>>>
>>> Anyway, I figured I'd throw it out there in case someone has already
>>> solved something like this.
>>>
>>> (Ubuntu 10.04 64-bit, cturtle all up-to-date as of today, Boost seems to
>>> claim it is 1.40)
>>>
>>> Thanks!
>>> --Adam
>>>
>>>
>>>
>>> In file included from /usr/include/boost/signals/connection.hpp:13,
>>>                  from /usr/include/boost/signals/signal_template.hpp:18,
>>>                  from /usr/include/boost/signals/signal0.hpp:24,
>>>                  from /usr/include/boost/signal.hpp:19,
>>>                  from /usr/include/boost/signals.hpp:9,
>>>                  from
>>> /opt/ros/cturtle/stacks/geometry/tf/include/tf/tf.h:45,
>>>                  from
>>> /home/aleeper/ros/cs324/users/aleeper/disney_executive/src/disney_gui.cpp:31:
>>> /usr/include/boost/signals/detail/signals_common.hpp:26: error: expected
>>> identifier before ‘protected’
>>> /usr/include/boost/signals/detail/signals_common.hpp:26: error: expected
>>> unqualified-id before ‘protected’
>>> /home/aleeper/ros/cs324/users/aleeper/disney_executive/src/disney_gui.cpp:472:
>>> error: expected ‘}’ at end of input
>>> make[3]: *** [CMakeFiles/exec.dir/src/disney_gui.o] Error 1
>>> make[3]: Leaving directory
>>> `/home/aleeper/ros/cs324/users/aleeper/disney_executive/build'
>>> make[2]: *** [CMakeFiles/exec.dir/all] Error 2
>>> make[2]: Leaving directory
>>> `/home/aleeper/ros/cs324/users/aleeper/disney_executive/build'
>>> make[1]: *** [all] Error 2
>>> make[1]: Leaving directory
>>> `/home/aleeper/ros/cs324/users/aleeper/disney_executive/build'
>>> make: *** [all] Error 2
>>>
>>>
>>>
>>>
>>>
>>>
>>> Adam Leeper
>>> Stanford University
>>> aleeper at stanford.edu
>>> 719.358.3804
>>>
>>> _______________________________________________
>>> ros-users mailing list
>>> ros-users at code.ros.org
>>> https://code.ros.org/mailman/listinfo/ros-users
>>>
>>>
>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>>
>>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100825/37165904/attachment-0003.html>


More information about the ros-users mailing list