No pkg-config .pc file installed.

Open Beginner friendly
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
67/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c
Domain
build-system

Research direction

Inspect meson.build, especially the dependency setup around line 243, and reproduce the installation with meson install. Confirm that the installed library exposes the metadata xpu-smi expects through pkg-config; done means xpu-smi's Meson configure step reports that the igsc dependency is found.

Written by the indexing model from the issue text.

Description

I expected a pkg-config .pc file to get installed, but no such file is installed:

$ meson install
ninja: Entering directory `/usr/src/igsc/build'
ninja: no work to do.
Installing lib/libigsc.so.1.3.1 to /usr/local/lib/x86_64-linux-gnu
Installation failed due to insufficient permissions.
Attempt to use /usr/bin/sudo to gain elevated privileges? [y/n] y
[sudo: authenticate] Password:         
Installing lib/libigsc.so.1.3.1 to /usr/local/lib/x86_64-linux-gnu
Installing lib/libigsc.a to /usr/local/lib/x86_64-linux-gnu
Installing src/igsc to /usr/local/bin
Installing /usr/src/igsc/build/igsc_lib.h to /usr/local/include
Installing symlink pointing to libigsc.so.1.3.1 to /usr/local/lib/x86_64-linux-gnu/libigsc.so.1
Installing symlink pointing to libigsc.so.1 to /usr/local/lib/x86_64-linux-gnu/libigsc.so

So when I try to build xpu-smi afterwards:

Run-time dependency igsc found: NO (tried pkgconfig and cmake)

meson.build:243:11: ERROR: Dependency "igsc" not found, tried pkgconfig and cmake
Dominant language
C
Stars
86
Forks
17
Avg merge
1h 10m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/igsc

All issues in intel/igsc

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.