-
Notifications
You must be signed in to change notification settings - Fork 34
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
Added windows support #273
base: rolling
Are you sure you want to change the base?
Changes from 4 commits
50a3ba2
16325a4
78a36c2
31b712e
263f4eb
ebc41f2
d89b1f4
ce1d2fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
#include "../detail/zenoh_config.hpp" | ||
#include "../detail/liveliness_utils.hpp" | ||
|
||
#include "rcutils/env.h" | ||
#include "rmw/error_handling.h" | ||
|
||
#include "rcpputils/scope_exit.hpp" | ||
|
@@ -63,7 +64,7 @@ int main(int argc, char ** argv) | |
// If not already defined, set the logging environment variable for Zenoh router | ||
// to info level by default. | ||
// TODO(Yadunund): Switch to rcutils_get_env once it supports not overwriting values. | ||
if (setenv(ZENOH_LOG_ENV_VAR_STR, ZENOH_LOG_INFO_LEVEL_STR, 0) != 0) { | ||
if (rcutils_set_env_overwrite(ZENOH_LOG_ENV_VAR_STR, ZENOH_LOG_INFO_LEVEL_STR, 0) != 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be better to leave the switch to |
||
RMW_SET_ERROR_MSG("Error configuring Zenoh logging."); | ||
return 1; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ set(ZENOHC_CARGO_FLAGS "--no-default-features$<SEMICOLON>--features=zenoh/shared | |
# - https://github.com/eclipse-zenoh/zenoh/pull/1150 (fix deadlock issue https://github.com/ros2/rmw_zenoh/issues/182) | ||
ament_vendor(zenoh_c_vendor | ||
VCS_URL https://github.com/eclipse-zenoh/zenoh-c.git | ||
VCS_VERSION 548ee8dde0f53a58c06e68a2949949b31140c36c | ||
VCS_VERSION 134dbfa06ca212def5fb51dd8e816734dfd8dff6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With #269 merged, the commit version is the latest |
||
CMAKE_ARGS | ||
"-DZENOHC_CARGO_FLAGS=${ZENOHC_CARGO_FLAGS}" | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
z_closure
is a define which I believe use syntax that it's not compatible with the windows compilerThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. It would be good to document this. Also let's add a function
make_z_closure()
to theanonymous namesapce
that constructs and returns thez_owned_closure_zid_t
. That way we implement it once somewhere and we simply update thez_closure()
calls everywhere tomake_z_closure()
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahcorde I think you may have missed this suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are different
z_owned_closure_*_t
, I can create a template function. Where is the right file to include this new function ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be great! I'd put the function in
detail/rmw_data_types.hpp
right above where thesub_data_handler
is defined!