Chinaunix首页 | 论坛 | 博客
  • 博客访问: 90868
  • 博文数量: 34
  • 博客积分: 1130
  • 博客等级: 少尉
  • 技术积分: 356
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-25 01:38
文章分类
文章存档

2014年(4)

2013年(1)

2011年(2)

2010年(10)

2009年(11)

2008年(4)

2007年(2)

我的朋友

分类:

2009-12-06 19:24:18

运行环境:  Ubuntu Karmic KDE4

$ gmcs -r:/usr/lib/cli/kdebindings-4.4/qt-dotnet.dll tooltips.cs   

编译过程顺利,未报错。

$ mono tooltips.exe

报错如下:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Qyoto.QApplication ---> System.TypeInitializationException: An exception was thrown by the type initializer for Qyoto.SmokeInvocation ---> System.DllNotFoundException: /usr/lib/cli/kdebindings-4.4/libqyotoshared.so                                                                             
  at (wrapper managed-to-native) Qyoto.SmokeMarshallers:InstallInvokeDelegate (Qyoto.SmokeMarshallers/InvokeDelegateFn)                                        
  at Qyoto.SmokeMarshallers.SetUp () [0x00000]                                 
  at Qyoto.SmokeInvocation.InitRuntime () [0x00000]                            
  at Qyoto.SmokeInvocation..cctor () [0x00000]                                 
  --- End of inner exception stack trace ---                                   
  at Qyoto.QApplication..cctor () [0x00000]                                    
  --- End of inner exception stack trace ---                                   
  at QyotoApp.Main (System.String[] args) [0x00000]

解决办法:

$ cd /usr/lib/cli/kdebindings-4.4
$ sudo ln -s libqyoto.so libqyotoshared.so



阅读(694) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~