Skip to content

libdwarf cannot find when using vcpkg, and ibdw has become a rerequisite for libdwarf? #330

@yhyu13

Description

@yhyu13

ubuntu 20.04 x64

vcpkg.json

{
    "dependencies": [  
        "spdlog",
        "mimalloc",
        "magic-enum",
        "boost",
        "libdwarf"
    ],
    "builtin-baseline": "53bef8994c541b6561884a8395ea35715ece75db"
}
find_package(libdwarf CONFIG REQUIRED)
# Also requires one of: libbfd (gnu binutils), libdwarf, libdw (elfutils)
FetchContent_Declare(
    backward
    GIT_REPOSITORY https://github.com/yhyu13/backward-cpp
    GIT_TAG 51f0700452cf71c57d43c2d028277b24cde32502  # or a version tag, such as v1.6
    GIT_SHALLOW 1 # optional ( --depth=1 )
    SYSTEM          # optional, the Backward include directory will be treated as system directory
)
FetchContent_MakeAvailable(backward)

Cmake output

-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR) 
-- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR) 
-- Could NOT find libdwarf (missing: LIBELF_LIBRARY LIBELF_INCLUDE_DIR) 

My main targe could find and link with libdwarf, but it seems backward.cpp cannot?

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