Skip to content

pkg-config fails to find correct parameters in meson builds #663

@sjozs

Description

@sjozs

libdocument/meson.build has the following declaration (same in libview):

libdocument = library(
    'document',
    libdocument_private_headers + libdocument_sources,
    dependencies: libdocument_deps,
    include_directories: include_root,
    soversion: binary_major_version,
    version: binary_version,
    install: true,
)

This leads to soname libdocument.so, which means that atril 1.28.2 does not link with anything if using pkg-config, which contains the -latrildocument flag. To fix this, one would need to either set 'atrildocument'/atrilview as the name or configure the soname too in the .pc.in files (alternatively, set name_prefix to libatril as the default is lib, from what I could find on https://mesonbuild.com/Reference-manual_functions.html#library_name_prefix).

Also, configure set api_version to 1.5.0 while meson sets it to 1.5, which leads to pkg-config not finding the previously working atril-view-1.5.0.pc since the file is now called atril-view-.1.5.pc.

Metadata

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