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

find_package error #5

Open
emirkarayilan opened this issue Jan 29, 2025 · 6 comments
Open

find_package error #5

emirkarayilan opened this issue Jan 29, 2025 · 6 comments

Comments

@emirkarayilan
Copy link

emirkarayilan commented Jan 29, 2025

Image

sir, i am getting an error at colcon build step. Can anyone help?;
CMake Error at CMakeLists.txt:13 (find_package):
By not providing "Findpx4_msgs.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "px4_msgs",
but CMake did not find one.

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

px4_msgsConfig.cmake
px4_msgs-config.cmake

Add the installation prefix of "px4_msgs" to CMAKE_PREFIX_PATH or set
"px4_msgs_DIR" to a directory containing one of the above files. If
"px4_msgs" provides a separate development package or SDK, be sure it has
been installed.
(i am a beginner for ros2 and i open for all advices)
thanks!

@ahmad12hamdan99
Copy link

Hi, I think you need to clone and build "px4_msgs" first in your workspace

git clone https://github.com/PX4/px4_msgs.git

@emirkarayilan
Copy link
Author

i am still getting an error. Maybe i couldnt build "px4_msgs" package. Can you help me about setup?

Image

@ahmad12hamdan99
Copy link

In this case, I think you should try to clean the whole workspace and rebuild

cd ~/ros2_ws
rm -r build install log

Then try to build

colcon build --packages-select px4_msgs

@emirkarayilan
Copy link
Author

Image

i did what you say but i am still getting this error.

@ahmad12hamdan99
Copy link

It seems like you have a problem with setuptools
please try this

pip3 install --upgrade setuptools

and then redo my previous comment
Good luck!

@emirkarayilan
Copy link
Author

emirkarayilan commented Feb 5, 2025

Image

px4_msgs is done but for now px4_swarm_controller created a problem

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