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

By not providing "Findament_cmake_auto.cmake" in CMAKE_MODULE_PATH this #136

Open
Kamie1103 opened this issue Jul 22, 2024 · 2 comments
Open

Comments

@Kamie1103
Copy link

`livox_ros_driver2 git:(master) ✗ sudo ./build.sh humble

/opt/ros/humble/setup.zsh: line 6: ${(%):-%N}: bad substitution
/opt/ros/humble/setup.zsh: line 6: cd: -q: invalid option
cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
/opt/ros/humble/setup.zsh: line 22: /setup.sh: No such file or directory
Working Path: /home/seven/livox_ws/src/livox_ros_driver2
ROS version is: ROS2
Starting >>> livox_ros_driver2
Starting >>> livox_sdk2
--- stderr: livox_ros_driver2
CMake Error at CMakeLists.txt:224 (find_package):
By not providing "Findament_cmake_auto.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ament_cmake_auto", but CMake did not find one.

Could not find a package configuration file provided by "ament_cmake_auto"
with any of the following names:

ament_cmake_autoConfig.cmake
ament_cmake_auto-config.cmake

Add the installation prefix of "ament_cmake_auto" to CMAKE_PREFIX_PATH or
set "ament_cmake_auto_DIR" to a directory containing one of the above
files. If "ament_cmake_auto" provides a separate development package or
SDK, be sure it has been installed.


Failed <<< livox_ros_driver2 [0.45s, exited with code 1]
Aborted <<< livox_sdk2 [0.49s]

Summary: 0 packages finished [0.66s]
1 package failed: livox_ros_driver2
1 package aborted: livox_sdk2
2 packages had stderr output: livox_ros_driver2 livox_sdk2`

I had source /opt/ros/humble/setup.zsh,but it didn't work;I had tried sudo chmod 777 -R livox_ws,but it happened nothing.

@adijams01
Copy link

getting same error, were you able to solve this?

@yuanyuan-lalala
Copy link

getting same error, were you able to solve this?

you cannot use catkin_make in the folder called catkin_ws...
just use the same method as the tutorial in the readme....
source /opt/ros/noetic/setup.sh
./build.sh ROS1

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