Skip to content

编译错误,找不到Pangolin #74

Open
@1508189250

Description

下面是报错:

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

Could not find a package configuration file provided by "Pangolin" with any
of the following names:
PangolinConfig.cmake
pangolin-config.cmake

系统ubuntu20.04+ros1
我看了thirdparty这个文件夹里build-pangolin和Pangolin都是有东西的,看起来正常。在CmakeList.txt文件:
set(PANGOLIN_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/build-pangolin")
这一句也设了路径不知道为啥还找不到find_package(Pangolin REQUIRED)

set(PANGOLIN_DIR "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/build-pangolin")这句换成绝对路径也不行

无奈之下,直接cmake编译和安装Pangolin源码,这样才行。

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions