Comment 1 for bug 677903

Revision history for this message
Colin Svingen (swoogan) wrote :

When running my qyoto application I was receiving the following error:
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/qt-dotnet-4.5/libqyoto.so

/usr/lib/cli/qt-dotnet-4.5/libqyoto.so is a hard link to /usr/lib/libqyoto.so.2 which in turn is a sym link to /usr/lib/libqyoto.so.2.0.0

First I moved /usr/lib/libqyoto.so.2.0.0 to /usr/lib/cli/qt-dotnet-4.5/libqyoto.so and that fixed the error. Next, I changed the file /usr/lib/cli/qt-dotnet-4.5/qt-dotnet.dll.config by removing the reference to libqyotoshared.so.1 and then change the line:

<dllmap dll="qyoto" target="/usr/lib/cli/qt-dotnet-4.5/libqyoto.so"/>
to
<dllmap dll="qyoto" target="/usr/lib/libqyoto.so.2"/>

And that fixed the problem. So it appears that libqyotoshared1 isn't required and that hard links don't work from the config files.