zgintasz's picture

GLControl on gtk

I'm trying to make a simple program with mono(I'm using Xamarin studio) and opentk. I need to make a GLControl area, so I downloaded and imported this: . But when I compile, it gives me this message:
Error CS1705: Assembly 'GLWidget, Version=1.0.3746.36713, Culture=neutral, PublicKeyToken=null' uses 'OpenTK, Version=1.0.0.201, Culture=neutral, PublicKeyToken=bad199fe84eb3df4' which has a higher version than referenced assembly 'OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4'

so how can I make an opentk area in gtk?


Comments

Comment viewing options

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

You've got mismatching OpenTK versions. Build a new OpenTK with a higher version number, or figure out why you are referencing a different version than is being used. Something is funky in your Xamarin studio setup.

dmitry1204's picture

I have the same problem. I use last opentk and glwidget. But xamarin gives me this error.
There are no such problem with MonoDevelop and linux.
Can anybody help me?

Frassle's picture

Same as Andy answered last time, you've got mismatching OpenTK versions.

dmitry1204's picture

I have OpenTK 1.1.804.3121 and glwidget 1.0.3746.36713 (both are last vertions)
Why last version is not valid instead of 1.0.0.201 ? I can't find older one.
Also all works fine on linux

Frassle's picture

Using a higher version (1.1 instead of 1.0.0.201) should be fine, can you post your full error message so we can see what version it's trying to get. Also can you check what versions the linux project is using.

dmitry1204's picture

Ok. Here is the error message:
"System.IO.FileLoadException: Could not load file or assembly 'OpenTK, Version=1.0.0.201, Culture=neutral, PublicKeyToken=bad199fe84eb3df4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.Exception:
--- End of inner exception stack trace ---
at at MainWindow.Build()
at at MainWindow..ctor() in e:\GRK_GTK\GRK_GTK\MainWindow.cs:line 21
at at GRK_GTK.Program.Main(String[] args) in e:\GRK_GTK\GRK_GTK\Program.cs:line 12"
The projects are identical. All works fine with linux, but then I copy project to win7 pc I got this error

Frassle's picture

That doesn't really say anything more helpful, it can't find the OpenTK version it's looking for. Is OpenTK.dll and GLControl.dll in the same folder as the .exe?

dmitry1204's picture

Yes. All libs and .exe are in bin\Debug folder

dmitry1204's picture
dmitry1204's picture

I also could not run sample from glwigdet's page
Please, can anybody check my project in windows or show me correct sample of glwidget?