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

Replace hardcoded __master and __ip arguments with makefile variables and preprocessor variables #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nuclearmistake
Copy link

There could be a centrally located makefile that both would get the value for the master URI and the ROS_IP from, but at least this is a step towards being ideal.

Eventually, the ROS_IP should probably be pulled from the java networking APIs or by parsing the output of "netcfg", and the ROS_MASTER_URI should be pulled from property storage or a chooser in the app, but at least this is more visible to people trying to experiment with roscpp_android.

I cannot yet test these changes as my build is hanging up on orocos-bfl. Will follow up once I get past that hurdle.

nuclearmistake and others added 2 commits September 30, 2015 11:19
…itions

this allows the ROS_MASTER_URI to be inferred from the compiling computer's env.

this commit also bumps a TODO to stop hardcoding up to actual runtime configurability.

Signed-off-by: Eric McCann <[email protected]>
…finitions

this allows the ROS_MASTER_URI to be inferred from the compiling computer's env.

this commit also bumps a TODO to stop hardcoding up to actual runtime configurability.

Signed-off-by: Eric McCann <[email protected]>
@ernestmc
Copy link

Thanks for your contribution Eric. Seems an interesting improvement.
I will be looking at it later.


### End customization region

LOCAL_CFLAGS := -DROS_MASTER_URI="__master:=$(ROS_MASTER_URI)" -DROS_ANDROID_IP="__ip:=$(ROS_ANDROID_IP)"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing single quotes to retain the double quotes on the literal string:
LOCAL_CFLAGS := -DROS_MASTER_URI='"__master:=$(ROS_MASTER_URI)"' -DROS_ANDROID_IP='"__ip:=$(ROS_ANDROID_IP)"'
Please fix this and submit it again so it can be merged.

@ernestmc
Copy link

ernestmc commented Oct 5, 2015

Please address the issues I've marked and let me know so I can merge the code. Also ROS_ANDROID_IP should default to the environment variable if defined.

@ernestmc
Copy link

@nuclearmistake did you see my comments?

jubeira pushed a commit to jubeira/roscpp_android that referenced this pull request Feb 1, 2019
…e-linking

Fix rosbag_storage static linking
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

Successfully merging this pull request may close these issues.

2 participants