Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some question about building with custom messages in standalone mode #72

Open
Hezhexi2002 opened this issue Jun 9, 2023 · 4 comments
Open

Comments

@Hezhexi2002
Copy link

@pijaro Hi,sorry to bother you here,but I meet some problem when I attempt to build it with my custom messages,the output of ./build.sh --standalone --clean-install is shown below:

Summary: 23 packages finished [5min 7s]
  1 package failed: auto_aim_interfaces
  7 packages aborted: diagnostic_msgs nav_msgs sensor_msgs shape_msgs tf2 tf2_msgs trajectory_msgs
  22 packages had stderr output: action_msgs actionlib_msgs auto_aim_interfaces builtin_interfaces composition_interfaces diagnostic_msgs example_interfaces geometry_msgs lifecycle_msgs nav_msgs rcl_interfaces ros2cs_core rosgraph_msgs sensor_msgs shape_msgs statistics_msgs std_msgs std_srvs test_msgs tf2_msgs trajectory_msgs unique_identifier_msgs
  18 packages not processed
Ros2cs build failed!

as you can see the custom message is auto_aim_interfaces which is failed during building and here is the message in auto_aim_interfaces's stderr.log:

�[0mCMake Error: The source directory "/root/ros2-for-unity/src/ros2cs/custom_messages/rm_auto_aim/auto_aim_interfaces" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.�[0m
gmake: *** [Makefile:4039: cmake_check_build_system] Error 1

I'm guessing that the source directory /root/ros2-for-unity/src/ros2cs/custom_messages/rm_auto_aim/auto_aim_interfaces does not exist is because I used to set the remote repo in ros2_for_unity_custom_messages.repos but it should not happen because now I just put the auto_aim_interfaces next to other packages in the src/ros2 sub-folder.Actually the package is needed by the project rm_vision_simulator which is originally using ros2-for-unity 1.2.0 release,However,I want to build the ros2-for-unity in standalone mode in order to run the simulator without ros2 installation of the host.I'm not sure if I only need to build ros2-for-unity with auto_aim_interfaces or the entire rm_auto_aim,hope you can give me some advice!:-)

@pijaro
Copy link
Collaborator

pijaro commented Jun 16, 2023

Putting the message package manually should work fine 🤔

Out of curiosity, if you rerun the build command, does it fix the problem or is it persistent?

@Hezhexi2002
Copy link
Author

Putting the message package manually should work fine 🤔

Out of curiosity, if you rerun the build command, does it fix the problem or is it persistent?

sorry to response so lately,actually it will still give the error message even when I rerun the command,but the author of rm_vision_simulator has told me that the repo doesn't need to build the ros2-for-unity with custom message

@Hezhexi2002
Copy link
Author

Putting the message package manually should work fine 🤔
Out of curiosity, if you rerun the build command, does it fix the problem or is it persistent?

sorry to response so lately,actually it will still give the error message even when I rerun the command,but the author of rm_vision_simulator has told me that the repo doesn't need to build the ros2-for-unity with custom message

the error still exists even if I remove the custom message to build:
image

@pijaro
Copy link
Collaborator

pijaro commented Jun 28, 2023

Hmm, I can't see any errors on the provided screenshot. 🤔

Some packages had a stderr output, but that doesn't mean that there are actual errors. The build system just uses stderr output to print some warnings at some point. You can ignore it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants