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

Cmake error #15

Open
NPUWjf opened this issue Feb 15, 2023 · 2 comments
Open

Cmake error #15

NPUWjf opened this issue Feb 15, 2023 · 2 comments

Comments

@NPUWjf
Copy link

NPUWjf commented Feb 15, 2023

请问一下各位,这个问题如何解决
colcon build --packages-select village_interfaces
Starting >>> village_interfaces
--- stderr: village_interfaces
CMake Error at /opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:240 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
CMakeLists.txt:28 (rosidl_generate_interfaces)

CMake Error at /opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:240 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
CMakeLists.txt:28 (rosidl_generate_interfaces)

CMake Error at /opt/ros/foxy/share/rosidl_generator_c/cmake/rosidl_generator_c_generate_interfaces.cmake:67 (message):
Target dependency
'/town_ws/build/village_interfaces/rosidl_adapter/village_interfaces/msg/Novel.idl'
does not exist
Call Stack (most recent call first):
/opt/ros/foxy/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
/opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
CMakeLists.txt:28 (rosidl_generate_interfaces)


Failed <<< village_interfaces [0.83s, exited with code 1]

Summary: 0 packages finished [1.06s]
1 package failed: village_interfaces
1 package had stderr output: village_interfaces

@xudadi001
Copy link

遇到了同样的问题,至今没找到答案,不知道是不是小鱼版本的问题

@Beneldor
Copy link

遇到同样的问题,在这里看到一条回答说是路径中有中文,尝试修改后确实不报错了。

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

3 participants