0

I have a little project that uses mono gtk-sharp, that I build under monodevelop on Fedora and Xamarin on Windows. I wanted to try a clean build, but now I get the following error in Fedora if i try an debug build:

System.TypeLoadException: Could not load type 'GLib.IgnoreClassInitializersAttribute' from assembly 'gtk-sharp'.
at AudioCuesheetEditor.MainClass.Main (System.String[] args) [0x003e1] in /media/Auslagerung/Projekte/AudioCuesheetEditor/src/AudioCuesheetEditor/MainClass.cs:120

If I build a "Release" build, everything works fine. But why does the debug build fail? I have installed all needed libraries. The project src is here:

http://sourceforge.net/p/audiocuesheet/code/HEAD/tree/

Can anybody help?

Thanks in advance ;).

Sven
  • 447
  • 1
  • 6
  • 22
  • 1
    Just a WAG (I don't know much about mono or .net), but did you install the debuginfo package for gtk-sharp? `yum install gtk-sharp2-debuginfo`. – nemequ Feb 13 '14 at 04:44
  • There is no package gtk-sharp2-debuginfo says yum. I just tried it on my other fedora machine, there the debug build works perfect with the same fedora version, fully updated and the project not modified. – Sven Feb 13 '14 at 09:18
  • 2
    Try `debuginfo-install gtk-sharp2`. Works for me on F20. – nemequ Feb 13 '14 at 19:50
  • Thanks, that helped. Why do I need the debuginfo? Is there a backround? – Sven Feb 14 '14 at 18:11
  • 1
    Helped as in it now works (in which case I should probably convert the comment to an answer), or you were just able to install the debuginfo package successfully? Debugging information adds a significant amount of bloat to the object code, so most Linux distributions ship the stripped code for most users and separate packages containing the debugging symbols for those who need them. – nemequ Feb 14 '14 at 20:40
  • I was able to install the debuginfo package with your help ;). – Sven Feb 15 '14 at 12:38
  • Sorry to bother, but I've updated to fedora 20 and now I'm having the same problem with installed debuginfos. So, what should I do? – Sven Mar 19 '14 at 10:02
  • The 2.8.8.4 version of monodevelop shipped with Fedora is severely outdated, see http://stackoverflow.com/a/17949042/23118 for a 4.2.3 version packed as monodevelop-opt. – hlovdal Mar 31 '14 at 15:36

0 Answers0