运行环境: 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
阅读(712) | 评论(0) | 转发(0) |