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, Can't find Serial package configuration file #8

Open
Xpar65 opened this issue Jan 14, 2024 · 1 comment
Open

CMake Error, Can't find Serial package configuration file #8

Xpar65 opened this issue Jan 14, 2024 · 1 comment

Comments

@Xpar65
Copy link

Xpar65 commented Jan 14, 2024

Hi. Whenever I try to build i get the error:
CMake Error at CMakeLists.txt:18 (find_package):
By not providing "Findserial.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "serial", but
CMake did not find one.

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

serialConfig.cmake
serial-config.cmake

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

I have tried:

  • sudo apt install libserial-dev
  • tried installing from source
  • passing the directory of the build files using set(serial_DIR path path/to/serial/build)
  • using the name depend>libserial-dev instead. Because: https://index.ros.org/d/libserial-dev/
  • updating rosdeps.

Other notes:

  • Im using humble
  • all other packages are found

I am not sure how to fix this. My next option is trying to use another serial package instead. Any help would be much appreciated.

@Xpar65 Xpar65 changed the title CMake Error, Can't find package configuration file CMake Error, Can't find Serial package configuration file Jan 14, 2024
@joshnewans
Copy link
Owner

joshnewans commented Jan 15, 2024

Yeah sorry, that's really not clear if you haven't got the tutorial that went with it!

The serial library is available here, however you probably want to be using the humble branch (main is foxy and I need to rename it and change the default), and that branch is using libserial-dev.

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