# Could not load OpenGL library

**URL:** <https://discourse.libsdl.org/t/could-not-load-opengl-library/2210>\
**Category:** SDL Development\
**Created:** [April 7, 2000, 11:45pm UTC](https://discourse.libsdl.org/t/could-not-load-opengl-library/2210 "2000-04-07T23:45:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Howe](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@Andy\_Howe](https://discourse.libsdl.org/u/Andy_Howe)\
**Post date:** [April 7, 2000, 11:45pm UTC](https://discourse.libsdl.org/t/could-not-load-opengl-library/2210/1 "2000-04-07T23:45:16Z")

</div>

I cant get my program to work with opengl. When it runs it says it  
couldn’t open the OenGL library. Any ideas, i am probably forgetting  
something, anybody care to help me figure out what it is.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Vining](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/n/f04885/32.png) [@Nicholas\_Vining](https://discourse.libsdl.org/u/Nicholas_Vining)\
**Post date:** [April 8, 2000, 12:17am UTC](https://discourse.libsdl.org/t/could-not-load-opengl-library/2210/2 "2000-04-08T00:17:02Z")

</div>

> I cant get my program to work with opengl. When it runs it says it  
> couldn’t open the OenGL library. Any ideas, i am probably forgetting  
> something, anybody care to help me figure out what it is.

Ah christ, this again. Sam, I wonder if it’d be a good idea to have SDL  
automatically look for libMesaGL too, if it can’t find libGL?

My immediate suggestion is to make sure that you have symbolic links set up so  
that libMesaGL.so.whatever is also equal to libGL.so.whatever, and that  
libMesaGLU.so.whatever is linked as libGLU.so.whatever. That’s the most normal  
cause. Other causes include funky directory structures, not having OpenGL  
installed on your system ( are you sure you’ve got it? this has happened more  
than once ), and not having the library properly linked in.

Nicholas

---

<div class="post-metadata">

**Author:** ![Andy\_Howe](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@Andy\_Howe](https://discourse.libsdl.org/u/Andy_Howe)\
**Post date:** [April 8, 2000, 12:25am UTC](https://discourse.libsdl.org/t/could-not-load-opengl-library/2210/3 "2000-04-08T00:25:23Z")

</div>

I am using windows, so i dont think that having mesa on my computer  
should make a difference.

Andy Howe wrote:\>

> I cant get my program to work with opengl. When it runs it says it  
> couldn’t open the OenGL library. Any ideas, i am probably forgetting  
> something, anybody care to help me figure out what it is.

---

<div class="post-metadata">

**Author:** ![Wes\_Poole](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/w/13edae/32.png) [@Wes\_Poole](https://discourse.libsdl.org/u/Wes_Poole)\
**Post date:** [April 8, 2000, 12:34am UTC](https://discourse.libsdl.org/t/could-not-load-opengl-library/2210/4 "2000-04-08T00:34:09Z")

</div>

Check to see if the testgl demo works, if it does check it’s link  
order versus yours, that’s given me strange errors before.

Phoenix Kokido  
[members.xoom.com/kokido](http://members.xoom.com/kokido)  
@Wes_Poole

Andy Howe wrote:\> I am using windows, so i dont think that having mesa on my computer

> should make a difference.
> 
> Andy Howe wrote:
> 
> > I cant get my program to work with opengl. When it runs it says it  
> > couldn’t open the OenGL library. Any ideas, i am probably forgetting  
> > something, anybody care to help me figure out what it is.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Vining](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/n/f04885/32.png) [@Nicholas\_Vining](https://discourse.libsdl.org/u/Nicholas_Vining)\
**Post date:** [April 8, 2000, 1:57am UTC](https://discourse.libsdl.org/t/could-not-load-opengl-library/2210/5 "2000-04-08T01:57:40Z")

</div>

> Newsgroups: loki.open-source.sdl
> 
> > I am using windows, so i dont think that having mesa on my computer  
> > should make a difference.
> 
> D’oh! Sorry, I assume that everybody here uses Linux. Switch, you peon. 😉
> 
> Umm… given that, I am stumped. Are you sure that you’re linking in  
> everything that you need to? Does testgl work?
> 
> ## Nicholas
> 
> Nicholas Vining “While you’re out there struggling  
> vining at [pacificcoast.net](http://pacificcoast.net) with your computer, I’m naked,  
> icq: 20872003 clueless, and feeling good!”  
> - Ratbert
> 
> > ----- Original Message -----  
> > From: [parasite@cooper-mtn.com](mailto:parasite@cooper-mtn.com) (Andy Howe)  
> > To: sdl at [lokigames.com](http://lokigames.com)   
> > Date: Friday, April 07, 2000 5:33 PM  
> > Subject: [SDL] Re: Could not load OpenGL library
