Skip to content

[1.x] Please install .pc file for easy discoverability #3523

@yurivict

Description

@yurivict

The ustream project that uses janus fails to find the janus headers:
In file included from src/acap.c:43:
In file included from src/logging.h:23:
/usr/local/include/janus/plugins/plugin.h:162:10: fatal error: 'refcount.h' file not found
162 | #include "refcount.h"
| ^~~~~~~~~~~~
1 error generated.

This is because janus doesn't provide any way to discover it or to determine what CFLAGS does it need.

The actual reason is that this CFLAGS argument is missing: -I$(PREFIX)/include/janson.

CFLAGS and LDFLAGS should be supplied by the .pc file so that pkg-config --cflags --libs janus would print all necessary flags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions