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

lib_deps = https://github.com/micro-ROS/micro_ros_platformio is not working #146

Open
flux0-0 opened this issue Aug 21, 2024 · 1 comment

Comments

@flux0-0
Copy link

flux0-0 commented Aug 21, 2024

Issue template

  • Hardware descriptionUbuntu 22.04.4 LTS -->
  • Version or commit hash: humble -->

Steps to reproduce the issue

if I save my platform.ino
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = espidf
lib_deps =
https://github.com/micro-ROS/micro_ros_platformio

i have "
Building micro-ROS library
Build mcu micro-ROS environment failed:
--- stderr: rcutils
In function 'rcutils_strndup',
inlined from 'rcutils_strdup' at /home/bao/Documents/PlatformIO/Projects/micro_bot/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/src/rcutils/src/strdup.c:35:10:
/home/bao/Documents/PlatformIO/Projects/micro_bot/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/src/rcutils/src/strdup.c:46:14: error: 'memchr' specified bound 4294967295 exceeds maximum object size 2147483647 [-Werror=stringop-overread]
46 | char * p = memchr(str, '\0', max_length);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
gmake[2]: *** [CMakeFiles/rcutils.dir/build.make:348: CMakeFiles/rcutils.dir/src/strdup.c.obj] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/rcutils.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2

Failed <<< rcutils [1.10s, exited with code 2]
"

@hippo5329
Copy link
Contributor

hippo5329 commented Aug 21, 2024

The micro-ros-platformio uses arduino framework.

framework=arduino

You may follow my wiki. https://github.com/hippo5329/micro_ros_arduino_examples_platformio/wiki

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