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

ssize_t not declared in this scope #122

Closed
rosterloh opened this issue Mar 1, 2022 · 8 comments
Closed

ssize_t not declared in this scope #122

rosterloh opened this issue Mar 1, 2022 · 8 comments

Comments

@rosterloh
Copy link

Describe the bug
When trying to build micro-ROS-Agent in a ROS 2 source workspace on a Raspberry Pi I get the following errors.

In file included from /home/pi/ros2_galactic/build/micro_ros_agent/agent/src/xrceagent/src/cpp/transport/stream_framing/StreamFramingProtocol.cpp:15:
/home/pi/ros2_galactic/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/transport/stream_framing/StreamFramingProtocol.hpp:98:41: error: ‘ssize_t’ was not declared in this scope; did you mean ‘size_t’?
   98 |     using WriteCallback = std::function<ssize_t (
      |                                         ^~~~~~~
      |                                         size_t

To Reproduce
Steps to reproduce the behaviour:

  1. Setup build environment as here
  2. git clone https://github.com/micro-ROS/micro_ros_msgs.git -b galactic src/uros/micro_ros_msgs
  3. git clone https://github.com/micro-ROS/micro-ROS-Agent.git -b galactic src/uros/micro_ros_agent
  4. colcon build --install-base /opt/ros/galactic --merge-install --packages-up-to micro_ros_agent --cmake-args "-DUAGENT_BUILD_EXECUTABLE=OFF -DUAGENT_P2P_PROFILE=OFF --no-warn-unused-cli"

Expected behaviour
A successful build.

System information:

  • OS: Debian Bullseye 64 bit
  • ROS 2 Galactic
  • Version galactic
@rosterloh
Copy link
Author

Screenshot from 2022-03-01 12-41-20

@rosterloh
Copy link
Author

I think this is related to eProsima/Micro-XRCE-DDS-Agent#297. SuperBuild is using ros2 branch and this fix is in develop

@rosterloh
Copy link
Author

@AntumArk
Copy link

AntumArk commented Mar 1, 2022

Are you running on RPI3b+ or 4?

@rosterloh
Copy link
Author

@AntumArk on a CM 4

@Acuadros95
Copy link
Contributor

Just updated ros2 branch with develop changes, should fix this problem.

@pablogs9
Copy link
Member

pablogs9 commented Mar 1, 2022

Please confirm the fix and we will close

@rosterloh
Copy link
Author

This will definitely fix it. Happy to close

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

4 participants