snapcraft can't find modules installed under 'stage' dir
Bug #1541620 reported by
Cemil Azizoglu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Invalid
|
Medium
|
Sergio Schvezov |
Bug Description
A module in a package specified under "stage-packages", for example,
stage-packages:
- libmirserver-dev
cannot be found, when CMakeLists.txt of a part refers to it by
find_package(
pkg_check_modules(
MIRSERVER REQUIRED mirserver
)
I believe pkg-config is looking for it in the system directories, not in the stage directory.
Changed in snapcraft: | |
milestone: | none → next |
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
This requires find_package and pkg_check_modules to be commented out and also
include_ directories( _INCLUDE_ DIRS}
${MIRSERVER
)
be changed to
include_ directories( stage/usr/ include/ mirserver stage/usr/ include/ mircommon
../
../
)
to get things work.