mir_client_library.h includes non-existent file "mir_toolkit/c_types.h"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Invalid
|
High
|
Unassigned |
Bug Description
As reported to alan_g on the #ubuntu-mir IRC channel:
I installed all Mir packages from the mir-team/staging PPA and started writing a minimal Mir client outside of the Mir codebase. At the beginning of my code I
#include <mir/client/
which in turn includes
#include "mir_toolkit/
#include <mir_toolkit/
The first include, "mir_toolkit/
1. /usr/include/
2. /usr/include/
#include <mir/client/
#include <mir_toolkit/
which resolves everything gracefully.
Steps to reprodce:
1. Copy one of the examples to a path outside of the mir codebase, e.g. cp examples/
2. Substitute #include "mir_toolkit/
3. Compile:
sturmflut@
In file included from /tmp/mirclient.
/usr/include/
compilation terminated.
summary: |
- Mir client header files seem to be incorrect + mir_client_library.h includes non-existent file "mir_toolkit/c_types.h" |
Changed in mir: | |
importance: | Undecided → High |
Currently, the correct way to get the include path for those common headers is to take the output of:
pkg-config mircommon --cflags
So in GNU make you would:
CFLAGS += $(shell pkg-config mircommon --cflags)
However, there is an extra problem here. Using pkgconfig "mirclient" should automatically include "mircommon" and its cflags. But it doesn't.