-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
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.