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

missing dependences #3

Open
ahmohamed1 opened this issue Jun 12, 2023 · 3 comments
Open

missing dependences #3

ahmohamed1 opened this issue Jun 12, 2023 · 3 comments

Comments

@ahmohamed1
Copy link

Hi,
I am trying to use the code for mycobot_280 5M, however, when I compile it I get this error

CMake Error at CMakeLists.txt:11 (find_package):
  By not providing "Findfp.cmake" in CMAKE_MODULE_PATH this project has asked
  CMake to find a package configuration file provided by "fp", but CMake did
  not find one.

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

    fpConfig.cmake
    fp-config.cmake

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

which is a missing dependence further the serial library is missing too.

I am using Ubuntu 20.04 with ros 2 humble.

thank you for your time

@Vedhamshbode
Copy link

This error occurs because CMake is unable to locate the package configuration file (fpConfig.cmake or fp-config.cmake) for the package named "fp" that your project is trying to find using the find_package command.

To resolve this issue, you can take the following steps:

  • Locate the Package: First, ensure that the package "fp" is installed on your system. If it's not installed, you need to install it before proceeding further.
  • Set CMAKE_PREFIX_PATH: If the package "fp" is installed in a non-standard location, you need to specify its installation prefix using the CMAKE_PREFIX_PATH variable. You can set this variable when invoking CMake either through the command line or by configuring your IDE/build system to set it.
  • Set fp_DIR: Alternatively, you can directly specify the directory containing the package configuration file by setting the fp_DIR variable to the directory containing fpConfig.cmake or fp-config.cmake. This can be done similarly to setting CMAKE_PREFIX_PATH.
  • Make sure to replace /path/to/fp and <path_to_your_source> with the appropriate paths for your system and project.

Once you've completed these steps, CMake should be able to locate the package configuration file for "fp" and the error should be resolved. If you continue to encounter issues, double-check that the package is installed correctly and that you've specified the paths accurately.

@tylerjw
Copy link
Owner

tylerjw commented Feb 16, 2024

fp is this: https://github.com/tylerjw/fp

You can just put it in your ros workspace.

@tylerjw
Copy link
Owner

tylerjw commented Feb 16, 2024

Here is the file that describes the source dependencies: https://github.com/tylerjw/mycobot/blob/main/upstream.repos

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