"__builtin_expect" identifier problem when building trac_ik_python for Windows 10 using VisualStudio2019

Issue #61 new
Abhishek Kashyap created an issue

I’m trying to build trac_ik_python with Microsoft Visual Studio 2019 for Windows 10 and am making use of \trac_ik_python\swig\trac_ik_wrap.i to generate the .pyd file (to be used with Python 2.7 or 3.6, whichever works). I’m using this StackOverFlow post as a guide. I’ve installed/built all dependencies that were missing (boost, console-bridge, tinyxml, etc.) and am now stuck on a __builtin_expect identifier problem that I cannot find any way around. A total of 21 errors are listed:

I’ve attached the automatically generated trac_ik_wrap_wrap.cxx file. Errors were thrown in the lines containing ROS_DEBUG_STREAM_NAMED, ROS_FATAL, ROS_DEBUG_STREAM, and ROS_WARN_STREAM_NAMED. In the other .h files as well, all errors are thrown in ROS related lines. I’ve installed ROS Melodic on Windows (and verified the installation by running roscore), so I don’t think I’m missing any files.

If anyone has successfully built trac-ik-python for Windows, could you please help me out?

Comments (1)

  1. Log in to comment