migueltk's picture

OpenTK not working on Ubuntu 11.04 + ATI

Project:The Open Toolkit library
Category:bug report

I just installed ubuntu 11.04 and I can not run the examples in OpenTK.

OpenGL information:

OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3870
OpenGL version string: 3.3.10665 Compatibility Profile Context
OpenGL shading language version string: 3.30

This is the trace of the error:

Detected configuration: Linux / Mono
System.TypeInitializationException: An exception was thrown by the type initializer for OpenTK.Graphics.GraphicsMode ---> System.PlatformNotSupportedException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGraphicsMode () [0x00000] in /home/miguel/Programacion/opentk/trunk/Source/OpenTK/Platform/Factory.cs:169
at OpenTK.Graphics.GraphicsMode..cctor () [0x00016] in /home/miguel/Programacion/opentk/trunk/Source/OpenTK/Graphics/GraphicsMode.cs:36
--- End of inner exception stack trace ---
at OpenTK.GameWindow..ctor (Int32 width, Int32 height) [0x00000] in :0
at Examples.Tutorial.SimpleWindow..ctor () [0x00000] in :0
at Examples.Tutorial.SimpleWindow.Main () [0x00000] in /home/miguel/Programacion/opentk/trunk/Source/Examples/OpenTK/GameWindow/GameWindowSimple.cs:125
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0

It seems that Natty Narwhal has come up with new and unpleasant surprises!



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


Please try installing mesa-dev and/or mesa-utils.

I suspect that some library symlink has changed (e.g. libGL.so vs libGL.so.2 or something like that). If this is the case, we have two options:

  • Create a proper .deb package that contains a fixed OpenTK.dll.config. This will fix the issue but will break the compile-once run-everywhere model.
  • Modify OpenTK to load all necessary functions dynamically (i.e. replace all DllImports by delegates and dlopen). This is a huge change that will take a lot of time to test and implement.
openecho's picture


I am currently using Ubuntu 11.04 and OpenTK with an ATI Graphics card.

I have not installed the ATI Catalyst driver - I am using the out of the box opensource one that Ubuntu is trying and I am using my own compile of the source that is in Bazaar.

I am sure some of the more advanced OpenGL api calls likely do not work but this may be a solution for you to keep moving?


migueltk's picture


I had to install mesa-dev to make it work OpenTK. After this I found that in all examples of project Dixion-CsOde mouse does not work. Why not? I do not know!. I have also installed the ATI Catalyst drivers and the windows are moved to jump in general everything seems to go slow.

Definitely i install Ubuntu 10.10, I hope that the next version (Ubuntu 11.10) everything works better. Thanks for the help.


DreaminD's picture


Same with me. Installing mesa-dev made some examples work, though it's not the same set that works in my Windows 7.

Texture Matrix Wormhole: works in Windows, doesn't work in Ubuntu
DDS Cube Map: works in Windows, doesn't work in Ubuntu
Julia Set Fractal: works in Ubuntu, doesn't work in Windows
Swizzled Parallax Mapping: works in Windows, doesn't work in Ubuntu

Should I post error messages here?

I have OpenGL 2.1 compatible GPU (Intel chipset). Other examples that don't require higher versions work both in Windows and Ubuntu.

DreaminD's picture


By the way... Are there currently any other ways to make OpenTK applications work in Ubuntu out-of-the-box, except the already mentioned deb package?

cody's picture


Your Problem is that your Intel graphics card sucks. And it sucks even more on Linux.

DreaminD's picture


Totally agree with you. It's a shame I had no clue about issues with Intel GPUs when I bought my laptop :(