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

Problems with include path of libraries in microros #664

Open
N-K1998 opened this issue Sep 18, 2023 · 4 comments
Open

Problems with include path of libraries in microros #664

N-K1998 opened this issue Sep 18, 2023 · 4 comments

Comments

@N-K1998
Copy link

N-K1998 commented Sep 18, 2023

Issue template

  • Hardware description: STM
  • RTOS: freeRTOS
  • Installation type: microros_setup
  • Version or commit hash: iron

Steps to reproduce the issue

I have compiled Microros as a static lib and added it using the compile flags. I have also added the folder libmicroros/include as an include path. However, the code does not find any of the headers because the folders are organized in the following way:
library_name/library_name/header_file.h. That's because the includes are /library_name/headear_file.h. In other words, I am forced to add each folder path as an include path. Is there a way to make it simpler? In the previous version of Microros, the folder organization was /library_name/headear_file.h, and the new version's code still follows that standard.

@pablogs9
Copy link
Member

In other packages, we have script lines that move the folder to the logical location:

https://github.com/micro-ROS/micro_ros_stm32cubemx_utils/blob/3819f6819cee1ff01c3da58ecbc8bfcbf4b0a2a5/microros_static_library/library_generation/library_generation.sh#L77-L87

Please take a look.

It would be great if you could contribute back to this repo the solution.

@N-K1998
Copy link
Author

N-K1998 commented Sep 18, 2023

Basically, is it sufficient to take the folders and put them back into the main include one?

@pablogs9
Copy link
Member

That should be enought

@N-K1998
Copy link
Author

N-K1998 commented Sep 18, 2023

Ok, I try and then I report.

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