[Gtk-sharp-list] Error compiling master branch on Fedora 20 x86_64

Giovanni Tirloni gtirloni at sysdroid.com
Sun Feb 23 22:08:06 UTC 2014


Hi, 

So far I have compiled Mono from Git master branch on Fedora 20 x86_64 
without much trouble. Now I'm trying to compile gtk-sharp and got a few 
errors (following instructions in README.md -- the last one I don't know how 
to work around):

>> error CS2001: Source file `..\AssemblyInfo.cs' could not be found

gtk-sharp/glib/Makefile:

-ASSEMBLYINFO = \\AssemblyInfo.cs
+ASSEMBLYINFO = /AssemblyInfo.cs


>> make[3]: Entering directory `/home/gtirloni/code/mono/gtk-sharp/gio'
>> cp ./gio-api.raw gio-api.xml
>> chmod u+w gio-api.xml
>> ../generator/gapi-fixup.exe --api=gio-api.xml --metadata=./Gio.metadata 
>> /bin/sh: line 2: ../generator/gapi-fixup.exe: cannot execute binary file

gtk-sharp/gio/Makefile:

-RUNTIME =
+RUNTIME = /path/to/my/mono/runtime


>> make[3]: Entering directory `/home/gtirloni/code/mono/gtk-sharp/gio'
>> /home/gtirloni/mono/bin/mcs -nologo -platform:x86 -debug  
>> -keyfile:../gtk-sharp.snk -nowarn:0169,0612,0618 -unsafe -out:gio-sharp.dll 
>> -target:library -r:../glib/glib-sharp.dll  generated\\*.cs 
>> ./AppInfoAdapter.cs ./FileAdapter.cs ./FileEnumerator.cs ./FileFactory.cs 
>> ./GioStream.cs ./IFile.cs ..\\AssemblyInfo.cs
>> generated/ActionGroupAdapter.cs(327,15): error CS0102: The type 
>> `G.ActionGroupAdapter' already contains a definition for `ActionAdded'
>> generated/ActionGroupAdapter.cs(285,37): (Location of the symbol related to 
>> previous error)
>> generated/ActionGroupAdapter.cs(336,15): error CS0102: The type 
>> `G.ActionGroupAdapter' already contains a definition for 
>> `ActionEnabledChanged'
>> generated/ActionGroupAdapter.cs(315,46): (Location of the symbol related to 
>> previous error)

Can anyone help me fix the above error?


$ mono --version
Mono JIT compiler version 4.0.0 (master/06502ec Sun Feb 23 17:58:06 BRT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

$ mcs --version
Mono C# compiler version 4.0.0.0

$ gcc --version
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)


Thanks,
Giovanni 		 	   		  


More information about the Gtk-sharp-list mailing list