linker doesn't find NVIDIA libraries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers-340-updates (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have installed the package 'nvidia-
When I compile a program that it uses these libraries it fails when it tries to link them:
...
/usr/bin/cc -DHAVE_
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lGLESv2
...
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nvidia-340-updates 340.76-0ubuntu0.1
Uname: Linux 4.1.6-040106-i7 x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.12
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Aug 20 18:47:15 2015
InstallationDate: Installed on 2014-07-18 (398 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: nvidia-
UpgradeStatus: No upgrade log present (probably fresh install)
echo "int main(void){return 0;}" | gcc -x c - -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
But
$ ldconfig -p | grep libGL.so nvidia- 340-updates/ libGL.so. 1 nvidia- 340-updates/ libGL.so. 1 nvidia- 340-updates/ libGL.so nvidia- 340-updates/ libGL.so
libGL.so.1 (libc6,x86-64) => /usr/lib/
libGL.so.1 (libc6) => /usr/lib32/
libGL.so (libc6,x86-64) => /usr/lib/
libGL.so (libc6) => /usr/lib32/
$ ldconfig -p | grep libGLESv2.so nvidia- 340-updates/ libGLESv2. so.2 nvidia- 340-updates/ libGLESv2. so.2 nvidia- 340-updates/ libGLESv2. so nvidia- 340-updates/ libGLESv2. so
libGLESv2.so.2 (libc6,x86-64) => /usr/lib/
libGLESv2.so.2 (libc6) => /usr/lib32/
libGLESv2.so (libc6,x86-64) => /usr/lib/
libGLESv2.so (libc6) => /usr/lib32/
$ cat /etc/ld. so.conf. d/x86_64- linux-gnu_ GL.conf nvidia- 340-updates nvidia- 340-updates
/usr/lib/
/usr/lib32/