Comment 0 for bug 1957119

Revision history for this message
ckie (ckie) wrote :

Hello~

I expected pkg-config to be able to give me information about "cuda", but instead I got:
root@71f807687755:/alvr# pkg-config --libs --cflags cuda
Package cuda was not found in the pkg-config search path.
Perhaps you should add the directory containing `cuda.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cuda' found

Adding a file /usr/share/pkgconfig/cuda.pc fixes it: https://github.com/Toxblh/ALVR/blob/nvidia-linux/packaging/deb/cuda.pc:

root@71f807687755:/alvr# pkg-config --libs --cflags cuda
-I/usr/lib/cuda/include -L/usr/lib/cuda/lib64/stubs -lcuda

--- Versions ---
This is just a Docker container running `ubuntu:latest`.
root@71f807687755:/alvr# lsb_release -rd
Description: Ubuntu 20.04.3 LTS
Release: 20.04
root@71f807687755:/alvr# apt-cache policy nvidia-cuda-toolkit
nvidia-cuda-toolkit:
  Installed: 10.1.243-3
  Candidate: 10.1.243-3
  Version table:
 *** 10.1.243-3 500
        500 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages
        100 /var/lib/dpkg/status

~ckie