Getting MaestroControlCenter running on Linux

Specifically, I’m trying to get this going on CentOS 5. I’ve already done the following:

  • sudo yum install libusb-devel mono-winforms
  • sudo cp 99-pololu.rules /etc/udev/rules.d
  • export MONO_PATH=/usr/lib/mono/2.0
  • added <dllmap dll="gdiplus.dll" target="" os="!windows"/> to /etc/mono/config

The last two fixed problems with Mono not being able to find libraries. However, now I’m stuck at the following error:

[david@aries maestro_linux]$ mono MaestroControlCenter 

** (MaestroControlCenter:31058): WARNING **: Missing method System.Windows.Forms.Panel::set_AutoSizeMode(AutoSizeMode) in assembly /usr/lib/mono/gac/System.Windows.Forms/, referenced in assembly /home/david/Digitizing/maestro_linux/MaestroControlCenter

Unhandled Exception: System.MissingMethodException: Method not found: 'System.Windows.Forms.Panel.set_AutoSizeMode'.
  at <0x00000> <unknown method>
  at Pololu.MaestroControlCenter.MainWindow..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) Pololu.MaestroControlCenter.MainWindow:.ctor ()
  at Pololu.MaestroControlCenter.Program.Main () [0x00000]

This isn’t Googling very well. Can anyone point me in the right direction?

Hello. I’m sorry you are having trouble.

My strategy for this would be to figure out what methods are in your version of System.Windows.Forms.dll and where it came from.

I am running Ubuntu 10.04.2 and the Maestro Control Center works for me, and I think I have the exact same version of System.Windows.Forms.dll as you. I computed the md5sum of the file:

$ md5sum -b /usr/lib/mono/gac/System.Windows.Forms/ 
0e232b94c0c863af34926a240f5f3f6f */usr/lib/mono/gac/System.Windows.Forms/

There is a symbolic link to that file:

$ ls -l /usr/lib/mono/2.0/System.Windows.Forms.dll
lrwxrwxrwx 1 root root 78 2011-05-06 12:16 /usr/lib/mono/2.0/System.Windows.Forms.dll -> ../gac/System.Windows.Forms/

There is also a config file in the same directory:

$ cat /usr/lib/mono/gac/System.Windows.Forms/
	<dllmap dll="gdiplus" target=""/>
	<dllmap dll="X11" target=""/>
	<dllmap dll="libX11" target=""/>
	<dllmap dll="libXcursor" target=""/>
	<dllmap dll="" target=""/>
	<dllmap dll="" target=""/>
	<dllmap dll="" target=""/>
	<dllmap dll="" target=""/>
	<dllmap dll="" target=""/>

Could you run the same commands on your computer so we can see if you have the same files?

Also, could you try compiling and running this very simple test program I wrote? Just unzip it with tar -xzvf panel_test.tar.gz, go in to the directory with cd panel_test, then type make && ./test.exe.
panel_test.tar.gz (1.43 KB)

This program compiles with no warnings on my system and prints “GrowOnly” when it is run.