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

Build fails with errors #9

Closed
omerts opened this issue Nov 29, 2022 · 6 comments
Closed

Build fails with errors #9

omerts opened this issue Nov 29, 2022 · 6 comments
Assignees
Labels
verify to close Waiting on confirm issue is resolved

Comments

@omerts
Copy link

omerts commented Nov 29, 2022

Hello,

Trying to build this project on Ubuntu 22.04, and it fails with the following errors:

/home/amram/development/nakai/packages/nakai-onboard/src/isaac_ros_nitros/isaac_ros_nitros/gxf/include/gxf/std/parameter_storage.hpp:1:1: note: ‘std::unique_lock’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
  +++ |+#include <mutex>
    1 | /*
/home/amram/development/nakai/packages/nakai-onboard/src/isaac_ros_nitros/isaac_ros_nitros/gxf/include/gxf/std/parameter_storage.hpp:50:45: error: expected primary-expression before ‘>’ token
   50 |     std::unique_lock<std::shared_timed_mutex> lock(mutex_);
      |                                             ^
/home/amram/development/nakai/packages/nakai-onboard/src/isaac_ros_nitros/isaac_ros_nitros/gxf/include/gxf/std/parameter_storage.hpp:50:47: error: there are no arguments to ‘lock’ that depend on a template parameter, so a declaration of ‘lock’ must be available [-fpermissive]
   50 |     std::unique_lock<std::shared_timed_mutex> lock(mutex_);`

...

/home/amram/development/nakai/packages/nakai-onboard/src/isaac_ros_nitros/isaac_ros_nitros/gxf/include/gxf/std/parameter_storage.hpp:92:10: error: ‘unique_lock’ is not a member of ‘std’
   92 |     std::unique_lock<std::shared_timed_mutex> lock(mutex_);
      |          ^~~~~~~~~~~
/home/amram/development/nakai/packages/nakai-onboard/src/isaac_ros_nitros/isaac_ros_nitros/gxf/include/gxf/std/parameter_storage.hpp:92:10: note: ‘std::unique_lock’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
@omerts
Copy link
Author

omerts commented Nov 29, 2022

Seems like adding #include <mutex> as suggested in the error solved the problem. I don't mind creating a PR for it, but I am not sure that this is the correct fix.

@wep21
Copy link

wep21 commented Dec 1, 2022

#8 may fix this issue.

@jaiveersinghNV jaiveersinghNV self-assigned this Dec 6, 2022
@jaiveersinghNV
Copy link
Contributor

Thanks for the contribution, we will confirm that the changes work on our end and include them in our next release.

@jaiveersinghNV jaiveersinghNV added the enhancement New feature or request label Dec 6, 2022
@hemalshahNV hemalshahNV added bug Something isn't working and removed enhancement New feature or request labels Jan 31, 2023
@reinzler
Copy link

reinzler commented Jun 4, 2023

Have same issue, how did you solved it?

@jaiveersinghNV jaiveersinghNV added verify to close Waiting on confirm issue is resolved and removed bug Something isn't working labels Jun 5, 2023
@jaiveersinghNV
Copy link
Contributor

@reinzler , the specific compilation issue reported in this thread was solved with the latest Isaac ROS DP3.1 release. If you're still experiencing this specific issue, please try updating to the latest release and building again.

If you're encountering an unrelated issue with isaac_ros_nitros, please open a new GitHub Issue and we'll take a look in that thread. Thanks!

@nakai-omer
Copy link

nakai-omer commented Jul 10, 2023

Verified as fixed in latest version. Thanks. @jaiveersinghNV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verify to close Waiting on confirm issue is resolved
Projects
None yet
Development

No branches or pull requests

6 participants