Skip to content

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

Open
@Xpar65

Description

@Xpar65

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions