Cannot link EGL
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have installed the latest NVIDIA drivers and tried to link EGL
library, but somehow it does not work.
g++ -o hello hello.cpp -lEGL
hello.cpp:2:23: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
Here you can see that the EGL.so is in /usr/lib
ldconfig -p | grep EGL
libEGL_nvidia.so.0 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL_nvidia.so.0
libEGL_nvidia.so.0 (libc6) => /usr/lib32/nvidia-384/libEGL_nvidia.so.0
libEGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so.1
libEGL.so.1 (libc6) => /usr/lib32/nvidia-384/libEGL.so.1
libEGL.so (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so
libEGL.so (libc6) => /usr/lib32/nvidia-384/libEGL.so
nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K80 On | 00000000:00:1E.0 Off | 0 |
| N/A 34C P8 28W / 149W | 1MiB / 11439MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
libraries opengl symbolic-link
 |Â
show 4 more comments
up vote
0
down vote
favorite
I have installed the latest NVIDIA drivers and tried to link EGL
library, but somehow it does not work.
g++ -o hello hello.cpp -lEGL
hello.cpp:2:23: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
Here you can see that the EGL.so is in /usr/lib
ldconfig -p | grep EGL
libEGL_nvidia.so.0 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL_nvidia.so.0
libEGL_nvidia.so.0 (libc6) => /usr/lib32/nvidia-384/libEGL_nvidia.so.0
libEGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so.1
libEGL.so.1 (libc6) => /usr/lib32/nvidia-384/libEGL.so.1
libEGL.so (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so
libEGL.so (libc6) => /usr/lib32/nvidia-384/libEGL.so
nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K80 On | 00000000:00:1E.0 Off | 0 |
| N/A 34C P8 28W / 149W | 1MiB / 11439MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
libraries opengl symbolic-link
That error appears to be from the compile phase - not the link phase
â steeldriver
Jun 10 at 16:25
Well the EGL library is not linked therefore it cannot be fonud. @steeldriver
â thigi
Jun 10 at 16:26
1
Header files are not libraries
â steeldriver
Jun 10 at 16:34
Yeah, how do I include the path of the "EGL.h" directory then? @steeldriver
â thigi
Jun 10 at 16:43
Do the NVIDIA proprietary drivers even install development headers? if not, you may need to install the native Ubuntulibegl1-mesa-dev
package
â steeldriver
Jun 10 at 16:53
 |Â
show 4 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed the latest NVIDIA drivers and tried to link EGL
library, but somehow it does not work.
g++ -o hello hello.cpp -lEGL
hello.cpp:2:23: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
Here you can see that the EGL.so is in /usr/lib
ldconfig -p | grep EGL
libEGL_nvidia.so.0 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL_nvidia.so.0
libEGL_nvidia.so.0 (libc6) => /usr/lib32/nvidia-384/libEGL_nvidia.so.0
libEGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so.1
libEGL.so.1 (libc6) => /usr/lib32/nvidia-384/libEGL.so.1
libEGL.so (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so
libEGL.so (libc6) => /usr/lib32/nvidia-384/libEGL.so
nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K80 On | 00000000:00:1E.0 Off | 0 |
| N/A 34C P8 28W / 149W | 1MiB / 11439MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
libraries opengl symbolic-link
I have installed the latest NVIDIA drivers and tried to link EGL
library, but somehow it does not work.
g++ -o hello hello.cpp -lEGL
hello.cpp:2:23: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
Here you can see that the EGL.so is in /usr/lib
ldconfig -p | grep EGL
libEGL_nvidia.so.0 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL_nvidia.so.0
libEGL_nvidia.so.0 (libc6) => /usr/lib32/nvidia-384/libEGL_nvidia.so.0
libEGL.so.1 (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so.1
libEGL.so.1 (libc6) => /usr/lib32/nvidia-384/libEGL.so.1
libEGL.so (libc6,x86-64) => /usr/lib/nvidia-384/libEGL.so
libEGL.so (libc6) => /usr/lib32/nvidia-384/libEGL.so
nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K80 On | 00000000:00:1E.0 Off | 0 |
| N/A 34C P8 28W / 149W | 1MiB / 11439MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
libraries opengl symbolic-link
asked Jun 10 at 16:21
thigi
1066
1066
That error appears to be from the compile phase - not the link phase
â steeldriver
Jun 10 at 16:25
Well the EGL library is not linked therefore it cannot be fonud. @steeldriver
â thigi
Jun 10 at 16:26
1
Header files are not libraries
â steeldriver
Jun 10 at 16:34
Yeah, how do I include the path of the "EGL.h" directory then? @steeldriver
â thigi
Jun 10 at 16:43
Do the NVIDIA proprietary drivers even install development headers? if not, you may need to install the native Ubuntulibegl1-mesa-dev
package
â steeldriver
Jun 10 at 16:53
 |Â
show 4 more comments
That error appears to be from the compile phase - not the link phase
â steeldriver
Jun 10 at 16:25
Well the EGL library is not linked therefore it cannot be fonud. @steeldriver
â thigi
Jun 10 at 16:26
1
Header files are not libraries
â steeldriver
Jun 10 at 16:34
Yeah, how do I include the path of the "EGL.h" directory then? @steeldriver
â thigi
Jun 10 at 16:43
Do the NVIDIA proprietary drivers even install development headers? if not, you may need to install the native Ubuntulibegl1-mesa-dev
package
â steeldriver
Jun 10 at 16:53
That error appears to be from the compile phase - not the link phase
â steeldriver
Jun 10 at 16:25
That error appears to be from the compile phase - not the link phase
â steeldriver
Jun 10 at 16:25
Well the EGL library is not linked therefore it cannot be fonud. @steeldriver
â thigi
Jun 10 at 16:26
Well the EGL library is not linked therefore it cannot be fonud. @steeldriver
â thigi
Jun 10 at 16:26
1
1
Header files are not libraries
â steeldriver
Jun 10 at 16:34
Header files are not libraries
â steeldriver
Jun 10 at 16:34
Yeah, how do I include the path of the "EGL.h" directory then? @steeldriver
â thigi
Jun 10 at 16:43
Yeah, how do I include the path of the "EGL.h" directory then? @steeldriver
â thigi
Jun 10 at 16:43
Do the NVIDIA proprietary drivers even install development headers? if not, you may need to install the native Ubuntu
libegl1-mesa-dev
packageâ steeldriver
Jun 10 at 16:53
Do the NVIDIA proprietary drivers even install development headers? if not, you may need to install the native Ubuntu
libegl1-mesa-dev
packageâ steeldriver
Jun 10 at 16:53
 |Â
show 4 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045345%2fcannot-link-egl%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
That error appears to be from the compile phase - not the link phase
â steeldriver
Jun 10 at 16:25
Well the EGL library is not linked therefore it cannot be fonud. @steeldriver
â thigi
Jun 10 at 16:26
1
Header files are not libraries
â steeldriver
Jun 10 at 16:34
Yeah, how do I include the path of the "EGL.h" directory then? @steeldriver
â thigi
Jun 10 at 16:43
Do the NVIDIA proprietary drivers even install development headers? if not, you may need to install the native Ubuntu
libegl1-mesa-dev
packageâ steeldriver
Jun 10 at 16:53