Cannot link EGL

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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 |
+-----------------------------------------------------------------------------+






share|improve this question



















  • 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














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 |
+-----------------------------------------------------------------------------+






share|improve this question



















  • 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












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 |
+-----------------------------------------------------------------------------+






share|improve this question











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 |
+-----------------------------------------------------------------------------+








share|improve this question










share|improve this question




share|improve this question









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 Ubuntu libegl1-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










  • 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















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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Unable to upgrade pip

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Cutting all the characters after the last /