Open CesMak opened 4 years ago
Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.
Looks like the generated message header include\visualization_msgs/Marker.h
is broken.
Either the generation is indeed broken (which is unlikely) or there was a build race condition, because package dependencies were not correctly modeled.
Could you try to build visualization_msgs
first? If the failure remains, the generation is broken and you should report the issue at https://github.com/ros/gencpp.
Hm well under my Ubuntu 16.04 (kinetic) all works fine.
Well I think I already have on Win10 (melodic)
C:\Windows\System32>roscd visualization_msgs C:\opt\ros\melodic\x64\share\visualization_msgs>
Or do I need an other visualization msgs package?
No, that's the only visualization_msgs
package available and needed.
However, the error message clearly states:
C:\opt\ros\melodic\x64\include\visualization_msgs/Marker.h(132): error C2143: Syntaxfehler: Es fehlt "}" vor "("
C:\opt\ros\melodic\x64\include\visualization_msgs/Marker.h(140): note: Siehe Verweis auf die gerade kompilierte Klasse Vorlage-Instanziierung "visualization_msgs::Marker_<ContainerAllocator>".
...
C:\opt\ros\melodic\x64\include\visualization_msgs/Marker.h(132): error C2059: Syntaxfehler: "Konstante"
C:\opt\ros\melodic\x64\include\visualization_msgs/Marker.h(134): error C2143: Syntaxfehler: Es fehlt ";" vor "}" C:\opt\ros\melodic\x64\include\visualization_msgs/Marker.h(134): error C2238: Unerwartete(s) Token vor ";"
which indicates that the issue is in those headers. Could you post those lines?
Try to reinstall the visualization_msgs
package?
Hm I also thought that I need to install:
C:\Windows\System32>choco upgrade ros-melodic-moveit-visual-tools Chocolatey v0.10.15 Upgrading the following packages: ros-melodic-moveit-visual-tools By upgrading you accept licenses for the packages. ros-melodic-moveit-visual-tools is not installed. Installing... ros-melodic-moveit-visual-tools not installed. The package was not found with the source(s) listed.
Cause I required this package when using kinetic in ubuntu. But it also fails to install.
moveit-visual-tools
is a utility package, e.g. used in moveit_tutorials
. It's not required by MoveIt itself.
Did anyone of you find a solution ? I still found none.....
C:\opt\ros\melodic\x64\include\visualization_msgs/Marker.h(132): error C2059: syntax error: 'constant'
I looked into the above error and the issue originates in C:\ws_moveit\src\moveit_tutorials\doc\perception_pipeline\src\cylinder_segment.cpp
A file which included the window.h header (pcl) was included before a file which included (marker.h via planning_scene_interface.h). This is problematic because marker.h defines DELETE as an enum member after DELETE was defined as a macro in windows.h.
PR with a fix coming shortly
Hey there, trying to build moveit_tutorials on win10 but it fails:
catkin_make --only-pkg-with-deps moveit_tutorials
Any ideas how to solve this issue?